This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Oct 2012 09:41:21 +0000
- Subject: [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
Bug #: 54885
Summary: [4.8 Regression] lto bootstrap broken with -O3
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: markus@trippelsdorf.de
gcc gets apparently miscompiled in the last stage of lto/profiledbootstrap with
-O3:
Starting program: /var/tmp/gcc_build_dir/prev-gcc/xgcc
-B/var/tmp/gcc_build_dir/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/
-B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include
-isystem /usr/x86_64-pc-linux-gnu/sys-include -march=native -O3 -pipe -O2
-march=native -O3 -pipe -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -fpic -mlong-double-80 -I. -I. -I../.././gcc
-I/home/markus/gcc/libgcc -I/home/markus/gcc/libgcc/.
-I/home/markus/gcc/libgcc/../gcc -I/home/markus/gcc/libgcc/../include
-I/home/markus/gcc/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS -DUSE_TLS -o _lshrdi3.o -MT _lshrdi3.o -MD -MP -MF _lshrdi3.dep
-DL_lshrdi3 -c /home/markus/gcc/libgcc/libgcc2.c -fvisibility=hidden
-DHIDE_EXPORTS
[New process 21128]
process 21128 is executing new program: /var/tmp/gcc_build_dir/gcc/cc1
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 21128]
0x0000000000667771 in execute_rtl_cprop() [clone .1175139.18174] ()
(gdb) bt
#0 0x0000000000667771 in execute_rtl_cprop() [clone .1175139.18174] ()
#1 0x00000000004eb407 in execute_one_pass(opt_pass*) ()
#2 0x00000000004eb635 in execute_pass_list(opt_pass*) ()
#3 0x00000000004eb652 in execute_pass_list(opt_pass*) ()
#4 0x00000000004c122f in expand_function(cgraph_node*) [clone .181127.59333]
()
#5 0x00000000004c2c5e in compile() ()
#6 0x00000000004c30ed in finalize_compilation_unit() ()
#7 0x0000000000509c86 in c_write_global_declarations() ()
#8 0x00000000004c3199 in compile_file() [clone .657622] ()
#9 0x00000000004ef1fc in toplev_main(int, char**) ()
#10 0x00007ffff7773635 in __libc_start_main () from /lib/libc.so.6
#11 0x00000000004b35a9 in _start () at ../sysdeps/x86_64/start.S:123