A plan to remove CUMULATIVE_ARGS [was: Re: RFA: PR44566: accessor macros (1/3): CUMULATIVE_ARGS]

Nathan Froyd froydnj@codesourcery.com
Fri Jun 25 18:48:00 GMT 2010


On Fri, Jun 25, 2010 at 01:37:21PM -0400, Joern Rennecke wrote:
> targhooks.c is compiled once for every target.  But I have to change its
> source code only once to change the interface, no matter what target
> macros it uses inside.  Likewise, other code in the compiler that depends
> on target macros gets compiled separately for each target.
>
> The target vector is supposed to isulate the middle-end from target
> dependencies; if its interface becomes target-dependent, that makes
> it useless for that purpose.

Yes, we agree here, but I must be dense, because I can't tell what
changes that you think I would make that make it target-dependent.
Could you please provide examples of such changes?  Just for
clarification: I'm talking about making hooks that take/return pointers
to CUMULATIVE_ARGS, *not* the actual CUMULATIVE_ARGS structure.

-Nathan



More information about the Gcc-patches mailing list