egcs-19980425 sparc-sun-sunos4.1.4 bootstrap error in stage1

Kaveh R. Ghazi
Thu Apr 30 13:15:00 GMT 1998

Snapshot:		egcs-19980425
Platform:		sparc-sun-sunos4.1.4
Stage1 compiler:	cc
Assembler:		native
Linker:			native
BOOT_CFLAGS:		-g -O3 -funroll-all-loops

	I got an error from cc during the stage1 build:

 > cc -c -DIN_GCC -g -DHAVE_CONFIG_H -DHAIFA -I. -I. -I./config haifa-sched.c
 > "haifa-sched.c", line 830: redeclaration of alloc_INSN_LIST
 > "haifa-sched.c", line 850: redeclaration of alloc_EXPR_LIST
 > make[2]: *** [haifa-sched.o] Error 1

	This seems to occur because the prototypes for the
alloc_*_LIST functions are static and the function definitions are
not.  Here is a patch.


--- egcs-19980425/gcc/haifa-sched.c~	Sat Apr 18 22:45:34 1998
+++ egcs-19980425/gcc/haifa-sched.c	Thu Apr 30 15:22:06 1998
@@ -825,7 +825,7 @@ free_list (listp, unused_listp)
   *listp = 0;
+static rtx
 alloc_INSN_LIST (val, next)
      rtx val, next;
@@ -845,7 +845,7 @@ alloc_INSN_LIST (val, next)
   return r;
+static rtx
 alloc_EXPR_LIST (kind, val, next)
      int kind;
      rtx val, next;
Kaveh R. Ghazi			Project Manager / Custom Development		Icon CMT Corp.

More information about the Gcc-bugs mailing list