Skip to content
Snippets Groups Projects
Commit dc43d83d authored by davem's avatar davem
Browse files

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.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52383 138bc75d-0d04-0410-961f-82ee72b054a4
parent 26adc8a4
No related branches found
No related tags found
No related merge requests found
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> 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names. * dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
......
...@@ -529,10 +529,16 @@ extern int re_exec _RE_ARGS ((const char *)); ...@@ -529,10 +529,16 @@ extern int re_exec _RE_ARGS ((const char *));
# endif # endif
# endif # 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 /* GCC 3.1 and later support declaring arrays as non-overlapping
it to restrict. */ using the syntax array_name[restrict] */
#define __restrict_arr #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. */ /* POSIX compatibility. */
extern int regcomp _RE_ARGS ((regex_t *__restrict __preg, extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment