TREE_READONLY vs TREE_CONSTANT

Josh Conner jconner@apple.com
Wed Aug 24 22:55:00 GMT 2005


On Aug 24, 2005, at 12:33 PM, Richard Henderson wrote:

> On Wed, Aug 24, 2005 at 11:10:38AM -0700, Josh Conner wrote:
>
>> Can someone provide a bit of insight here - what is the difference
>> between TREE_READONLY and TREE_CONSTANT (and why is TREE_READONLY the
>> one that ipa-reference should be setting)?
>>
>
> It depends on what property IPA is computing.  And they aren't
> terribly differentiated.
...

Thanks very much for the thorough description.  I think I understand  
the distinction now.

> I'm not sure how much of this will be possible before 4.1 is
> released.  At minimum we have to change IPA to stop setting
> TREE_READONLY when DECL_SECTION_NAME is set; if we have to
> live with reduced optimization so be it.

I'd be glad to create and test a patch for this, if it would be  
welcomed.

- Josh



More information about the Gcc mailing list