Warning "__restrict_arr" redefined while building libiberty/xatexit.c

DJ Delorie dj@redhat.com
Mon Mar 25 15:22:00 GMT 2002


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,



More information about the Gcc mailing list