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


> 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.

> If there's really a need for ADDR_EXPR (CONST_DECL), it would be simpler
> just to allow ADDR_EXPR (INTEGER_CST).

Remember that we *used to* allow the latter!


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