-std's (was Re: v3 link failures analyzed)
Gabriel Dos Reis
gdr@codesourcery.com
Tue Jan 9 22:55:00 GMT 2001
Phil Edwards <pedwards@disaster.jaj.com> writes:
| On Wed, Jan 10, 2001 at 01:08:17AM -0500, Phil Edwards wrote:
| >
| > -std=iso9899:1990 same as -ansi
Maybe, it is time to add -iso to mean iso9899:1990 for it is somehow
counterintuitive not to recognize -std=c90 (== c89) AND recognize
-ansi as -std=iso9899:1990. That is just inconsistent.
| > -std=iso9899:199409 ISO C as modified in amend. 1
| > -std=iso9899:1999 ISO C 99
| > -std=c89 same as -std=iso9899:1990
| > -std=c99 same as -std=iso9899:1999
| > -std=gnu89 default, iso9899:1990 + gnu extensions
| > -std=gnu99 iso9899:1999 + gnu extensions
| >
| > For v3 I think -std=iso9899:199409 is the closest we want. Gaby? Benjamin?
|
|
| Heh heh heh, I sent that before the build finished. I should learn...
|
| The only thing we can use is -ansi. Either of the C90/94[*] variants
| mean that '//' comments aren't recognized.
Maybe we should instrumentalize GCC so as to accept //-comment even
when looking for C90/C94-compliance. At some point, that will be
needed.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list