[cfe-dev] GNU runtime non-fragile ABI and cleanup

Fariborz Jahanian fjahanian at apple.com
Mon Aug 31 09:52:09 PDT 2009


On Aug 31, 2009, at 9:41 AM, David Chisnall wrote:

> On 31 Aug 2009, at 17:32, Fariborz Jahanian wrote:
>
>>> This should also be supported for the NeXT runtime - this option  
>>> was created by NeXT for NeXTSTEP compatibility in OPENSTEP, when  
>>> the constant string class was renamed from NXConstantString (NeXT  
>>> namespace, used on NeXTSTEP) to NSConstantString (NeXT-Sun  
>>> namespace used on OpenStep implementations including OPENSTEP).   
>>> From the Apple GCC docs:
>>
>> As long as there is no support for legacy stuff in Non-Gnu runtime,  
>> please issue a warning for those runtimes.
>
> I've just tested on Snow Leopard, and it seems that the GCC  
> documentation is wrong; the current behaviour is to accept this  
> option but simply discard it.  I've committed it without the warning  
> for now, because that mimics gcc behaviour, but I'll add one if you  
> definitely want it.

To have the effect on SL you need to provide both -fno-constant- 
cfstrings -fconstant-string-class=xx
It is probably a gcc bug that it silently ignores -fconstant-string- 
class=xx all by itself. Warning will indeed
be useful to us.

- Thanks, Fariborz

>
>
> David




More information about the cfe-dev mailing list