This is the mail archive of the 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]

Re: [PATCH, i386, Android] Enable exceptions and RTTI by default for Android

> On Wed, Feb 22, 2012 at 3:57 PM, Ilya Enkovich <> wrote:
>> Hello,
>> Here is a simple patch which enables exceptions and RTTI by default
>> for Android target. OK for trunk?
> Err - isn't that the default? ?Thus, simply delete the bogus spec?
> Richard.

Is following patch OK or it's better to remove whole macro and its usages?

2012-02-22  Enkovich Ilya  <>

	* gcc/config/linux-android.h (ANDROID_CC1PLUS_SPEC): Enable
	exceptions and rtti by default.

diff --git a/gcc/config/linux-android.h b/gcc/config/linux-android.h
index 94c5274..180b62b 100644
--- a/gcc/config/linux-android.h
+++ b/gcc/config/linux-android.h
@@ -45,9 +45,7 @@
   "%{!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} "			\
   "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"

-#define ANDROID_CC1PLUS_SPEC						\
-  "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} "		\
-  "%{!frtti:%{!fno-rtti: -fno-rtti}}"

   "%{!static: -ldl}"

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