This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A patch more some more bootstrap failures ...
- To: egcs-patches at cygnus dot com
- Subject: A patch more some more bootstrap failures ...
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 28 Jan 1999 11:36:09 -0500 (EST)
This patch fixes a few more bootstrap failures in the latest
egcs CVS when the stage1 cc does not do ANSI. Okay to install?
--Kaveh
Thu Jan 28 10:29:04 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* collect2.c (error): Fix typo in declaration.
* cpperror.c (cpp_message): Likewise.
* cpplib.c (cpp_warning): Likewise.
* cpplib.h (cpp_notice): Use PVPROTO not VPROTO, also add
ATTRIBUTE_PRINTF_1.
* toplev.c (error): Fix typo in declaration.
diff -rup orig/egcs-CVS19990128/gcc/collect2.c egcs-CVS19990128/gcc/collect2.c
--- orig/egcs-CVS19990128/gcc/collect2.c Thu Jan 28 09:21:31 1999
+++ egcs-CVS19990128/gcc/collect2.c Thu Jan 28 11:00:54 1999
@@ -476,7 +476,7 @@ void
error VPROTO((const char * msgid, ...))
{
#ifndef ANSI_PROTOTYPES
- const char * string;
+ const char * msgid;
#endif
va_list ap;
diff -rup orig/egcs-CVS19990128/gcc/cpperror.c egcs-CVS19990128/gcc/cpperror.c
--- orig/egcs-CVS19990128/gcc/cpperror.c Thu Jan 28 09:21:34 1999
+++ egcs-CVS19990128/gcc/cpperror.c Thu Jan 28 11:22:22 1999
@@ -129,7 +129,7 @@ cpp_message VPROTO ((cpp_reader *pfile,
#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
int is_error;
- const char *msg;
+ const char *msgid;
#endif
va_list ap;
diff -rup orig/egcs-CVS19990128/gcc/cpplib.c egcs-CVS19990128/gcc/cpplib.c
--- orig/egcs-CVS19990128/gcc/cpplib.c Thu Jan 28 09:21:35 1999
+++ egcs-CVS19990128/gcc/cpplib.c Thu Jan 28 11:23:03 1999
@@ -6277,7 +6277,7 @@ cpp_warning VPROTO ((cpp_reader * pfile,
{
#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
- const char *msg;
+ const char *msgid;
#endif
va_list ap;
diff -rup orig/egcs-CVS19990128/gcc/cpplib.h egcs-CVS19990128/gcc/cpplib.h
--- orig/egcs-CVS19990128/gcc/cpplib.h Thu Jan 28 09:21:35 1999
+++ egcs-CVS19990128/gcc/cpplib.h Thu Jan 28 11:20:56 1999
@@ -713,7 +713,7 @@ extern void cpp_message PVPROTO ((cpp_re
extern void cpp_pfatal_with_name PROTO ((cpp_reader *, const char *));
extern void cpp_file_line_for_message PROTO ((cpp_reader *, char *, int, int));
extern void cpp_print_containing_files PROTO ((cpp_reader *));
-extern void cpp_notice VPROTO ((const char *msgid, ...));
+extern void cpp_notice PVPROTO ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
/* In cppfiles.c */
extern void append_include_chain PROTO ((cpp_reader *,
diff -rup orig/egcs-CVS19990128/gcc/toplev.c egcs-CVS19990128/gcc/toplev.c
--- orig/egcs-CVS19990128/gcc/toplev.c Thu Jan 28 09:22:24 1999
+++ egcs-CVS19990128/gcc/toplev.c Thu Jan 28 10:53:09 1999
@@ -1852,7 +1852,7 @@ error VPROTO((const char *msgid, ...))
VA_START (ap, msgid);
#ifndef ANSI_PROTOTYPES
- msgic = va_arg (ap, const char *);
+ msgid = va_arg (ap, const char *);
#endif
verror (msgid, ap);