aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2012-02-17 18:35:45 (GMT)
committerDan Albert <danalbert@google.com>2015-08-27 21:20:57 (GMT)
commitf7b2b8bce4beb054d29b981c3b102c831083b346 (patch)
tree809e7b79052fe606cdeefdffbd114c9d279996be
parent6cf9a82e4165911e0df28baf66d71b33253108a6 (diff)
downloadtoolchain_gcc-f7b2b8bce4beb054d29b981c3b102c831083b346.zip
toolchain_gcc-f7b2b8bce4beb054d29b981c3b102c831083b346.tar.gz
toolchain_gcc-f7b2b8bce4beb054d29b981c3b102c831083b346.tar.bz2
Enable C++ exceptions and RTTI by default.
With this change, -fexceptions and -frtti become default options when compiling C++ sources.
-rw-r--r--gcc-4.8/gcc/config/linux-android.h4
-rw-r--r--gcc-4.9/gcc/config/linux-android.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc-4.8/gcc/config/linux-android.h b/gcc-4.8/gcc/config/linux-android.h
index 87957e3..e88ab78 100644
--- a/gcc-4.8/gcc/config/linux-android.h
+++ b/gcc-4.8/gcc/config/linux-android.h
@@ -45,8 +45,8 @@
"%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}"
#define ANDROID_CC1PLUS_SPEC \
- "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \
- "%{!frtti:%{!fno-rtti: -fno-rtti}}"
+ "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \
+ "%{!frtti:%{!fno-rtti: -frtti}}"
#define ANDROID_ASM_SPEC \
"--noexecstack"
diff --git a/gcc-4.9/gcc/config/linux-android.h b/gcc-4.9/gcc/config/linux-android.h
index 070f969..d8a66c7 100644
--- a/gcc-4.9/gcc/config/linux-android.h
+++ b/gcc-4.9/gcc/config/linux-android.h
@@ -45,8 +45,8 @@
"%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}"
#define ANDROID_CC1PLUS_SPEC \
- "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \
- "%{!frtti:%{!fno-rtti: -fno-rtti}}"
+ "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \
+ "%{!frtti:%{!fno-rtti: -frtti}}"
#define ANDROID_ASM_SPEC \
"--noexecstack"