This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs-19980418, sparc* bootstrap failure + patch
- To: egcs at cygnus dot com
- Subject: egcs-19980418, sparc* bootstrap failure + patch
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 19 Apr 1998 12:48:50 -0400 (EDT)
When I bootstrap egcs-19980418 on sparc-sun-solaris2.5 or
sparc-sun-sunos4.1.4, I get:
> ./xgcc -B./ -DIN_GCC -W -Wall -g -O3 -funroll-all-loops -pipe -I./include
> -I. -I. -I./config -Iobjc -c ./objc/sendmsg.c -o objc/sendmsg.o
> ./objc/sendmsg.c:37: parse error
> make[2]: *** [objc/sendmsg.o] Error 1
I believe this is due to recent changes to the definition of
STRUCT_VALUE in sparc.h in which it uses gen_rtx_MEM() instead of
gen_rtx(MEM, ...). I created the following patch and it seemed to
work.
--Kaveh
Sun Apr 19 12:22:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* objc/sendmsg.c: Define gen_rtx_MEM() to 1, as is done
for gen_rtx(MEM, ...).
--- egcs-19980418/gcc/objc/sendmsg.c~ Sat Mar 28 18:47:41 1998
+++ egcs-19980418/gcc/objc/sendmsg.c Sun Apr 19 12:18:00 1998
@@ -32,6 +32,7 @@
/* this is how we hack STRUCT_VALUE to be 1 or 0 */
#define gen_rtx(args...) 1
+#define gen_rtx_MEM(args...) 1
#define rtx int
#if !defined(STRUCT_VALUE) || STRUCT_VALUE == 0