Support for c94 language mode

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.

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

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

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