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

Joern Rennecke amylaar@spamcop.net
Fri Jun 25 14:48:00 GMT 2010


Quoting Nathan Froyd <froydnj@codesourcery.com>:

> I don't understand the argument here.  How is moving around
> CUMULATIVE_ARGS in the target hook interface making it "more
> entrenched"?  Converting all references to CUMULATIVE_ARGS to use
> pointers is actually making things less entrenched, because then the
> layout of CUMULATIVE_ARGS need not be exposed to the non-backend
> portions of the compiler.

That's a misunderstanding then.  No, changing from CUMULATIVE_ARGS to
CUMULATIVE_ARGS * does not create any new problems (as long as you don't
have any arrays / pointer-arithmetic (e.g. increment) on these pointers).
I meant you increase the problem when you increase the number of target
hooks that use CUMULATIVE_ARGS, or increase the number of their
implementations in the various config/*/* files.



More information about the Gcc-patches mailing list