This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29994] __STRICT_ANSI__ meaning incorrectly documented
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Nov 2006 16:16:59 -0000
- Subject: [Bug c/29994] __STRICT_ANSI__ meaning incorrectly documented
- References: <bug-29994-128@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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