[cfe-dev] Support for c94 language mode

Hubert Tong via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 13 17:43:14 PDT 2018


You can submit a patch to fix https://bugs.llvm.org/show_bug.cgi?id=19942.
I think it's the docs that are wrong.

-- HT

On Mon, Mar 12, 2018 at 9:10 AM, Aaron Ballman via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On Sun, Mar 11, 2018 at 8:22 AM, Сергей Михайлов via cfe-dev
> <cfe-dev at lists.llvm.org> wrote:
> > Hello,
> >
> >
> > may be I have missed something, but the online version of Clang Compiler
> > User's Manual has c94 language mode among others for -std option (listed
> > under Language Features), but the compiler rejects c94 in '-std=c94' (but
> > accepts 'iso9899:199409' instead, for presumably the same revision).
> >
> > Looks like the compiler behavior and the online manual are out of sync a
> > bit.
> > Not sure if there are plans to adjust either of them.
> >
> > Any comments?
>
> Yes, the documentation is out of date. There is no -std=c94 in Clang
> (or GCC), but -std=iso9899:1994 is the way you'd spell it.
>
> ~Aaron
>
> >
> >
> > Regards,
> > Sergey Mikhailov.
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> >
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180313/1648ede9/attachment.html>


More information about the cfe-dev mailing list