[testsuite] Add missing require-effective-target alloca
authorTom de Vries <tdevries@suse.de>
Wed, 23 Sep 2020 07:16:17 +0000 (09:16 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 23 Sep 2020 07:20:55 +0000 (09:20 +0200)
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.

gcc/testsuite/gcc.dg/Warray-bounds-63.c
gcc/testsuite/gcc.dg/Warray-bounds-66.c
gcc/testsuite/gcc.dg/atomic/stdatomic-vm.c

index 0583d233c22f2efc91489b89799f346aea705eaf..a3fc91882113a0caea87fca458ab1297e325210d 100644 (file)
@@ -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;
index d9bb2a29ca4a17eaf9c9340daf3fe7247208676a..c61891f5c078ed0ec16ff9c073268554f241fc12 100644 (file)
@@ -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"
 
index f43fa49ef12eca233d2478f8ad25e7047cf4b2eb..cdfb701207c70a74e374d182a5aeaa72e1771920 100644 (file)
@@ -2,6 +2,7 @@
    with side effects.  */
 /* { dg-do run } */
 /* { dg-options "-std=c11 -pedantic-errors" } */
+/* { dg-require-effective-target alloca } */
 
 #include <stdatomic.h>