[cfe-dev] union.diff [Re: Continuing Adventures with Objective-C]

Eli Friedman eli.friedman at gmail.com
Fri May 16 11:15:47 PDT 2008


On Fri, May 16, 2008 at 10:49 AM, David Chisnall <csdavec at swansea.ac.uk> wrote:
> On 15 May 2008, at 02:01, Devang Patel wrote:
>
>> David,
>>
>> On May 13, 2008, at 9:22 AM, David Chisnall wrote:
>>
>>> union.diff adds support for GCC's cast-to-union extension, which is
>>> used in a depressing number of places in the GNUstep code.
>>
>> It is a good idea to include a patch here to add the switch to
>> enable this extension. I did not know about this extension until now!.
>
> I've not looked at the dialect options code at all yet.  Is there an
> existing flag I should test to see if we are in GNU-compatible mode?

Just make the diagnostic of type EXTENSION; those are automatically
hidden outside of strict compliance mode.  clang is basically always
in GNU-compatible mode, at least at the moment.

-Eli



More information about the cfe-dev mailing list