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: [3.1-branch PATCH] fix mips CPP size specs for MEABI.


Zack Weinberg wrote:-

> > OK, I've done it with the patch below.  It should now be trivial
> > to handle target-specific CPP built-in macros.
> 
> This is going to cause problems for front ends that don't link against
> cpplib.  It needs to be handled more like the hooks to define target-
> specific pragmas.

Ah yes, once the target hooks are actually written.  Sigh.

I've never looked at how the pragmas are done.  It appears that it's
through a whole bunch of macros and conditional compilation, right?

How about instead of putting the prototypes in c-lex.h like I did,
making them langhooks?  The default does nothing, and the C family
front ends pass them on to cpplib.  I think the pragmas would be
better done that way too.  The cost to non-C front ends could be
easily avoided by testing a langhook boolean "c_family_p" before
doing the pragmas and macros / assertions.

Does that sound workable?  It might clean up some of the current
pragma messiness too.

Neil.


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