This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]