[Dune] Re: [Dune-CVS] CVS (mblatt)

Markus Blatt mblatt at hal.iwr.uni-heidelberg.de
Mon Apr 3 14:01:48 CEST 2006


On Mon, Apr 03, 2006 at 01:51:28PM +0200, Oliver Sander wrote:
> Habe ich das richtig verstanden daß der Code falsch war und außer
> icc 7.0 hat es keiner gemerkt?  Das wäre dann doch ein Fehler in
> gcc und wir sollten das vielleicht melden.
> 

Leider habe ich nicht versucht, mit der -ansi Option zu
kompilieren. Nur mit -ansi werden die GNU extensions entfernt.
quote from man g++

-ansi
           In C mode, support all ISO C90 programs.  In C++ mode,
	   remove GNU
           extensions that conflict with ISO C++.

           This turns off certain features of GCC that are
	   incompatible with
           ISO C90 (when compiling C code), or of standard C++ (when
	   compiling
           C++ code), such as the "asm" and "typeof" keywords, and
	   predefined
           macros such as "unix" and "vax" that identify the type of
	   system
           you are using.  It also enables the undesirable and rarely
	   used ISO
           trigraph feature.  For the C compiler, it disables
	   recognition of
           C++ style // comments as well as the "inline" keyword.

           The alternate keywords "__asm__", "__extension__",
	   "__inline__" and
           "__typeof__" continue to work despite -ansi.  You would not
	   want to
           use them in an ISO C program, of course, but it is useful
	   to put
           them in header files that might be included in compilations
	   done
           with -ansi.  Alternate predefined macros such as "__unix__"
	   and
           "__vax__" are also available, with or without -ansi.

           The -ansi option does not cause non-ISO programs to be
	   rejected
           gratuitously.  For that, -pedantic is required in addition
	   to
           -ansi.

Ich kann das ja mal mit einem Testprogramm probieren.


-- 




More information about the Dune mailing list