summaryrefslogtreecommitdiff
path: root/libgomp/team.c
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-21 17:57:01 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-21 17:57:01 +0000
commitfe87ce9b41894a42601a55957026ecaec1ec460b (patch)
tree16ba62c14bd05fa0e4fd37e596e2a99d95e7f40b /libgomp/team.c
parentf64e6a695b544f9333f838411fb495733a995b76 (diff)
downloadgcc-fe87ce9b41894a42601a55957026ecaec1ec460b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110068 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/team.c')
-rw-r--r--libgomp/team.c8
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)