http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51663
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-04
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-04
12:54:33 UTC ---
Smaller testcase:
int m ()
{
static int d;
return d;
}
int main() {}
Does not eliminate m::d with -O0 -fwhole-program (but does, with -O1).
It does eliminate m with -O0 -fwhole-program. Similar with LTO and
the original testcase - m::d is only eliminated with optimization.
Odd inconsistency (remember, with -O0 -fwhole-program on the original
testcase m::d is eliminated).