[Bug tree-optimization/59413] wrong code at -Os on x86_64-linux-gnu in both 32-bit and 64-bit modes
su at cs dot ucdavis.edu
gcc-bugzilla@gcc.gnu.org
Fri Dec 20 01:56:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59413
--- Comment #4 from Zhendong Su <su at cs dot ucdavis.edu> ---
(In reply to Jakub Jelinek from comment #2)
> I couldn't reproduce this either, neither -m32/-m64 helps, tried also
> r205733 and various other snapshots, everything prints 7.
But it doesn't appear to fail with the latest trunk revision (r206135):
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++,lto --disable-werror --enable-multilib
Thread model: posix
gcc version 4.9.0 20131219 (experimental) [trunk revision 206135] (GCC)
$
$ gcc-trunk -Os small.c; a.out
7
$
More information about the Gcc-bugs
mailing list