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: Gabriel Dos Reis <gdr at codesourcery dot com>, Robert Lipe <robertl at sco dot com>, libstdc++-v3 at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Re: -std's (was Re: v3 link failures analyzed)
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Wed, 10 Jan 2001 01:42:05 -0500
- References: <20001230160338.A3505@rjlhome.sco.com> <20001231000529.C20493@disaster.jaj.com> <fld7e84uiv.fsf@sel.cmla.ens-cachan.fr> <20010110010817.A5394@disaster.jaj.com>
On Wed, Jan 10, 2001 at 01:08:17AM -0500, Phil Edwards wrote:
>
> -std=iso9899:1990 same as -ansi
> -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. The table in c-decl.c sets
the same flags when -ansi or -std=iso9899:1990 are given, but -ansi is
clearly being looked for additionally elsewhere.
Phil
[*] Clause [1.2] seems to want the language in C89/C90 with the library
in C94.
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.