mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 22:01:20 +08:00
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
This commit is contained in:
parent
c20a90e0c8
commit
d61bff850d
@ -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).
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user