[committed][testsuite] Add missing require-effective-target allloca

Tom de Vries tdevries@suse.de
Fri Aug 14 00:38:25 GMT 2020


Hi,

Add missing require-effect-target alloca directives.

Tested on nvptx.

Committed to trunk.

Thanks,
- Tom

[testsuite] Add missing require-effective-target allloca

gcc/testsuite/ChangeLog:

	* gcc.dg/torture/pr92088-1.c: Add require-effective-target alloca.
	* gcc.dg/torture/pr92088-2.c: Same.
	* gcc.dg/torture/pr93124.c: Same.
	* gcc.dg/torture/pr94479.c: Same.
	* gcc.dg/tree-ssa/builtin-sprintf-warn-22.c: Same.

---
 gcc/testsuite/gcc.dg/torture/pr92088-1.c                | 1 +
 gcc/testsuite/gcc.dg/torture/pr92088-2.c                | 1 +
 gcc/testsuite/gcc.dg/torture/pr93124.c                  | 1 +
 gcc/testsuite/gcc.dg/torture/pr94479.c                  | 1 +
 gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c | 3 ++-
 5 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/torture/pr92088-1.c b/gcc/testsuite/gcc.dg/torture/pr92088-1.c
index b56f8ad665e..488bdcbcce6 100644
--- a/gcc/testsuite/gcc.dg/torture/pr92088-1.c
+++ b/gcc/testsuite/gcc.dg/torture/pr92088-1.c
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-require-effective-target alloca } */
 
 int __attribute__((noipa))
 g (char *p)
diff --git a/gcc/testsuite/gcc.dg/torture/pr92088-2.c b/gcc/testsuite/gcc.dg/torture/pr92088-2.c
index a20a01cd1ce..6c9e5048d28 100644
--- a/gcc/testsuite/gcc.dg/torture/pr92088-2.c
+++ b/gcc/testsuite/gcc.dg/torture/pr92088-2.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target alloca } */
 
 void foo(int n)
 {
diff --git a/gcc/testsuite/gcc.dg/torture/pr93124.c b/gcc/testsuite/gcc.dg/torture/pr93124.c
index 16bc8b54f14..0d361d8c7cf 100644
--- a/gcc/testsuite/gcc.dg/torture/pr93124.c
+++ b/gcc/testsuite/gcc.dg/torture/pr93124.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fno-rerun-cse-after-loop -fno-guess-branch-probability -fno-tree-fre" } */
+/* { dg-require-effective-target alloca } */
 
 int x;
 
diff --git a/gcc/testsuite/gcc.dg/torture/pr94479.c b/gcc/testsuite/gcc.dg/torture/pr94479.c
index 53285bb4f38..3e4058279aa 100644
--- a/gcc/testsuite/gcc.dg/torture/pr94479.c
+++ b/gcc/testsuite/gcc.dg/torture/pr94479.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-require-stack-check "specific" } */
 /* { dg-additional-options "-fstack-check -w" } */
+/* { dg-require-effective-target alloca } */
 
 int a;
 struct b {
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
index 6fd1bca3c7b..685a4fd8c89 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-22.c
@@ -1,7 +1,8 @@
 /* PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building
    glibc (32-bit only)
    { dg-do compile }
-   { dg-options "-O2 -Wall -ftrack-macro-expansion=0" } */
+   { dg-options "-O2 -Wall -ftrack-macro-expansion=0" }
+   { dg-require-effective-target alloca } */
 
 typedef __SIZE_TYPE__ size_t;
 


More information about the Gcc-patches mailing list