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

Reply via email to