From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31839 invoked by alias); 10 Oct 2012 09:41:37 -0000 Received: (qmail 31810 invoked by uid 48); 10 Oct 2012 09:41:22 -0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 Date: Wed, 10 Oct 2012 09:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus at trippelsdorf dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg00938.txt.bz2 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