On Wed, Feb 22, 2012 at 8:20 PM, Jing Yu <[email protected]> wrote:
> 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++.
That, of course, does not answer my question why
>>> + "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \
>>> + "%{!frtti:%{!fno-rtti: -frtti}}"
is not a no-op.
Richard.
> Thanks,
> Jing
>
> On Wed, Feb 22, 2012 at 7:07 AM, Richard Guenther
> <[email protected]> wrote:
>> On Wed, Feb 22, 2012 at 3:57 PM, Ilya Enkovich <[email protected]>
>> 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 <[email protected]>
>>>
>>> * 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}"