public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1
@ 2010-01-17 15:52 laurent at guerby dot net
2010-01-17 16:05 ` [Bug target/42775] " rguenth at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: laurent at guerby dot net @ 2010-01-17 15:52 UTC (permalink / raw)
To: gcc-bugs
../gcc-4.4.2/configure --enable-languages=c --disable-werror
--enable-__cxa_atexit --disable-nls --enable-threads=posix --disable-multilib
--prefix=/opt/cfarm/release/4.4.2 --with-cpu=v8
make bootstrap && make install
PATH=/opt/cfarm/release/4.4.2/bin:$PATH
../gcc-4.4.2/configure --enable-languages=c --disable-werror
--enable-__cxa_atexit --disable-nls --enable-threads=posix --disable-multilib
--prefix=/opt/cfarm/release/4.4.2-v2 --with-cpu=v8
make bootstrap STAGE1_CFLAGS=-O1
fails with
/home/guerby/build442/./gcc/xgcc -B/home/guerby/build442/./gcc/
-B/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/bin/
-B/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/lib/ -isystem
/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/include -isystem
/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/sys-include -g -O2 -O2
-g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include
-fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
-I../.././gcc -I../../../gcc-4.4.2/libgcc -I../../../gcc-4.4.2/libgcc/.
-I../../../gcc-4.4.2/libgcc/../gcc -I../../../gcc-4.4.2/libgcc/../include
-DHAVE_CC_TLS -o _popcountsi2.o -MT _popcountsi2.o -MD -MP -MF _popcountsi2.dep
-DL_popcountsi2 -c ../../../gcc-4.4.2/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden -DHIDE_EXPORTS
../../../gcc-4.4.2/libgcc/../gcc/libgcc2.c: In function '__popcountsi2':
../../../gcc-4.4.2/libgcc/../gcc/libgcc2.c:787: internal compiler error: Bus
error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [_popcountsi2.o] Error 1
make[3]: Leaving directory
`/home/guerby/build442/sparc64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/guerby/build442'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/guerby/build442'
make: *** [bootstrap] Error 2
Without STAGE1_CFLAGS=-O1 bootstrap works.
Note: this is gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=283041
--
Summary: sparc-linux 4.4.2 fails to rebuild itself when using
STAGE1_CFLAGS=-O1
Product: gcc
Version: 4.4.2
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
GCC build triplet: sparc-linux
GCC host triplet: sparc-linux
GCC target triplet: sparc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/42775] sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
@ 2010-01-17 16:05 ` rguenth at gcc dot gnu dot org
2010-01-17 19:07 ` armin76 at gentoo dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-17 16:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-17 16:05 -------
Please try to reproduce with the 4.4.3 release candidate.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Component|bootstrap |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/42775] sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
2010-01-17 16:05 ` [Bug target/42775] " rguenth at gcc dot gnu dot org
@ 2010-01-17 19:07 ` armin76 at gentoo dot org
2010-01-18 8:41 ` laurent at guerby dot net
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: armin76 at gentoo dot org @ 2010-01-17 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from armin76 at gentoo dot org 2010-01-17 19:07 -------
(In reply to comment #1)
> Please try to reproduce with the 4.4.3 release candidate.
>
gcc-4.4.3-RC-20100116 fails the same way.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/42775] sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
2010-01-17 16:05 ` [Bug target/42775] " rguenth at gcc dot gnu dot org
2010-01-17 19:07 ` armin76 at gentoo dot org
@ 2010-01-18 8:41 ` laurent at guerby dot net
2010-03-21 19:57 ` laurent at guerby dot net
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: laurent at guerby dot net @ 2010-01-18 8:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from laurent at guerby dot net 2010-01-18 08:41 -------
Same result for me with 4.4.3 RC1. backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x004ca580 in copy_virtual_operands ()
Current language: auto; currently asm
(gdb) bt
#0 0x004ca580 in copy_virtual_operands ()
#1 0x003d58a0 in gimple_duplicate_bb ()
#2 0x0010be80 in duplicate_block ()
#3 0x0010f5e8 in copy_bbs ()
#4 0x00118650 in duplicate_loop_to_header_edge ()
#5 0x004b9350 in gimple_duplicate_loop_to_header_edge ()
#6 0x004a5458 in canonicalize_loop_induction_variables ()
#7 0x004a62e8 in tree_unroll_loops_completely ()
#8 0x004c4d80 in tree_complete_unroll ()
#9 0x003052b8 in execute_one_pass ()
#10 0x00305494 in execute_pass_list ()
#11 0x003054b8 in execute_pass_list ()
#12 0x003054b8 in execute_pass_list ()
#13 0x0042ba74 in tree_rest_of_compilation ()
#14 0x005d05b0 in cgraph_expand_function ()
#15 0x005d2ab8 in cgraph_optimize ()
#16 0x00028308 in c_write_global_declarations ()
#17 0x003cbbb0 in toplev_main ()
#18 0x000adaf4 in main ()
--
laurent at guerby dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-01-18 08:41:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/42775] sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (2 preceding siblings ...)
2010-01-18 8:41 ` laurent at guerby dot net
@ 2010-03-21 19:57 ` laurent at guerby dot net
2010-09-19 12:20 ` ebotcazou at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: laurent at guerby dot net @ 2010-03-21 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from laurent at guerby dot net 2010-03-21 19:56 -------
Summary work/fail.
--
laurent at guerby dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |laurent at guerby dot net
Known to fail| |4.4.0 4.4.1 4.4.2 4.4.3
Known to work| |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/42775] sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (3 preceding siblings ...)
2010-03-21 19:57 ` laurent at guerby dot net
@ 2010-09-19 12:20 ` ebotcazou at gcc dot gnu dot org
2010-09-19 21:58 ` [Bug target/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1 ebotcazou at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-19 12:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ebotcazou at gcc dot gnu dot org 2010-09-19 12:19 -------
Investigating.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|ebotcazou at gcc dot gnu dot|
|org |
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-01-18 08:41:23 |2010-09-19 12:19:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (4 preceding siblings ...)
2010-09-19 12:20 ` ebotcazou at gcc dot gnu dot org
@ 2010-09-19 21:58 ` ebotcazou at gcc dot gnu dot org
2010-09-20 10:31 ` [Bug rtl-optimization/42775] " ebotcazou at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-19 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ebotcazou at gcc dot gnu dot org 2010-09-19 21:58 -------
tree-ssa-operands.c:copy_virtual_operands is miscompiled by delay slot
scheduling so the workaround is to use STAGE1_CFLAGS="-O1 -fno-delayed-branch".
Another way out is probably to configure with --disable-stage1-checking.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (5 preceding siblings ...)
2010-09-19 21:58 ` [Bug target/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1 ebotcazou at gcc dot gnu dot org
@ 2010-09-20 10:31 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:30 ` ebotcazou at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 10:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2010-09-20 10:31 -------
Created an attachment (id=21847)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21847&action=view)
Semi-reduced testcase
To be compiled at -O -mcpu=v8.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (6 preceding siblings ...)
2010-09-20 10:31 ` [Bug rtl-optimization/42775] " ebotcazou at gcc dot gnu dot org
@ 2010-09-20 21:30 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 21:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ebotcazou at gcc dot gnu dot org 2010-09-20 21:30 -------
Subject: Bug 42775
Author: ebotcazou
Date: Mon Sep 20 21:29:48 2010
New Revision: 164458
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164458
Log:
PR rtl-optimization/42775
* cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
scheduling is enabled.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgrtl.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (7 preceding siblings ...)
2010-09-20 21:30 ` ebotcazou at gcc dot gnu dot org
@ 2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:35 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from ebotcazou at gcc dot gnu dot org 2010-09-20 21:31 -------
Subject: Bug 42775
Author: ebotcazou
Date: Mon Sep 20 21:30:35 2010
New Revision: 164460
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164460
Log:
PR rtl-optimization/42775
* cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
scheduling is enabled.
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/cfgrtl.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (8 preceding siblings ...)
2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
@ 2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:35 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from ebotcazou at gcc dot gnu dot org 2010-09-20 21:31 -------
Subject: Bug 42775
Author: ebotcazou
Date: Mon Sep 20 21:31:14 2010
New Revision: 164461
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164461
Log:
PR rtl-optimization/42775
* cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
scheduling is enabled.
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/cfgrtl.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
` (9 preceding siblings ...)
2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
@ 2010-09-20 21:35 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 21:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from ebotcazou at gcc dot gnu dot org 2010-09-20 21:35 -------
At last.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2010-
| |09/msg01614.html
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-09-20 21:35 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-17 15:52 [Bug bootstrap/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1 laurent at guerby dot net
2010-01-17 16:05 ` [Bug target/42775] " rguenth at gcc dot gnu dot org
2010-01-17 19:07 ` armin76 at gentoo dot org
2010-01-18 8:41 ` laurent at guerby dot net
2010-03-21 19:57 ` laurent at guerby dot net
2010-09-19 12:20 ` ebotcazou at gcc dot gnu dot org
2010-09-19 21:58 ` [Bug target/42775] [4.4 regression] GCC fails to rebuild itself with STAGE1_CFLAGS=-O1 ebotcazou at gcc dot gnu dot org
2010-09-20 10:31 ` [Bug rtl-optimization/42775] " ebotcazou at gcc dot gnu dot org
2010-09-20 21:30 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:31 ` ebotcazou at gcc dot gnu dot org
2010-09-20 21:35 ` ebotcazou at gcc dot gnu dot org
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).