This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
egcs, bootstrap failure sunos4 cc + PATCH
- To: egcs-patches at cygnus dot com
- Subject: egcs, bootstrap failure sunos4 cc + PATCH
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 16 Jul 1998 17:10:39 -0400 (EDT)
I got the following error building egcs (mainline checked out
today) and bootstrapped with SunsOS4 cc.
> cc -c -DHAVE_CONFIG_H -g -I. -I./../include cplus-dem.c
> "cplus-dem.c", line 3355: redeclaration of demangle_nested_args
> make[1]: *** [cplus-dem.o] Error 1
> make[1]: Leaving directory
> `/a/caip/a26/u26/ghazi/gcc-testing/sunos4-build/egcs-CVS19980716/libiberty'
>
> make: *** [all-libiberty] Error 1
Patches below. They may be required with the 1.1 release too.
--Kaveh
Thu Jul 16 17:07:24 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c (demangle_nested_args): Make function definition
static to match the prototype.
--- libiberty/cplus-dem.c~ Thu Jul 16 14:10:46 1998
+++ libiberty/cplus-dem.c Thu Jul 16 16:39:48 1998
@@ -3350,7 +3350,7 @@
/* Like demangle_args, but for demangling the argument lists of function
and method pointers or references, not top-level declarations. */
-int
+static int
demangle_nested_args (work, mangled, declp)
struct work_stuff *work;
const char **mangled;
Thu Jul 16 17:07:24 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c (demangle_nested_args): Make function definition
static to match the prototype.
--- gcc/cplus-dem.c~ Thu Jul 16 14:04:54 1998
+++ gcc/cplus-dem.c Thu Jul 16 16:39:35 1998
@@ -3350,7 +3350,7 @@
/* Like demangle_args, but for demangling the argument lists of function
and method pointers or references, not top-level declarations. */
-int
+static int
demangle_nested_args (work, mangled, declp)
struct work_stuff *work;
const char **mangled;
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu Icon CMT Corp.