Subject: Re: gcc3's cpp not defining __GNUC__
To: Frederick Bruckman <>
From: Todd Vierling <>
List: tech-pkg
Date: 07/21/2003 11:50:09
On Mon, 21 Jul 2003, Frederick Bruckman wrote:

: > I think it is not enough. The pkg gcc should mimic the to-be-integrated gcc
: > as far as possible. So -gcc should be default for CPP.
: I think it's an excellent idea to stay in sync with whatever the
: in-tree gcc does, but it hasn't been established that the in-tree gcc
: will do that, not at all (nor can it be by any consensus on *this*
: mailing list).

It has been established by the fact that /usr/bin/cpp has defined this since
the dawn of NetBSD.

Hell, it defines __unix__, __i386__, and even __GXX_ABI_VERSION.  Not
defining __GNUC__ in this mix is just damned boneheaded and deserves to be
whacked hard (and submitted back to the GCC maintainers, I might add) --
else all the other predefines should go away as well.


-- Todd Vierling <>