------- Comment #6 from manu at gcc dot gnu dot org 2007-03-08 15:52 ------- (In reply to comment #5) > Subject: Re: -std=c89 doesn't warn about gcc's "?:" extension > > On Wed, 7 Mar 2007, manu at gcc dot gnu dot org wrote: > > > Sorry, I still don't understand what is the difference between -std=c89 and > > -std=gnu89. > > -std=c89 accepts C89 programs that conflict with the GNU C89 language. > For example, ones using "inline" or "asm" as an identifier, or using any > non-reserved identifier predefined as a macro in GNU C (such as "linux" or > "i386") or using trigraphs. >
That clarifies all perfectly. I think it is not as clear in the manual but perhaps I am a bit slow. Maybe in -std= it should say: gnu89 - Default, ISO C90 plus GNU extensions (including some C99 fea‐ - tures). + Default, subset of ISO C90 that doesn't conflict + with GNU extensions (including some C99 features + that conflict with C90) In any case, this bug seems invalid to me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368