Patchwork [google/gcc-4_6_2-mobile] Enable exceptions and RTTI by default for Android

login
register
mail settings
Submitter Ilya Enkovich
Date Feb. 21, 2012, 9:45 a.m.
Message ID <CAMbmDYaLPrtcY2wLwvD1Q0Bgs8jfmiO=KbO7L43HriRsOWfbcA@mail.gmail.com>
Download mbox | patch
Permalink /patch/142274/
State New
Headers show

Comments

Ilya Enkovich - Feb. 21, 2012, 9:45 a.m.
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.

Patch

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}"