diff options
Diffstat (limited to 'libgomp/team.c')
-rw-r--r-- | libgomp/team.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libgomp/team.c b/libgomp/team.c index c99413502d5..a4020fc37c4 100644 --- a/libgomp/team.c +++ b/libgomp/team.c @@ -32,11 +32,6 @@ #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. */ 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) |