aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-09-23 09:16:17 +0200
committerTom de Vries <tdevries@suse.de>2020-09-23 09:20:55 +0200
commit28d3b78dff512e18fc45c45e10c705e2a5ae3b48 (patch)
tree33d21527c89a7ddbbd31ceea4609f367d1a663d7 /gcc
parente884ced05231a04b1a3c70ece7237d0b1eeebf19 (diff)
downloadgcc-28d3b78dff512e18fc45c45e10c705e2a5ae3b48.zip
gcc-28d3b78dff512e18fc45c45e10c705e2a5ae3b48.tar.gz
gcc-28d3b78dff512e18fc45c45e10c705e2a5ae3b48.tar.bz2
[testsuite] Add missing require-effective-target alloca
Add missing require-effect-target alloca directives. Tested on nvptx. gcc/testsuite/ChangeLog: * gcc.dg/Warray-bounds-63.c: Add require-effective-target alloca. * gcc.dg/Warray-bounds-66.c: Same. * gcc.dg/atomic/stdatomic-vm.c: Same.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-63.c3
-rw-r--r--gcc/testsuite/gcc.dg/Warray-bounds-66.c3
-rw-r--r--gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c1
3 files changed, 5 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-63.c b/gcc/testsuite/gcc.dg/Warray-bounds-63.c
index 0583d23..a3fc918 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-63.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-63.c
@@ -1,7 +1,8 @@
/* PR middle-end/94195 - missing warning reading a smaller object via
an lvalue of a larger type
{ dg-do compile }
- { dg-options "-O2 -Wall" } */
+ { dg-options "-O2 -Wall" }
+ { dg-require-effective-target alloca } */
typedef __INT16_TYPE__ int16_t;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-66.c b/gcc/testsuite/gcc.dg/Warray-bounds-66.c
index d9bb2a2..c61891f 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-66.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-66.c
@@ -1,6 +1,7 @@
/* PR middle-end/82608 - missing -Warray-bounds on an out-of-bounds VLA index
{ dg-do compile }
- { dg-options "-O2 -Wall -Wno-uninitialized -ftrack-macro-expansion=0" } */
+ { dg-options "-O2 -Wall -Wno-uninitialized -ftrack-macro-expansion=0" }
+ { dg-require-effective-target alloca } */
#include "range.h"
diff --git a/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c b/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c
index f43fa49..cdfb701 100644
--- a/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c
+++ b/gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c
@@ -2,6 +2,7 @@
with side effects. */
/* { dg-do run } */
/* { dg-options "-std=c11 -pedantic-errors" } */
+/* { dg-require-effective-target alloca } */
#include <stdatomic.h>