[Bug lto/61969] [4.8/4.9/5 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)

andi at firstfloor dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 7 17:53:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969

--- Comment #8 from andi at firstfloor dot org ---
> only automatic vars may have a VALUE_EXPR, certainly not 'extern const' stuff.

It's an initializer for an automatic var in the source

func_52() {
    struct S0 foo = { ... }
    ...
}


> 
> What does func_52 look like before the NRV pass?  It must be sth like
> 
>  <retval> = l_55;
> 
> ?

Yes it looks like that.



More information about the Gcc-bugs mailing list