diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-17 18:05:32 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-17 18:05:32 +0000 |
commit | 17587b2a46a115e303dbfdc3e24342b6055727d5 (patch) | |
tree | bfbf2da5b77b598bea390ae89a84931fd2ed62a0 /libgomp | |
parent | ea4029c81d79045b0f39c6f363429789542dc6f4 (diff) | |
download | gcc-17587b2a46a115e303dbfdc3e24342b6055727d5.tar.gz |
2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
* testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
alloca () with __builtin_alloca ().
* testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
* testsuite/libgomp.c/lock-3.c: Likewise.
* testsuite/libgomp.c/pr48591.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 8 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/affinity-1.c | 3 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/icv-2.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/lock-3.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/pr48591.c | 2 |
5 files changed, 12 insertions, 5 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 308b9219004..60f1572e09b 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,11 @@ +2013-12-17 Andreas Tobler <andreast@gcc.gnu.org> + + * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace + alloca () with __builtin_alloca (). + * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage. + * testsuite/libgomp.c/lock-3.c: Likewise. + * testsuite/libgomp.c/pr48591.c: Likewise. + 2013-12-17 Jakub Jelinek <jakub@redhat.com> PR testsuite/59534 diff --git a/libgomp/testsuite/libgomp.c/affinity-1.c b/libgomp/testsuite/libgomp.c/affinity-1.c index 5d3e45d1df9..a07928ccac8 100644 --- a/libgomp/testsuite/libgomp.c/affinity-1.c +++ b/libgomp/testsuite/libgomp.c/affinity-1.c @@ -23,7 +23,6 @@ #define _GNU_SOURCE #endif #include "config.h" -#include <alloca.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> @@ -117,7 +116,7 @@ print_affinity (struct place p) size = sizeof (cpu_set_t); } } - cpu_set_t *cpusetp = (cpu_set_t *) alloca (size); + cpu_set_t *cpusetp = (cpu_set_t *) __builtin_alloca (size); if (pthread_getaffinity_np (pthread_self (), size, cpusetp) == 0) { unsigned long i, len, max = 8 * size; diff --git a/libgomp/testsuite/libgomp.c/icv-2.c b/libgomp/testsuite/libgomp.c/icv-2.c index 3a80d6123a8..da005ea1c31 100644 --- a/libgomp/testsuite/libgomp.c/icv-2.c +++ b/libgomp/testsuite/libgomp.c/icv-2.c @@ -1,4 +1,4 @@ -/* { dg-do run { target *-*-linux* *-*-gnu* } } */ +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-freebsd* } } */ #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 diff --git a/libgomp/testsuite/libgomp.c/lock-3.c b/libgomp/testsuite/libgomp.c/lock-3.c index 02c90b98a87..b3c7e074b1e 100644 --- a/libgomp/testsuite/libgomp.c/lock-3.c +++ b/libgomp/testsuite/libgomp.c/lock-3.c @@ -1,4 +1,4 @@ -/* { dg-do run { target *-*-linux* *-*-gnu* } } */ +/* { dg-do run { target *-*-linux* *-*-gnu* *-*-freebsd* } } */ #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 diff --git a/libgomp/testsuite/libgomp.c/pr48591.c b/libgomp/testsuite/libgomp.c/pr48591.c index 230439d2f30..8df97f1554b 100644 --- a/libgomp/testsuite/libgomp.c/pr48591.c +++ b/libgomp/testsuite/libgomp.c/pr48591.c @@ -1,5 +1,5 @@ /* PR middle-end/48591 */ -/* { dg-do run { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* ia64-*-linux* } } */ +/* { dg-do run { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* ia64-*-linux* x86_64-*-freebsd* } } */ /* { dg-options "-fopenmp" } */ extern void abort (void); |