[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-gcc at firstfloor dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 28 06:07:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andi-gcc at firstfloor dot org
--- Comment #3 from Andi Kleen <andi-gcc at firstfloor dot org> ---
I did some experiments. I can reproduce it with trunk for 32bit.
The interesting part is that the printed value seems to be uninitialized on the
stack and changes on every run. a valgrind run gives
=23130== Use of uninitialised value of size 4
==23130== at 0x40B102B: _itoa_word (in /lib/libc-2.18.so)
==23130== by 0x40B474A: vfprintf (in /lib/libc-2.18.so)
==23130== by 0x40BAFCE: printf (in /lib/libc-2.18.so)
==23130== by 0x40879D2: (below main) (in /lib/libc-2.18.so)
==23130== Uninitialised value was created by a stack allocation
==23130== at 0x80482F4: main (in /home/andi/Downloads/pr61969/t)
==23130==
... more warnings like this ...
More information about the Gcc-bugs
mailing list