[Bug rtl-optimization/68298] [5/6 Regression] wrong code at -O3 on x86_64-linux-gnu (in 64-bit mode)
su at cs dot ucdavis.edu
gcc-bugzilla@gcc.gnu.org
Sun Nov 15 06:56:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68298
--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> ---
(In reply to Mikael Pettersson from comment #1)
> I can't reproduce this SEGV on x86_64-linux with current gcc-5 or gcc-6.
Mikael, I can still reproduce it with r230382 as shown below:
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20151114 (experimental) [trunk revision 230382] (GCC)
$
$ gcc-trunk -m64 -O3 pr68298.c
$ ./a.out
Segmentation fault (core dumped)
$
$ gcc-trunk -m64 -O2 pr68298.c
$ ./a.out
0
$
More information about the Gcc-bugs
mailing list