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

--- Comment #7 from Adam Stylinski <kungfujesus06 at gmail dot com> ---
Err wait, my bad, I had added the workaround in that source code.  The bug
still exists when I take out that pragma to push no store-merging.

adam@g5box ~ $ valgrind ./test.out
==27014== Memcheck, a memory error detector
==27014== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==27014== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==27014== Command: ./test.out
==27014== 
==27014== Use of uninitialised value of size 8
==27014==    at 0x415B8C8: _itoa_word (in /lib64/libc.so.6)
==27014==    by 0x4167BE3: __vfprintf_internal (in /lib64/libc.so.6)
==27014==    by 0x100005F7: main (in /home/adam/test.out)
==27014== 
==27014== Conditional jump or move depends on uninitialised value(s)
==27014==    at 0x415B8D0: _itoa_word (in /lib64/libc.so.6)
==27014==    by 0x4167BE3: __vfprintf_internal (in /lib64/libc.so.6)
==27014==    by 0x100005F7: main (in /home/adam/test.out)
==27014== 
==27014== Conditional jump or move depends on uninitialised value(s)
==27014==    at 0x41683F4: __vfprintf_internal (in /lib64/libc.so.6)
==27014==    by 0x4252C13: __printf_chk@@GLIBC_2.4 (in /lib64/libc.so.6)
==27014==    by 0x100005F7: main (in /home/adam/test.out)
==27014== 
==27014== Conditional jump or move depends on uninitialised value(s)
==27014==    at 0x4168FA8: __vfprintf_internal (in /lib64/libc.so.6)
==27014==    by 0x4252C13: __printf_chk@@GLIBC_2.4 (in /lib64/libc.so.6)
==27014==    by 0x100005F7: main (in /home/adam/test.out)
==27014== 
sat? = 0
==27014== 
==27014== HEAP SUMMARY:
==27014==     in use at exit: 0 bytes in 0 blocks
==27014==   total heap usage: 1 allocs, 1 frees, 1,024 bytes allocated
==27014== 
==27014== All heap blocks were freed -- no leaks are possible
==27014== 
==27014== Use --track-origins=yes to see where uninitialised values come from
==27014== For lists of detected and suppressed errors, rerun with: -s
==27014== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
adam@g5box ~ $ ./test.out 
sat? = 1

Reply via email to