[testsuite] Add dg-require-effective-target indirect_jumps for g++

Message ID d9b3b4b7-e74d-c2c9-3703-be26615a8897@mentor.com
State New
Headers show
Series
  • [testsuite] Add dg-require-effective-target indirect_jumps for g++
Related show

Commit Message

Tom de Vries Jan. 12, 2018, 10:04 a.m.
Hi,

this patch adds dg-require-effective-target indirect_jumps for g++ 
test-cases.

Build and reg-tested on x86_64 and nvptx.

Committed as obvious.

Thanks,
- Tom

Patch

Add dg-require-effective-target indirect_jumps for g++

2018-01-12  Tom de Vries  <tom@codesourcery.com>

	* g++.dg/ext/label13.C: Add dg-require-effective-target indirect_jumps.
	* g++.dg/ext/label13a.C: Same.
	* g++.dg/ext/label14.C: Same.
	* g++.dg/ext/label2.C: Same.
	* g++.dg/ext/label3.C: Same.
	* g++.dg/torture/pr42462.C: Same.
	* g++.dg/torture/pr42739.C: Same.
	* g++.dg/warn/Wunused-label-3.C: Same.

---
 gcc/testsuite/g++.dg/ext/label13.C          | 1 +
 gcc/testsuite/g++.dg/ext/label13a.C         | 1 +
 gcc/testsuite/g++.dg/ext/label14.C          | 1 +
 gcc/testsuite/g++.dg/ext/label2.C           | 1 +
 gcc/testsuite/g++.dg/ext/label3.C           | 1 +
 gcc/testsuite/g++.dg/torture/pr42462.C      | 1 +
 gcc/testsuite/g++.dg/torture/pr42739.C      | 1 +
 gcc/testsuite/g++.dg/warn/Wunused-label-3.C | 1 +
 8 files changed, 8 insertions(+)

diff --git a/gcc/testsuite/g++.dg/ext/label13.C b/gcc/testsuite/g++.dg/ext/label13.C
index 70f251d..8b39716 100644
--- a/gcc/testsuite/g++.dg/ext/label13.C
+++ b/gcc/testsuite/g++.dg/ext/label13.C
@@ -1,6 +1,7 @@ 
 // PR c++/41090
 // { dg-do run }
 // { dg-options "" }
+// { dg-require-effective-target indirect_jumps }
 
 int i;
 struct C
diff --git a/gcc/testsuite/g++.dg/ext/label13a.C b/gcc/testsuite/g++.dg/ext/label13a.C
index 120efeb..3d36906 100644
--- a/gcc/testsuite/g++.dg/ext/label13a.C
+++ b/gcc/testsuite/g++.dg/ext/label13a.C
@@ -1,6 +1,7 @@ 
 // PR c++/41090
 // { dg-do run }
 // { dg-options "-save-temps" }
+// { dg-require-effective-target indirect_jumps }
 // { dg-final { scan-assembler "_ZN1CC4Ev" } }
 
 int i;
diff --git a/gcc/testsuite/g++.dg/ext/label14.C b/gcc/testsuite/g++.dg/ext/label14.C
index d1a8b0d..990673d 100644
--- a/gcc/testsuite/g++.dg/ext/label14.C
+++ b/gcc/testsuite/g++.dg/ext/label14.C
@@ -1,6 +1,7 @@ 
 // PR c++/53812
 // { dg-do compile }
 // { dg-options "" }
+// { dg-require-effective-target indirect_jumps }
 
 struct T { T () : t(0) {}; int t; ~T (); };
 struct S { void *operator [] (T); };
diff --git a/gcc/testsuite/g++.dg/ext/label2.C b/gcc/testsuite/g++.dg/ext/label2.C
index 7d11d00..5d29feb8 100644
--- a/gcc/testsuite/g++.dg/ext/label2.C
+++ b/gcc/testsuite/g++.dg/ext/label2.C
@@ -1,4 +1,5 @@ 
 // { dg-options "" }
+// { dg-require-effective-target indirect_jumps }
 
 template <typename T>
 void f() {
diff --git a/gcc/testsuite/g++.dg/ext/label3.C b/gcc/testsuite/g++.dg/ext/label3.C
index 604bfdc..7118899 100644
--- a/gcc/testsuite/g++.dg/ext/label3.C
+++ b/gcc/testsuite/g++.dg/ext/label3.C
@@ -5,6 +5,7 @@ 
 
 // { dg-do run }
 // { dg-options "-O2" }
+// { dg-require-effective-target indirect_jumps }
 
 extern "C" int printf (const char *, ...);
 
diff --git a/gcc/testsuite/g++.dg/torture/pr42462.C b/gcc/testsuite/g++.dg/torture/pr42462.C
index 947fa388..23eb672e 100644
--- a/gcc/testsuite/g++.dg/torture/pr42462.C
+++ b/gcc/testsuite/g++.dg/torture/pr42462.C
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-require-effective-target indirect_jumps } */
 
 #define INLINE inline __attribute__((always_inline))
 extern "C" void abort (void);
diff --git a/gcc/testsuite/g++.dg/torture/pr42739.C b/gcc/testsuite/g++.dg/torture/pr42739.C
index ccc05f8..2120648 100644
--- a/gcc/testsuite/g++.dg/torture/pr42739.C
+++ b/gcc/testsuite/g++.dg/torture/pr42739.C
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target indirect_jumps } */
 
 struct s { ~s() { s(); } };
 
diff --git a/gcc/testsuite/g++.dg/warn/Wunused-label-3.C b/gcc/testsuite/g++.dg/warn/Wunused-label-3.C
index 7479ca2..e034c27 100644
--- a/gcc/testsuite/g++.dg/warn/Wunused-label-3.C
+++ b/gcc/testsuite/g++.dg/warn/Wunused-label-3.C
@@ -1,5 +1,6 @@ 
 // { dg-do compile }
 // { dg-options "-Wunused-label" }
+// { dg-require-effective-target indirect_jumps }
 
 extern void f9();