public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3
@ 2012-10-10 9:41 markus at trippelsdorf dot de
2012-10-10 9:46 ` [Bug lto/54885] " markus at trippelsdorf dot de
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-10 9:41 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/54885] [4.8 Regression] lto bootstrap broken with -O3
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
@ 2012-10-10 9:46 ` markus at trippelsdorf dot de
2012-10-10 9:55 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-10 9:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-10 09:46:01 UTC ---
I've posted the wrong invocation, it should read:
Starting program: /var/tmp/gcc_build_dir/gcc/xgcc
(and not /var/tmp/gcc_build_dir/prev-gcc/xgcc).
Anyway, the segfault is the same.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/54885] [4.8 Regression] lto bootstrap broken with -O3
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
2012-10-10 9:46 ` [Bug lto/54885] " markus at trippelsdorf dot de
@ 2012-10-10 9:55 ` rguenth at gcc dot gnu.org
2012-10-10 9:55 ` markus at trippelsdorf dot de
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-10 9:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/54885] [4.8 Regression] lto bootstrap broken with -O3
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
2012-10-10 9:46 ` [Bug lto/54885] " markus at trippelsdorf dot de
2012-10-10 9:55 ` rguenth at gcc dot gnu.org
@ 2012-10-10 9:55 ` markus at trippelsdorf dot de
2012-10-10 14:01 ` [Bug lto/54885] [4.8 Regression] lto/profiledbootstrap broken markus at trippelsdorf dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-10 9:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-10 09:55:28 UTC ---
markus@x4 libgcc % cat test.i
int a;
int
fn1 ()
{
if (a)
return 0;
}
markus@x4 libgcc % /var/tmp/gcc_build_dir/./gcc/xgcc
-B/var/tmp/gcc_build_dir/./gcc/ -O2 -c test.i
test.i: In function ‘fn1’:
test.i:7:1: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/54885] [4.8 Regression] lto/profiledbootstrap broken
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
` (2 preceding siblings ...)
2012-10-10 9:55 ` markus at trippelsdorf dot de
@ 2012-10-10 14:01 ` markus at trippelsdorf dot de
2012-10-13 11:53 ` [Bug middle-end/54885] " steven at gcc dot gnu.org
2012-10-19 16:24 ` markus at trippelsdorf dot de
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-10 14:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-10 14:00:53 UTC ---
Configured with:
markus@x4 gcc_build_dir % ~/gcc/configure --disable-werror --disable-multilib
--enable-languages=c,c++ --enable-checking=release
--with-build-config=slim-lto-bootstrap
This succeeds:
markus@x4 gcc_build_dir % make
And this fails:
markus@x4 gcc_build_dir % make -j4 profiledbootstrap
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/54885] [4.8 Regression] lto/profiledbootstrap broken
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
` (3 preceding siblings ...)
2012-10-10 14:01 ` [Bug lto/54885] [4.8 Regression] lto/profiledbootstrap broken markus at trippelsdorf dot de
@ 2012-10-13 11:53 ` steven at gcc dot gnu.org
2012-10-19 16:24 ` markus at trippelsdorf dot de
5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu.org @ 2012-10-13 11:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
Steven Bosscher <steven at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-10-13
Component|lto |middle-end
AssignedTo|unassigned at gcc dot |steven at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #4 from Steven Bosscher <steven at gcc dot gnu.org> 2012-10-13 11:53:09 UTC ---
Issue is in df-problems.c's reaching-and-live definitions problem. Which is my
wrong-doing.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/54885] [4.8 Regression] lto/profiledbootstrap broken
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
` (4 preceding siblings ...)
2012-10-13 11:53 ` [Bug middle-end/54885] " steven at gcc dot gnu.org
@ 2012-10-19 16:24 ` markus at trippelsdorf dot de
5 siblings, 0 replies; 7+ messages in thread
From: markus at trippelsdorf dot de @ 2012-10-19 16:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54885
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-10-19 16:24:24 UTC ---
Fixed by r192526.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-19 16:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10 9:41 [Bug lto/54885] New: [4.8 Regression] lto bootstrap broken with -O3 markus at trippelsdorf dot de
2012-10-10 9:46 ` [Bug lto/54885] " markus at trippelsdorf dot de
2012-10-10 9:55 ` rguenth at gcc dot gnu.org
2012-10-10 9:55 ` markus at trippelsdorf dot de
2012-10-10 14:01 ` [Bug lto/54885] [4.8 Regression] lto/profiledbootstrap broken markus at trippelsdorf dot de
2012-10-13 11:53 ` [Bug middle-end/54885] " steven at gcc dot gnu.org
2012-10-19 16:24 ` markus at trippelsdorf dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).