This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386, Android] Enable exceptions and RTTI by default for Android
- From: Jing Yu <jingyu at google dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: Ilya Enkovich <enkovich dot gnu at gmail dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, pavel dot v dot chupin at gmail dot com, "H.J. Lu" <hjl dot tools at gmail dot com>, Doug Kwan (éæå) <dougkwan at google dot com>, David Turner <digit at google dot com>
- Date: Wed, 22 Feb 2012 11:20:55 -0800
- Subject: Re: [PATCH, i386, Android] Enable exceptions and RTTI by default for Android
- Authentication-results: mr.google.com; spf=pass (google.com: domain of jingyu@google.com designates 10.42.155.193 as permitted sender) smtp.mail=jingyu@google.com; dkim=pass header.i=jingyu@google.com
- References: <CAMbmDYbVb0ksxY2FFy9+0rzJKve+-BHeERxVBPJtJ_wZMQtG2A@mail.gmail.com> <CAFiYyc3VaTDVUGXxkBXgF4Br+qBDNPV+BuOAhL4xH1mtb00HSw@mail.gmail.com>
So far, Android ARM toolchain, which builds Android platform for ARM
boards, does not enable RTTI and exceptions by default. There are
license concerns with the use of GNU libstdc++ and libsupc++.
Thanks,
Jing
On Wed, Feb 22, 2012 at 7:07 AM, Richard Guenther
<richard.guenther@gmail.com> wrote:
> On Wed, Feb 22, 2012 at 3:57 PM, Ilya Enkovich <enkovich.gnu@gmail.com> 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.
>
>
>> Thanks,
>> Ilya
>> --
>>
>> 2012-02-22 ?Enkovich Ilya ?<ilya.enkovich@intel.com>
>>
>> ? ? ? ?* 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..7256082 100644
>> --- a/gcc/config/linux-android.h
>> +++ b/gcc/config/linux-android.h
>> @@ -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}"