[lto] PATCH: Add support for referencing types from function bodies

Mark Mitchell mark@codesourcery.com
Mon Sep 4 18:41:00 GMT 2006


Richard Kenner wrote:
>> Fundamentally, all a CONST_DECL gives you is a name for a constant. 
>> But, there's no advantage to having names when optimizing; you might as 
>> well just use the constant.  
> 
> And I'd argue that CONST_DECL therefore shouldn't survive into the
> middle-end; it should be replaced by the underlying constant by fold and/or
> gimplification.

That's exactly what I argued, so we agree.

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



More information about the Gcc-patches mailing list