[cfe-dev] RFC: switch default C language mode from gnu99 to gnu11

Richard Smith richard at metafoo.co.uk
Mon Oct 20 16:39:35 PDT 2014


Thanks all. I made the change to the default C language mode in r220244.

Since the discussion on changes to the test suite has not yet concluded, I
have made no change there. This means that we have very little test
coverage of our C99 (or indeed C89) mode right now, but it's not clear if
that's a problem, since we should have explicit coverage of before/after
for all the relevant language changes.

On Thu, Oct 16, 2014 at 5:10 AM, Aaron Ballman <aaron at aaronballman.com>
wrote:

> On Wed, Oct 15, 2014 at 6:22 PM, Richard Smith <richard at metafoo.co.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.
> >
> > Also of note: GCC trunk just switched from C89 to C11 by default.
>
> +1
>
> ~Aaron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141020/bfe3bf1f/attachment.html>


More information about the cfe-dev mailing list