This is the mail archive of the gcc@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]

Is there a target name -> define name mapping?



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.  :-}


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