This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __STDC_VERSION__ is undefined in gcc-3.x?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]