introduce option to enable setjump()/longjump() based C++ exceptions (#9185, patch from David Kuehling via Qi hardware)

SVN-Revision: 27261
This commit is contained in:
Jo-Philipp Wich 2011-06-23 11:37:39 +00:00
parent f6e4eb15bc
commit a56dab661a
2 changed files with 14 additions and 0 deletions

View file

@ -66,6 +66,15 @@ config TLS_SUPPORT
help help
Enable Thread-local storage support 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 config INSTALL_LIBSTDCPP
bool bool
prompt "Build/install c++ compiler and libstdc++?" if TOOLCHAINOPTS prompt "Build/install c++ compiler and libstdc++?" if TOOLCHAINOPTS

View file

@ -22,6 +22,11 @@ else
--disable-tls --disable-tls
endif endif
ifneq ($(CONFIG_SJLJ_EXCEPTIONS),)
GCC_CONFIGURE += \
--enable-sjlj-exceptions
endif
define Host/Configure define Host/Configure
mkdir -p $(GCC_BUILD_DIR) $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME) mkdir -p $(GCC_BUILD_DIR) $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)
# Important! Required for limits.h to be fixed. # Important! Required for limits.h to be fixed.