This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __STDC_VERSION__ is undefined in gcc-3.x?
- To: Gordon Sadler <gbsadler1 at lcisp dot com>
- Subject: Re: __STDC_VERSION__ is undefined in gcc-3.x?
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sun, 29 Jul 2001 21:37:15 +0100 (BST)
- cc: <gcc at gcc dot gnu dot org>
On Sun, 29 Jul 2001, Gordon Sadler wrote:
> macro is defined at all times. (As an aside, gcc.texi claims when better
> support for the c99 standard is included with gcc it will become the
> default, hence my reason to change the default for now to iso9899:199409.
> Previous behavior is still possible with -ansi).
Before we can change to anything from gnu89 as default, we need a -Wc89
option to warn in those places where -std=gnu89 -pedantic warns, so that
programs such as GCC itself now using -pedantic for portability can still
get the warnings without forcing the compiler into an old standard mode.
(It hasn't yet been felt worthwhile to add a gnu94 option - which is what
you seem to be proposing.)
--
Joseph S. Myers
jsm28@cam.ac.uk