This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Enable PCH support on Solaris
> I don't suppose we could make this into a target hook? If it was a
> proper function, there'd be no problem having static variables for
> counters in the same place...
Grumpf :-) The patch has already been written and tested on SPARC.
I proposed to add a third argument to the macro because it's IMHO the most
straightforward approach: the macro is defined in platform-independent
headers (config/*.h) as well as platform-specific headers, and some ports
(e.g. SPARC) use both levels of headers. So the hook would depend upon
the headers anyway.
--
Eric Botcazou