This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: trunk won't build
- From: Robert Lipe <robertl at caldera dot com>
- To: mike stump <mrs at windriver dot com>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Dec 2001 13:57:21 -0600
- Subject: Re: trunk won't build
- References: <200112211847.KAA06076@kankakee.wrs.com>
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