------- Additional Comments From ro at techfak dot uni-bielefeld dot de  
2004-11-08 16:02 -------
Subject: Re:  [4.0 Regression] Sun CC cannot bootstrap GCC (static inline)

The following patch allowed me to successfully bootstrap on
sparc-sun-solaris2.10 with Sun Studio 8 cc.  I'm not completely certain the
build/*.o dependencies are correct: I've just copied the from the
corresponding non-build object files and replaced CONFIG_H by BCONFIG_H.

Fri Oct 29 19:44:19 2004  Rainer Orth  <[EMAIL PROTECTED]>

        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
 
 #
 # 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=18058

Reply via email to