This is the mail archive of the
mailing list for the GCC project.
Re: [patch, docs] PR19309
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 10 Feb 2005 13:07:37 +0000 (UTC)
- Subject: Re: [patch, docs] PR19309
- References: <firstname.lastname@example.org>
On Thu, 10 Feb 2005, Steven Bosscher wrote:
> The documentation of cpp says that the predefined macros __GNUC__,
> __GNUC_MINOR__, and __GNUC_PATCHLEVEL__ "are defined only when the
> entire compiler is in use; if you invoke the preprocessor directly,
> they are not defined."
The origin of that claim might have been when there was a libsubdir/cpp
executable and no bindir/cpp driver, and libsubdir/cpp did define a
restricted set of macros, if any. As however we have a cpp wrapper and
cc1 long ago replaced the internal cpp0 entirely, the manual is now wrong.
> PR documentation/19309
> * doc/cpp.texi: The __GNUC__ and related predefined macros
> are also defined for the "standalone" cpp.
> Some non-GCC compilers may also define __GNUC__.
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
email@example.com (personal mail)
firstname.lastname@example.org (CodeSourcery mail)
email@example.com (Bugzilla assignments and CCs)