diff options
author | Steve Ellcey <sje@cup.hp.com> | 2006-01-21 17:57:01 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2006-01-21 17:57:01 +0000 |
commit | a55b8e1826cd3c5e399fdcb4802f1603e49f8ba9 (patch) | |
tree | 16ba62c14bd05fa0e4fd37e596e2a99d95e7f40b /libgomp/libgomp.h | |
parent | 30cb87a09beeca0cbdee7347c2d993d1b90446d2 (diff) | |
download | gcc-a55b8e1826cd3c5e399fdcb4802f1603e49f8ba9.zip gcc-a55b8e1826cd3c5e399fdcb4802f1603e49f8ba9.tar.gz gcc-a55b8e1826cd3c5e399fdcb4802f1603e49f8ba9.tar.bz2 |
re PR libgomp/25877 (team.c:269: warning: implicit declaration of function 'alloca')
PR libgomp/25877
* configure.ac: Remove check for alloca.h.
* configure: Regenerate.
* config.h.in: Regenerate.
* libgomp.h: define gomp_alloca to be __builtin_alloca.
* team.c: Remove use of alloca.h.
Call gomp_alloca instead of alloca.
From-SVN: r110068
Diffstat (limited to 'libgomp/libgomp.h')
-rw-r--r-- | libgomp/libgomp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 771fc1c..dd1e494 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -250,6 +250,10 @@ extern void *gomp_malloc (size_t) __attribute__((malloc)); extern void *gomp_malloc_cleared (size_t) __attribute__((malloc)); extern void *gomp_realloc (void *, size_t); +/* Avoid conflicting prototypes of alloca() in system headers by using + GCC's builtin alloca(). */ +#define gomp_alloca(x) __builtin_alloca(x) + /* error.c */ extern void gomp_error (const char *, ...) |