Support for c94 language mode

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Support for c94 language mode

Hans Wennborg via cfe-dev
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?


Regards,
Sergey Mikhailov.
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for c94 language mode

Hans Wennborg via cfe-dev
On Sun, Mar 11, 2018 at 8:22 AM, Сергей Михайлов via cfe-dev
<[hidden email]> 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
> [hidden email]
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for c94 language mode

Hans Wennborg via cfe-dev
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 <[hidden email]> wrote:
On Sun, Mar 11, 2018 at 8:22 AM, Сергей Михайлов via cfe-dev
<[hidden email]> 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
> [hidden email]
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Support for c94 language mode

Hans Wennborg via cfe-dev
On Tue, Mar 13, 2018 at 8:43 PM, Hubert Tong
<[hidden email]> wrote:
> 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.

I fixed the docs in r327264, but managed to forget to say anything on
this thread.

~Aaron

>
> -- HT
>
> On Mon, Mar 12, 2018 at 9:10 AM, Aaron Ballman via cfe-dev
> <[hidden email]> wrote:
>>
>> On Sun, Mar 11, 2018 at 8:22 AM, Сергей Михайлов via cfe-dev
>> <[hidden email]> 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
>> > [hidden email]
>> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>> >
>> _______________________________________________
>> cfe-dev mailing list
>> [hidden email]
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev