[toolchain] introduce option to enable setjump()/longjump() based C++ exceptions...
[openwrt/svn-archive/archive.git] / toolchain / gcc / Config.in
index 019cd164b766f68ebdd0c842d6c2de0eb1493601..e6434d0f7df70d3e604b7e9e1fc28f91671eeab0 100644 (file)
@@ -2,13 +2,10 @@
 
 choice
        prompt "GCC compiler Version" if TOOLCHAINOPTS
-       default GCC_VERSION_4_3_5 if (avr32 || powerpc64)
-       default GCC_VERSION_4_3_5 if (TARGET_coldfire || TARGET_etrax || TARGET_gemini || TARGET_cns21xx)
-       default GCC_VERSION_4_3_3_CS if (arm || armeb) && !(TARGET_gemini || TARGET_cns21xx || TARGET_omap35xx)
-       default GCC_VERSION_4_3_3_CS if (mips || mipsel) && !(TARGET_octeon || TARGET_sibyte)
-       default GCC_VERSION_4_4_5 if (powerpc || ubicom32)
-       default GCC_VERSION_4_4_5 if (TARGET_omap35xx || TARGET_octeon || TARGET_sibyte)
-       default GCC_VERSION_4_5_1_LINARO
+       default GCC_VERSION_4_3_3_CS if GCC_DEFAULT_VERSION_4_3_3_CS
+       default GCC_VERSION_4_3_5 if GCC_DEFAULT_VERSION_4_3_5
+       default GCC_VERSION_4_4_5 if GCC_DEFAULT_VERSION_4_4_5
+       default GCC_VERSION_LINARO
        help
          Select the version of gcc you wish to use.
 
@@ -21,8 +18,8 @@ choice
        config GCC_VERSION_4_5_2
                bool "gcc 4.5.2"
 
-       config GCC_VERSION_4_5_1_LINARO
-               bool "gcc 4.5.1 with Linaro enhancements"
+       config GCC_VERSION_LINARO
+               bool "gcc 4.5.x with Linaro enhancements"
 
        config GCC_VERSION_LLVM
                bool "llvm-gcc 4.2"
@@ -69,6 +66,15 @@ config TLS_SUPPORT
        help
            Enable Thread-local storage support
 
+config SJLJ_EXCEPTIONS
+       bool
+       prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
+       default n
+       help
+           Use old setjump()/longjump() exceptions instead of the newer
+           frame unwinding exceptions handling routines.  Warning: increases
+           code size and runtime memory usage.
+
 config INSTALL_LIBSTDCPP
        bool
        prompt "Build/install c++ compiler and libstdc++?" if TOOLCHAINOPTS