This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: trunk won't build


mike stump wrote:
> > Date: Fri, 21 Dec 2001 11:04:37 -0600
> > From: Robert Lipe <robertl@caldera.com>
> > To: gcc@gcc.gnu.org
> 
> > Would the #undef be preferred over renaming it everywhere?  I just stuck
> > an '#undef PREFETCH' in system.h after the include of sys/param.h and that
> > got me into stage2.
> 
> Yes, please.  Just #undef it, do this as high as you can (system.h
> sounds like the right place).

This works for me.  A full bootstrap fails for other reasons, but this
gets me past stage1 for C.

	* system.h (PREFETCH): Explictly undefine.

Index: system.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/system.h,v
retrieving revision 1.108
diff -u -p -r1.108 system.h
--- system.h    2001/11/19 11:28:47     1.108
+++ system.h    2001/12/21 19:55:30
@@ -159,6 +159,8 @@ extern int errno;

 #ifdef HAVE_SYS_PARAM_H
 # include <sys/param.h>
+/* We use this identifier later and it appears in some vendor param.h's. */
+# undef PREFETCH
 #endif

 #if HAVE_LIMITS_H


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]