1 From 4fe805f627c018d77091ea0aad92553c54d47567 Mon Sep 17 00:00:00 2001 2 From: David 'Digit' Turner <digit (a] google.com> 3 Date: Fri, 17 Feb 2012 19:35:45 +0100 4 Subject: Enable C++ exceptions and RTTI by default. 5 6 With this change, -fexceptions and -frtti become default options 7 when compiling C++ sources. 8 --- 9 gcc-4.6/gcc/config/linux-android.h | 4 ++-- 10 gcc-4.8/gcc/config/linux-android.h | 4 ++-- 11 gcc-4.9/gcc/config/linux-android.h | 4 ++-- 12 3 files changed, 6 insertions(+), 6 deletions(-) 13 14 diff --git a/gcc-4.6/gcc/config/linux-android.h b/gcc-4.6/gcc/config/linux-android.h 15 index c19b1c1..6fa4f53 100644 16 --- a/gcc-4.6/gcc/config/linux-android.h 17 +++ b/gcc-4.6/gcc/config/linux-android.h 18 @@ -46,8 +46,8 @@ 19 "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}" 20 21 #define ANDROID_CC1PLUS_SPEC \ 22 - "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \ 23 - "%{!frtti:%{!fno-rtti: -fno-rtti}}" 24 + "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \ 25 + "%{!frtti:%{!fno-rtti: -frtti}}" 26 27 #define ANDROID_ASM_SPEC \ 28 "--noexecstack" 29 diff --git a/gcc-4.8/gcc/config/linux-android.h b/gcc-4.8/gcc/config/linux-android.h 30 index 87957e3..e88ab78 100644 31 --- a/gcc-4.8/gcc/config/linux-android.h 32 +++ b/gcc-4.8/gcc/config/linux-android.h 33 @@ -45,8 +45,8 @@ 34 "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}" 35 36 #define ANDROID_CC1PLUS_SPEC \ 37 - "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \ 38 - "%{!frtti:%{!fno-rtti: -fno-rtti}}" 39 + "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \ 40 + "%{!frtti:%{!fno-rtti: -frtti}}" 41 42 #define ANDROID_ASM_SPEC \ 43 "--noexecstack" 44 diff --git a/gcc-4.9/gcc/config/linux-android.h b/gcc-4.9/gcc/config/linux-android.h 45 index 26f1a74..e5114c2 100644 46 --- a/gcc-4.9/gcc/config/linux-android.h 47 +++ b/gcc-4.9/gcc/config/linux-android.h 48 @@ -45,8 +45,8 @@ 49 "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}" 50 51 #define ANDROID_CC1PLUS_SPEC \ 52 - "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \ 53 - "%{!frtti:%{!fno-rtti: -fno-rtti}}" 54 + "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \ 55 + "%{!frtti:%{!fno-rtti: -frtti}}" 56 57 #define ANDROID_ASM_SPEC \ 58 "--noexecstack" 59 -- 60 1.9.1.423.g4596e3a 61 62