diff options
author | Andreas Tobler <andreast@gcc.gnu.org> | 2019-10-02 21:05:35 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2019-10-02 21:05:35 +0200 |
commit | d61bff850d13ff103de3c2fb13d5e371996e1a3c (patch) | |
tree | 6cff8efeff4c1a2d25237d4c0f682fe89e3f15cb /libgomp | |
parent | c20a90e0c82f7037f1064693ceb17a58e4682c22 (diff) | |
download | gcc-d61bff850d13ff103de3c2fb13d5e371996e1a3c.zip gcc-d61bff850d13ff103de3c2fb13d5e371996e1a3c.tar.gz gcc-d61bff850d13ff103de3c2fb13d5e371996e1a3c.tar.bz2 |
Testsuite, remove alloca header
2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
* testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
include. Replace alloca () with __builtin_alloca ().
* testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
From-SVN: r276479
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 6 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default.h | 7 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c | 7 |
3 files changed, 12 insertions, 8 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index dbb95e4..3fe34c7 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2019-10-02 Andreas Tobler <andreast@gcc.gnu.org> + + * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h + include. Replace alloca () with __builtin_alloca (). + * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise. + 2019-10-01 Jakub Jelinek <jakub@redhat.com> * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h). diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default.h b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default.h index a9e2693..8c71249 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default.h +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-default.h @@ -1,5 +1,4 @@ #include <openacc.h> -#include <alloca.h> #include <string.h> #include <stdio.h> #include <gomp-constants.h> @@ -28,9 +27,9 @@ check (const int *ary, int size, int gp, int wp, int vp) { int exit = 0; int ix; - int *gangs = (int *)alloca (gp * sizeof (int)); - int *workers = (int *)alloca (wp * sizeof (int)); - int *vectors = (int *)alloca (vp * sizeof (int)); + int *gangs = (int *)__builtin_alloca (gp * sizeof (int)); + int *workers = (int *)__builtin_alloca (wp * sizeof (int)); + int *vectors = (int *)__builtin_alloca (vp * sizeof (int)); int offloaded = 0; memset (gangs, 0, gp * sizeof (int)); diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c index dd8107c..04387d3 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c @@ -1,7 +1,6 @@ /* { dg-additional-options "-fopenacc-dim=16:16" } */ #include <openacc.h> -#include <alloca.h> #include <string.h> #include <stdio.h> #include <gomp-constants.h> @@ -28,9 +27,9 @@ int check (const int *ary, int size, int gp, int wp, int vp) { int exit = 0; int ix; - int *gangs = (int *)alloca (gp * sizeof (int)); - int *workers = (int *)alloca (wp * sizeof (int)); - int *vectors = (int *)alloca (vp * sizeof (int)); + int *gangs = (int *)__builtin_alloca (gp * sizeof (int)); + int *workers = (int *)__builtin_alloca (wp * sizeof (int)); + int *vectors = (int *)__builtin_alloca (vp * sizeof (int)); int offloaded = 0; memset (gangs, 0, gp * sizeof (int)); |