diff mbox

[PTX] Fixup some tests

Message ID a6af7ef2-5e8d-e3bd-c68d-7ff1707ff3af@acm.org
State New
Headers show

Commit Message

Nathan Sidwell May 10, 2016, 1:08 p.m. UTC
I've committed this to annotate some failing tests.  The  alloca and 
label-requiring tests won't work on ptx, and it appears the default  for the 
target-specific tests has changed to 'run', so mark these as compile-time.

nathan
diff mbox

Patch

2016-05-10  Nathan Sidwell  <nathan@acm.org>

	* gcc.dg/nested-func-10.c: Requires alloca.
	* gcc.dg/nested-func-9.c: Requires alloca.
	* gcc.c-torture/execute/pr70460.c: Requires labels.
	* gcc.c-torture/compile/pr70199.c: Requires labels.
	* gcc.target/nvptx/decl.c: Compile only.
	* gcc.target/nvptx/trailing-init.c: Compile only.
	* gcc.target/nvptx/ary-init.c: Compile only.

Index: gcc.dg/nested-func-10.c
===================================================================
--- gcc.dg/nested-func-10.c	(revision 236038)
+++ gcc.dg/nested-func-10.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR c/70093 */
 /* { dg-do compile } */
 /* { dg-options "" } */
+/* { dg-require-effective-target alloca } */
 
 void __attribute__((noinline, noclone))
 foo (int n)
Index: gcc.dg/nested-func-9.c
===================================================================
--- gcc.dg/nested-func-9.c	(revision 236038)
+++ gcc.dg/nested-func-9.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR c/70093 */
 /* { dg-do run } */
 /* { dg-options "" } */
+/* { dg-require-effective-target alloca } */
 
 void
 foo (int n)
Index: gcc.c-torture/execute/pr70460.c
===================================================================
--- gcc.c-torture/execute/pr70460.c	(revision 236038)
+++ gcc.c-torture/execute/pr70460.c	(working copy)
@@ -1,3 +1,6 @@ 
+/* { dg-require-effective-target indirect_jumps } */
+/* { dg-require-effective-target label_values } */
+
 /* PR rtl-optimization/70460 */
 
 int c;
Index: gcc.c-torture/compile/pr70199.c
===================================================================
--- gcc.c-torture/compile/pr70199.c	(revision 236038)
+++ gcc.c-torture/compile/pr70199.c	(working copy)
@@ -1,3 +1,6 @@ 
+/* { dg-require-effective-target indirect_jumps } */
+/* { dg-require-effective-target label_values } */
+
 static volatile int v = 0;
 static
 void benchmark(long runs) {
Index: gcc.target/nvptx/decl.c
===================================================================
--- gcc.target/nvptx/decl.c	(revision 236038)
+++ gcc.target/nvptx/decl.c	(working copy)
@@ -1,3 +1,4 @@ 
+/* { dg-do compile } */
 
 static const int __attribute__ ((used)) cst_local = 4;
 static int __attribute__ ((used)) glob_local = 5;
Index: gcc.target/nvptx/trailing-init.c
===================================================================
--- gcc.target/nvptx/trailing-init.c	(revision 236038)
+++ gcc.target/nvptx/trailing-init.c	(working copy)
@@ -1,3 +1,4 @@ 
+/* { dg-do compile } */
 /* { dg-additional-options "-Wno-pedantic" } */
 
 struct trailing 
Index: gcc.target/nvptx/ary-init.c
===================================================================
--- gcc.target/nvptx/ary-init.c	(revision 236038)
+++ gcc.target/nvptx/ary-init.c	(working copy)
@@ -1,3 +1,5 @@ 
+/* { dg-do compile } */
+
 /* { dg-additional-options "-Wno-long-long" } */
 
 char ca1[2] = {'a', 'b'};