This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -std's (was Re: v3 link failures analyzed)
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: -std's (was Re: v3 link failures analyzed)
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 10 Jan 2001 07:55:19 +0100
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, Robert Lipe <robertl at sco dot com>, libstdc++- at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20001230160338.A3505@rjlhome.sco.com> <20001231000529.C20493@disaster.jaj.com> <fld7e84uiv.fsf@sel.cmla.ens-cachan.fr> <20010110010817.A5394@disaster.jaj.com> <20010110014205.A5535@disaster.jaj.com>
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