Commit 692eeb34 by Steve Ellcey Committed by Steve Ellcey

re PR libgomp/25877 (team.c:269: warning: implicit declaration of function 'alloca')

	PR libgomp/25877
	* team.c: Add include of alloca.h.
	* configure.ac: Add check for alloca.h.
	* configure: Regenerate.
	* config.h.in: Regenerate.

From-SVN: r110031
parent 33cb1cf6
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
......
/* 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
......
......@@ -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
......
......@@ -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])])
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment