Introduce new typedefs: const_tree, const_rtx, etc.

Mark Mitchell mark@codesourcery.com
Mon Aug 14 03:44:00 GMT 2006


Kaveh R. Ghazi wrote:

> I'd like to introduce auxiliary const typedefs that parallel existing
> core types in GCC.  This will allow us to constify various things,
> mainly function parameters that currently take a plain tree, rtx, etc.
>
> Okay for mainline stage1 ?
> 
> Also, there's a lot of monotonous work propagating these types through
> the sources.  Anyone want to preapprove constification patches?
> They're all "obvious" changes anyway, except that in aggregate they're
> pretty big.

This kind of change is so massive across the source base that it will
disrupt almost all work currently being done on branches.  Therefore, I
will pre-approve this change and the follow-on patches to use the types
for stage *2*.  However, even at this point, please make sure that we
have flushed the outstanding branch patches for the next release before
applying.  I agree that this change is an improvement, but it would be
bad for a change of this nature to interfere with the contribution of
important new technology.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list