From a55b8e1826cd3c5e399fdcb4802f1603e49f8ba9 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Sat, 21 Jan 2006 17:57:01 +0000 Subject: 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 --- libgomp/team.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libgomp/team.c') diff --git a/libgomp/team.c b/libgomp/team.c index c994135..a4020fc 100644 --- a/libgomp/team.c +++ b/libgomp/team.c @@ -32,11 +32,6 @@ #include #include -#ifdef HAVE_ALLOCA_H -# include -#endif - - /* This array manages threads spawned from the top level, which will return to the idle loop once the current PARALLEL construct ends. */ static struct gomp_thread **gomp_threads; @@ -270,7 +265,8 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, } } - start_data = alloca (sizeof (struct gomp_thread_start_data) * (nthreads-i)); + start_data = gomp_alloca (sizeof (struct gomp_thread_start_data) + * (nthreads-i)); /* Launch new threads. */ for (; i < nthreads; ++i, ++start_data) -- cgit v1.1