This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs-971215 mips-sgi-irix6.2, minor bootstrap failure + patch
- To: egcs at cygnus dot com
- Subject: egcs-971215 mips-sgi-irix6.2, minor bootstrap failure + patch
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 18 Dec 1997 17:13:42 -0500 (EST)
- Cc: law at cygnus dot com
When bootstrapping egcs-971215 on mips-sgi-irix6.2 using cc for
stage1, I get the following error:
> cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config
> ./config/mips/mips.c
> cfe: Error: ./tree.h, line 2054: prototype and non-prototype
> declaration found for fatal, ellipsis terminator not allowed
> extern void fatal (char *, ...) ;
> ----------------- ---------^
> cfe: Error: ./config/mips/mips.c, line 82: redeclaration of 'fatal';
> previous declaration at line 2054 in file './tree.h'
> extern void fatal ();
> --------------^
> make-6.2[2]: *** [mips.o] Error 1
I fixed this problem with the following patch:
Thu Dec 18 17:05:10 1997 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* config/mips/mips.c: Remove conflicting (argument-less) prototype
of fatal(), rely on the one from tree.h.
--- gcc/config/mips/mips.c~ Sat Dec 6 19:29:51 1997
+++ gcc/config/mips/mips.c Thu Dec 18 16:51:40 1997
@@ -79,7 +79,6 @@
extern rtx adj_offsettable_operand ();
extern rtx copy_to_reg ();
extern void error ();
-extern void fatal ();
extern tree lookup_name ();
extern void pfatal_with_name ();
extern void warning ();
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu ICon CMT Corp.