------- Comment #1 from joseph at codesourcery dot com 2006-11-27 16:16 ------- Subject: Re: New: __STRICT_ANSI__ meaning incorrectly documented
On Mon, 27 Nov 2006, bruno at clisp dot org wrote: > What does __STRICT_ANSI__ mean in C (not C++) mode? > > The doc says: "The macro `__STRICT_ANSI__' is predefined when the `-ansi' > option is used." I.e. when the compiler is implementing strict ISO C90. Only in invoke.texi under the documentation of -ansi - i.e. this particular documentation has no real reason to describe what effect other options might have, it's documenting a particular option (-ansi) only. The documentation in cpp.texi, and that in trouble.texi, specifically mention "or a @option{-std} switch specifying strict conformance to some version of ISO C". I'd say the cpp.texi documentation is the main documentation of what a particular predefined macro means (as opposed to the effects of a particular option on predefined macros). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29994