1.1 --- a/config/cc/gcc.in Sat Jul 19 12:17:26 2008 +0000
1.2 +++ b/config/cc/gcc.in Tue Aug 12 09:14:55 2008 +0000
1.3 @@ -129,12 +129,49 @@
1.4
1.5 config CC_CXA_ATEXIT
1.6 bool
1.7 - prompt "__cxa_atexit"
1.8 - default "y"
1.9 + prompt "Use __cxa_atexit"
1.10 + default y
1.11 help
1.12 If you get the missing symbol "__cxa_atexit" when building C++ programs,
1.13 you might want to try disabling this option.
1.14
1.15 +choice
1.16 + bool
1.17 + prompt "Use sjlj for exceptions"
1.18 + default CC_SJLJ_EXCEPTIONS_CONFIGURE
1.19 +
1.20 +# This config option is used nowhere in the code on purpose.
1.21 +# It only serves as a choice entry to force neither using nor not using sjlj
1.22 +config CC_SJLJ_EXCEPTIONS_CONFIGURE
1.23 + bool
1.24 + prompt "Let configure decide"
1.25 + help
1.26 + Let configure decide if setjmp/longjmp should be used to handle
1.27 + exceptions.
1.28 +
1.29 + Choose that if you trust configure to detect the correct settings.
1.30 + This is the default choice.
1.31 +
1.32 +config CC_SJLJ_EXCEPTIONS_USE
1.33 + bool
1.34 + prompt "Force using sjlj"
1.35 + help
1.36 + Do use setjmp/longjmp for exceptions.
1.37 + This is gcc's --enable-sjlj-exceptions configure switch.
1.38 +
1.39 + Choose that if you want to use setjmp/longjmp to handle exceptions.
1.40 +
1.41 +config CC_SJLJ_EXCEPTIONS_DONT_USE
1.42 + bool
1.43 + prompt "Force not using sjlj"
1.44 + help
1.45 + Do not use setjmp/longjmp for exceptions.
1.46 + This is gcc's --disable-sjlj-exceptions configure switch.
1.47 +
1.48 + Choose that if you want to not use setjmp/longjmp to handle exceptions.
1.49 +
1.50 +endchoice
1.51 +
1.52 config CC_CORE_EXTRA_CONFIG
1.53 string
1.54 prompt "Core gcc extra config"