This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
egcs-CVS19980924 alphaev5-dec-osf4.0b bootstrap failure + PATCH
- To: egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
- Subject: egcs-CVS19980924 alphaev5-dec-osf4.0b bootstrap failure + PATCH
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 25 Sep 1998 00:49:09 -0400 (EDT)
Snapshot: egcs-CVS19980924
Platform: alphaev5-dec-osf4.0b
Stage1 compiler: cc
Assembler: native
Linker: native
BOOT_CFLAGS: none
I got an error during bootstrap on my OSF4 box:
> stage1/xgcc -Bstage1/ -c -DIN_GCC -W -Wall -O2 -g -I. -I.. -I.
> -I./.. -I./../config -I./../../include except.c
> In file included from ../system.h:113,
> from except.c:25:
> include/sys/param.h:356: warning: `MIN' redefined
> xgcc: Internal compiler error: program cpp got fatal signal 11
> make[3]: *** [except.o] Error 1
> make[2]: *** [cc1chill] Error 2
I fixed it with the following patch. Okay to install?
--Kaveh
Thu Sep 24 19:26:03 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cccp.c (pedwarn_with_file_and_line): For !__STDC__ case, avoid
accessing variables until they are initialized via va_arg().
--- egcs-CVS19980924/gcc/cccp.c~ Thu Sep 24 17:09:47 1998
+++ egcs-CVS19980924/gcc/cccp.c Thu Sep 24 19:25:01 1998
@@ -9568,14 +9568,7 @@ pedwarn_with_file_and_line VPROTO ((char
if (!pedantic_errors && inhibit_warnings)
return;
- if (file) {
- eprint_string (file, file_len);
- fprintf (stderr, ":%d: ", line);
- }
- if (pedantic_errors)
- errors++;
- if (!pedantic_errors)
- fprintf (stderr, "warning: ");
+
VA_START (args, msg);
#ifndef __STDC__
@@ -9585,6 +9578,15 @@ pedwarn_with_file_and_line VPROTO ((char
msg = va_arg (args, char *);
#endif
+ if (file) {
+ eprint_string (file, file_len);
+ fprintf (stderr, ":%d: ", line);
+ }
+ if (pedantic_errors)
+ errors++;
+ if (!pedantic_errors)
+ fprintf (stderr, "warning: ");
+
vfprintf (stderr, msg, args);
va_end (args);
fprintf (stderr, "\n");
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Icon CMT Corp.