public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
@ 2004-10-29 18:03 gcc-bugzilla at gcc dot gnu dot org
  2004-10-29 18:07 ` [Bug rtl-optimization/18224] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-10-29 18:03 UTC (permalink / raw)
  To: gcc-bugs


Bootstrapping current mainline on Solaris 10/SPARC fails with an ICE in
stage2 (both with GCC 3.3.2 und 3.4.3 as bootstrap compiler):

stage1/xgcc -Bstage1/ -B/vol/gcc/share/sparc-sun-solaris2.10/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H    -I. -Ijava -I/vol/gnu/src/gcc/gcc-dist/gcc -I/vol/gnu/src/gcc/gcc-dist/gcc/java -I/vol/gnu/src/gcc/gcc-dist/gcc/../include -I/vol/gnu/src/gcc/gcc-dist/gcc/../libcpp/include  /vol/gnu/src/gcc/gcc-dist/gcc/java/check-init.c -o java/check-init.o
/vol/gnu/src/gcc/gcc-dist/gcc/java/check-init.c: In function 'check_init':
/vol/gnu/src/gcc/gcc-dist/gcc/java/check-init.c:899: error: insn does not satisfy its constraints:
(insn 2359 4710 2366 195 /vol/gnu/src/gcc/gcc-dist/gcc/java/check-init.c:674 (set (reg:SI 10 %o2 [orig:1171 num_current_words ] [1171])
        (mem/i:SI (zero_extend:SI (reg:QI 1 %g1)) [4 num_current_words+0 S4 A32])) 51 {*movsi_insn} (nil)
    (nil))
/vol/gnu/src/gcc/gcc-dist/gcc/java/check-init.c:899: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391

The problem vanishes with -O1, and I've been able to finish the bootstrap
by manually building java/check-init.o in stage2 and stage3 this way.

The error doesn't exist on Solaris 8/SPARC for some reason.

Environment:
System: SunOS padouk 5.10 s10_55 sun4u sparc SUNW,Sun-Fire-880
Architecture: sun4

	
host: sparc-sun-solaris2.10
build: sparc-sun-solaris2.10
target: sparc-sun-solaris2.10
configured with: /vol/gnu/src/gcc/gcc-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --disable-libmudflap

How-To-Repeat:
Bootstrap mainline as above.

-- 
           Summary: Bootstrap failure on Solaris 10/SPARC: ICE in
                    reload_cse_simplify_operands, at postreload.c:391
           Product: gcc
           Version: 0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.10
  GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
@ 2004-10-29 18:07 ` pinskia at gcc dot gnu dot org
  2004-10-29 18:18 ` ro at techfak dot uni-bielefeld dot de
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 18:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-29 18:07 -------
Can you attach the preprocessed source (the difference between solaris 8 and solaris 10 might be the 
headers are different).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |rtl-optimization
           Keywords|                            |build, ice-on-valid-code
            Summary|Bootstrap failure on Solaris|[4.0 Regression] Bootstrap
                   |10/SPARC: ICE in            |failure on Solaris 10/SPARC:
                   |reload_cse_simplify_operands|ICE in
                   |, at postreload.c:391       |reload_cse_simplify_operands
                   |                            |, at postreload.c:391
   Target Milestone|---                         |4.0.0
            Version|0.0                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
  2004-10-29 18:07 ` [Bug rtl-optimization/18224] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-29 18:18 ` ro at techfak dot uni-bielefeld dot de
  2004-10-29 18:27 ` ebotcazou at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-10-29 18:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-10-29 18:18 -------
Subject: Re:  [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391

pinskia at gcc dot gnu dot org writes:

> Can you attach the preprocessed source (the difference between solaris 8 and solaris 10 might be the 
> headers are different).

I just tried to reproduce the ICE with the stage3 compiler (I had removed
the stage1 and stage2 directories already to free some space), but failed:
the file compiles without problems!?

I've no idea what's going on here.  I'll try again with current mainline.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
  2004-10-29 18:07 ` [Bug rtl-optimization/18224] [4.0 Regression] " pinskia at gcc dot gnu dot org
  2004-10-29 18:18 ` ro at techfak dot uni-bielefeld dot de
@ 2004-10-29 18:27 ` ebotcazou at gcc dot gnu dot org
  2004-11-06 21:00 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-10-29 18:27 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-10-29 18:27 ` ebotcazou at gcc dot gnu dot org
@ 2004-11-06 21:00 ` ebotcazou at gcc dot gnu dot org
  2004-11-08 14:15 ` ro at techfak dot uni-bielefeld dot de
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-11-06 21:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-11-06 21:00 -------
Rainer, any news on this?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-11-06 21:00 ` ebotcazou at gcc dot gnu dot org
@ 2004-11-08 14:15 ` ro at techfak dot uni-bielefeld dot de
  2004-11-08 14:35 ` ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-11-08 14:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-11-08 14:14 -------
Subject: Re:  [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391

ebotcazou at gcc dot gnu dot org writes:

> Rainer, any news on this?

I've used the following patch to successfully bootstrap on
sparc-sun-solaris2.10 with Sun Studio 8 cc:

Fri Oct 29 19:44:19 2004  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	PR rtl-optimization/18224
	* Makefile.in (BUILD_SUPPORT): Add bitmap.o, vec.o.
	(genobjnames): Likewise.
	(build/bitmap.o, build/vec.o): New targets.
	* ggc-none.c (ggc_free): Define.

Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1418
diff -u -p -r1.1418 Makefile.in
--- gcc/Makefile.in	5 Nov 2004 04:49:05 -0000	1.1418
+++ gcc/Makefile.in	5 Nov 2004 17:55:46 -0000
@@ -776,7 +778,8 @@ BUILD_LIBS = $(BUILD_LIBIBERTY)
 
 BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o \
 	    build/min-insn-modes.o
-BUILD_SUPPORT = build/gensupport.o build/insn-conditions.o
+BUILD_SUPPORT = build/gensupport.o build/insn-conditions.o build/bitmap.o \
+		build/vec.o
 BUILD_EARLY_SUPPORT = build/gensupport.o build/dummy-conditions.o
 
 BUILD_PRINT = build/print-rtl.o
@@ -2498,7 +2501,7 @@ genobjnames=$(genprognames:%=%.o) read-r
 	genconstants.o gen-protos.o scan.o fix-header.o scan-decls.o \
 	gencheck.o dummy-conditions.o genconditions.o errors.o ggc-none.o \
 	min-insn-modes.o rtl.o print-rtl.o varray.o gcov-iov.o \
-	insn-conditions.o gengtype-lex.o gengtype-yacc.o
+	insn-conditions.o gengtype-lex.o gengtype-yacc.o bitmap.o vec.o
 
 genobjs=$(genobjnames:%=build/%)
 
@@ -2626,6 +2629,9 @@ build/genconditions$(build_exeext) : bui
 build/genconditions.o : genconditions.c $(RTL_BASE_H) $(BCONFIG_H) \
   $(SYSTEM_H) coretypes.h $(GTM_H) errors.h
 
+build/bitmap.o : bitmap.c $(BCONFIG_H) $(SYSTEM_H)  coretypes.h $(GTM_H) \
+  $(RTL_H) $(FLAGS_H) $(BASIC_BLOCK_H) $(REGS_H) $(GGC_H)
+build/bitmap.o: 
 build/errors.o : errors.c $(BCONFIG_H) $(SYSTEM_H) errors.h
 build/ggc-none.o : ggc-none.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GGC_H)
 build/min-insn-modes.o : min-insn-modes.c $(BCONFIG_H) system.h $(MACHMODE_H)
@@ -2635,6 +2641,8 @@ build/print-rtl.o: print-rtl.c $(BCONFIG
   $(RTL_BASE_H)
 build/varray.o: varray.c $(BCONFIG_H) coretypes.h $(GTM_H) $(SYSTEM_H) \
   varray.h $(RTL_BASE_H) $(GGC_H) $(TREE_H) bitmap.h errors.h
+build/vec.o : vec.c $(BCONFIG_H) $(SYSTEM_H) $(TREE_H) coretypes.h vec.h \
+  $(GGC_H) errors.h
 
 #\f
 # Remake internationalization support.
Index: gcc/ggc-none.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-none.c,v
retrieving revision 1.20
diff -u -p -r1.20 ggc-none.c
--- gcc/ggc-none.c	11 Sep 2004 19:03:23 -0000	1.20
+++ gcc/ggc-none.c	5 Nov 2004 17:55:54 -0000
@@ -67,3 +67,9 @@ ggc_realloc_stat (void *x, size_t size M
 {
   return xrealloc (x, size);
 }
+
+void
+ggc_free (void *p)
+{
+  free (p);
+}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-11-08 14:15 ` ro at techfak dot uni-bielefeld dot de
@ 2004-11-08 14:35 ` ebotcazou at gcc dot gnu dot org
  2004-11-08 14:39 ` ro at techfak dot uni-bielefeld dot de
  2004-11-08 17:30 ` ebotcazou at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-11-08 14:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-11-08 14:34 -------
> I've used the following patch to successfully bootstrap on
> sparc-sun-solaris2.10 with Sun Studio 8 cc:
> 
> Fri Oct 29 19:44:19 2004  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
> 
> 	PR rtl-optimization/18224
> 	* Makefile.in (BUILD_SUPPORT): Add bitmap.o, vec.o.
> 	(genobjnames): Likewise.
> 	(build/bitmap.o, build/vec.o): New targets.
> 	* ggc-none.c (ggc_free): Define.

Great!  But it's the wrong PR.  PR rtl-optimization/18224 is an ICE during
postreload.  The bootstrap pb with Sun CC is PR bootstrap/18058.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-11-08 14:35 ` ebotcazou at gcc dot gnu dot org
@ 2004-11-08 14:39 ` ro at techfak dot uni-bielefeld dot de
  2004-11-08 17:30 ` ebotcazou at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-11-08 14:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-11-08 14:39 -------
Subject: Re:  [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391

ebotcazou at gcc dot gnu dot org writes:

> Great!  But it's the wrong PR.  PR rtl-optimization/18224 is an ICE during
> postreload.  The bootstrap pb with Sun CC is PR bootstrap/18058.

Drat; too many bugs at once :-)

I could successfully bootstrap mainline on sparc-sun-solaris2.10 with gcc
on 20041029, so the problem seems to be either gone or masked.

I haven't tried a full bootstrap since, but I suppose the PR can be closed.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug rtl-optimization/18224] [4.0 Regression] Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391
  2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-11-08 14:39 ` ro at techfak dot uni-bielefeld dot de
@ 2004-11-08 17:30 ` ebotcazou at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-11-08 17:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-11-08 17:30 -------
Not reproducible anymore.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18224


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-11-08 17:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-29 18:03 [Bug bootstrap/18224] New: Bootstrap failure on Solaris 10/SPARC: ICE in reload_cse_simplify_operands, at postreload.c:391 gcc-bugzilla at gcc dot gnu dot org
2004-10-29 18:07 ` [Bug rtl-optimization/18224] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-29 18:18 ` ro at techfak dot uni-bielefeld dot de
2004-10-29 18:27 ` ebotcazou at gcc dot gnu dot org
2004-11-06 21:00 ` ebotcazou at gcc dot gnu dot org
2004-11-08 14:15 ` ro at techfak dot uni-bielefeld dot de
2004-11-08 14:35 ` ebotcazou at gcc dot gnu dot org
2004-11-08 14:39 ` ro at techfak dot uni-bielefeld dot de
2004-11-08 17:30 ` 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).