This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is there a target name -> define name mapping?
- To: gcc at gcc dot gnu dot org
- Subject: Is there a target name -> define name mapping?
- From: Bruce Korb <korb at datadesign dot com>
- Date: Tue, 23 Nov 1999 07:40:28 -0800
- Organization: Data Design Systems, Inc.
- Reply-To: ddsinc09 at ix dot netcom dot com
As long as I am thinking about fixincludes,
one of the real time wasters is the fixing
of things like:
#ifdef sun
into
#ifdef __sun__
on non-Sun platforms. If it were feasible
to map config.guess triplets into a list of
set defines and known bad variants, then it
would also be feasible to only fix those bad
variants when not in the context of a good
variant. I.e. fix this:
#if defined( sun )
but not this:
#if defined( sun ) || defined( __sun__ )
However, to do that, I would need an authoritative
mapping. I've wandered through the gcc/config/xm*.h
files a bit, but it is too confusing for the limited
amount of play time I have. :-}