[3.1-branch PATCH] fix mips CPP size specs for MEABI.
Neil Booth
neil@daikokuya.demon.co.uk
Sat May 4 14:00:00 GMT 2002
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.
More information about the Gcc-patches
mailing list