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]
Other format: [Raw text]

Re: Porposal: Floating-Point Options


On 2005-06-14 13:37:41 -0400, Scott Robert Ladd wrote:
> I suppose I need to be consistent... ;) I've said in past threads,
> GCC should default to -ansi -std=c99/c++98 -pedantic, and any
> deviation should require specification of an option.

You're not consistent here.

[from the gcc 4.0 man page]
  -std=
      Determine the language standard.  This option is currently only
      supported when compiling C or C++.  A value for this option must be
      provided; possible values are

      c89
      iso9899:1990
          ISO C90 (same as -ansi).

What you want is -std=c99/c++98 -pedantic.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


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