[cfe-dev] RFC: switch default C language mode from gnu99 to gnu11
Renato Golin
renato.golin at linaro.org
Thu Oct 16 05:07:44 PDT 2014
On 16 October 2014 11:16, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
>> I'd like to switch the default language mode for C compilations from gnu99 to gnu11. The only effect of this change would be to turn some extension warnings off, change the default value of __STDC_VERSION__, and change the default value of some __has_feature(...) checks; we allow all of C11 as an extension in C99 mode anyway.
+1
> It would be nice to have a warning that objects if you use any reserved identifiers (double underscore, underscore-capital) outside of a system header / system library so that people can ensure that their c11 code will be valid for whatever the next iteration of the standard is.
Coincidentally, I just had a conversation about this very subject
today at LPC. Indeed, such a warning would be interesting to have.
cheers,
--renato
More information about the cfe-dev
mailing list