This is the mail archive of the
mailing list for the GCC project.
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
> 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!