This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]