summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-23 11:37:39 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-23 11:37:39 +0000
commita56dab661a115e6cc9f4361d5ff831d998cb9f00 (patch)
treeba5fc6be30de05c8894b7e9e89adbe6f4479b367 /toolchain/gcc
parentf6e4eb15bc7b5991a484370ae3765eb79becea4b (diff)
downloadmtk-20170518-a56dab661a115e6cc9f4361d5ff831d998cb9f00.zip
mtk-20170518-a56dab661a115e6cc9f4361d5ff831d998cb9f00.tar.gz
mtk-20170518-a56dab661a115e6cc9f4361d5ff831d998cb9f00.tar.bz2
introduce option to enable setjump()/longjump() based C++ exceptions (#9185, patch from David Kuehling via Qi hardware)
SVN-Revision: 27261
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Config.in9
-rw-r--r--toolchain/gcc/final/Makefile5
2 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in
index c2d17cb..e6434d0 100644
--- a/toolchain/gcc/Config.in
+++ b/toolchain/gcc/Config.in
@@ -66,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
diff --git a/toolchain/gcc/final/Makefile b/toolchain/gcc/final/Makefile
index 1decc95..337f7ab 100644
--- a/toolchain/gcc/final/Makefile
+++ b/toolchain/gcc/final/Makefile
@@ -22,6 +22,11 @@ else
--disable-tls
endif
+ifneq ($(CONFIG_SJLJ_EXCEPTIONS),)
+ GCC_CONFIGURE += \
+ --enable-sjlj-exceptions
+endif
+
define Host/Configure
mkdir -p $(GCC_BUILD_DIR) $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)
# Important! Required for limits.h to be fixed.