diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-20 18:17:28 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-20 18:17:28 +0000 |
commit | ef2e6d4f06a1b3f6ed317e33765b6101b3acef5a (patch) | |
tree | 520d9344717e363154592ca31cb58e0a83cb3f98 /libgomp | |
parent | 6e73639a226b8c3b97e0e1f677e30e45a3870d28 (diff) | |
download | gcc-ef2e6d4f06a1b3f6ed317e33765b6101b3acef5a.tar.gz |
PR libgomp/25877
* team.c: Add include of alloca.h.
* configure.ac: Add check for alloca.h.
* configure: Regenerate.
* config.h.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110031 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 8 | ||||
-rw-r--r-- | libgomp/config.h.in | 3 | ||||
-rwxr-xr-x | libgomp/configure | 3 | ||||
-rw-r--r-- | libgomp/configure.ac | 2 | ||||
-rw-r--r-- | libgomp/team.c | 4 |
5 files changed, 18 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index af10d380615..0b151aa0b35 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,11 @@ +2006-01-20 Steve Ellcey <sje@cup.hp.com> + + PR libgomp/25877 + * team.c: Add include of alloca.h. + * configure.ac: Add check for alloca.h. + * configure: Regenerate. + * config.h.in: Regenerate. + 2006-01-17 Jakub Jelinek <jakub@redhat.com> PR fortran/25219 diff --git a/libgomp/config.h.in b/libgomp/config.h.in index a24e14867c7..9d2fa77b6e7 100644 --- a/libgomp/config.h.in +++ b/libgomp/config.h.in @@ -1,5 +1,8 @@ /* config.h.in. Generated from configure.ac by autoheader. */ +/* Define to 1 if you have the <alloca.h> header file. */ +#undef HAVE_ALLOCA_H + /* Define to 1 if the target supports __attribute__((alias(...))). */ #undef HAVE_ATTRIBUTE_ALIAS diff --git a/libgomp/configure b/libgomp/configure index 4824adc51e9..83ded9e9a3a 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -5317,7 +5317,8 @@ done -for ac_header in unistd.h semaphore.h sys/time.h + +for ac_header in alloca.h unistd.h semaphore.h sys/time.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then diff --git a/libgomp/configure.ac b/libgomp/configure.ac index 854514a27f4..90e115bdaf9 100644 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac @@ -136,7 +136,7 @@ AC_SUBST(libtool_VERSION) # Check header files. AC_STDC_HEADERS AC_HEADER_TIME -AC_CHECK_HEADERS(unistd.h semaphore.h sys/time.h) +AC_CHECK_HEADERS(alloca.h unistd.h semaphore.h sys/time.h) AC_CHECK_HEADER([pthread.h],[], [AC_MSG_ERROR([Pthreads are required to build libgomp])]) diff --git a/libgomp/team.c b/libgomp/team.c index 1d8efb688af..c99413502d5 100644 --- a/libgomp/team.c +++ b/libgomp/team.c @@ -32,6 +32,10 @@ #include <stdlib.h> #include <string.h> +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#endif + /* This array manages threads spawned from the top level, which will return to the idle loop once the current PARALLEL construct ends. */ |