mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-16 03:49:54 +08:00
xregex2.h (__restrict_arr): Define to __restrict on GCC 3.1 and later.
2002-04-16 David S. Miller <davem@redhat.com> * xregex2.h (__restrict_arr): Define to __restrict on GCC 3.1 and later. Do not redefine. From-SVN: r52383
This commit is contained in:
parent
c6370adf34
commit
4780f10144
@ -1,3 +1,8 @@
|
||||
2002-04-16 David S. Miller <davem@redhat.com>
|
||||
|
||||
* xregex2.h (__restrict_arr): Define to __restrict on GCC
|
||||
3.1 and later. Do not redefine.
|
||||
|
||||
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
|
||||
|
||||
* dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
|
||||
|
@ -529,10 +529,16 @@ extern int re_exec _RE_ARGS ((const char *));
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
/* 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. */
|
||||
#define __restrict_arr
|
||||
|
||||
/* GCC 3.1 and later support declaring arrays as non-overlapping
|
||||
using the syntax array_name[restrict] */
|
||||
#ifndef __restrict_arr
|
||||
# if ! (3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) || defined (__GNUG__)
|
||||
# define __restrict_arr
|
||||
# else
|
||||
# define __restrict_arr __restrict
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* POSIX compatibility. */
|
||||
extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,
|
||||
|
Loading…
Reference in New Issue
Block a user