[google/gcc-4_6_2-mobile, PATCH] Enable exceptions and RTTI by default for Android
Ilya Enkovich
enkovich.gnu@gmail.com
Tue Feb 21 09:47:00 GMT 2012
Hello,
Here is a ptch which enables exceptions and RTTI by default for
android targets like it is done in current NDK GCC 4.4.3 compiler. OK
for google/gcc-4_6_2-mobile branch.
Thanks,
Ilya
--
2012-02-21 Enkovich Ilya <ilya.enkovich@intel.com>
* gcc/config/linux-android.h (ANDROID_CC1PLUS_SPEC): Enable
exceptions and rtti by default.
Index: gcc/config/linux-android.h
===================================================================
--- gcc/config/linux-android.h (revision 184395)
+++ gcc/config/linux-android.h (working copy)
@@ -46,8 +46,8 @@
"%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
#define ANDROID_CC1PLUS_SPEC \
- "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \
- "%{!frtti:%{!fno-rtti: -fno-rtti}}"
+ "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \
+ "%{!frtti:%{!fno-rtti: -frtti}}"
#define ANDROID_LIB_SPEC \
"%{!static: -ldl}"
More information about the Gcc-patches
mailing list