This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning "__restrict_arr" redefined while building libiberty/xatexit.c
- From: DJ Delorie <dj at redhat dot com>
- To: c dot christian dot joensson at telia dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Mar 2002 17:05:00 -0500
- Subject: Re: Warning "__restrict_arr" redefined while building libiberty/xatexit.c
- References: <20020325063001.GA18928@j-son.org>
Try this, and let me know if it's really this simple... ;-)
Index: xregex2.h
===================================================================
RCS file: /cvs/gcc/gcc/include/xregex2.h,v
retrieving revision 1.2
diff -p -3 -r1.2 xregex2.h
*** xregex2.h 2001/07/18 23:40:00 1.2
--- xregex2.h 2002/03/25 22:04:08
*************** extern int re_exec _RE_ARGS ((const char
*** 532,538 ****
--- 532,540 ----
/* For now unconditionally define __restrict_arr to expand to nothing.
Ideally we would have a test for the compiler which allows defining
it to restrict. */
+ #ifndef __restrict_arr
#define __restrict_arr
+ #endif
/* POSIX compatibility. */
extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,