This is the mail archive of the gcc-patches@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: [patch, docs] PR19309


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__.

OK.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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