This is the mail archive of the
mailing list for the GCC project.
namespace-invasive CPP built-ins
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: neil at daikokuya dot co dot uk
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 26 Aug 2002 18:00:38 -0700
- Subject: namespace-invasive CPP built-ins
- Organization: Wasabi Systems, Inc.
Sorry for the delay in bringing this up, but I have not had much time
for GCC stuff for the last ... too long. Anway...
In May, you made a change to config/alpha/alpha.h to put the LANGUAGE_*
defines into TARGET_CPU_CPP_BUILTINS() ... I overlooked it at first, but
the LANGUAGE_* defines were recently brought to my attention by someone
else in the context of MIPS, and so I started looking around and noticed
them on Alpha, too.
The rub here is the "LANGUAGE_C" define ... it is namespace-invasive,
and some targets (like NetBSD) try to keep stuff like that out of the
namespace regardless of stdc options...
I guess it boils down to the fact that stuff like LANGUAGE_* is kind
of OS-specific .. no all OSs use it in their headers or source code,
and testing those defines certainly isn't portable in the general sense.
I'd like to figure out some way to sanely move these things out of
TARGET_CPU_CPP_BUILTINS() and into some other construct. Thoughts?
-- Jason R. Thorpe <email@example.com>