From c574147e6298bf5e623c1c10c0deddde8cec507b Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 12 Jan 2018 10:03:00 +0000 Subject: [PATCH] Add dg-require-effective-target indirect_jumps for g++ 2018-01-12 Tom de Vries * 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. From-SVN: r256571 --- gcc/testsuite/ChangeLog | 11 +++++++++++ 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 + 9 files changed, 19 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5ee13071f9b..cb4b120de03 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2018-01-12 Tom de Vries + + * 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. + 2018-01-12 Tom de Vries * c-c++-common/dwarf2/vla1.c: Add dg-require-effective-target alloca. diff --git a/gcc/testsuite/g++.dg/ext/label13.C b/gcc/testsuite/g++.dg/ext/label13.C index 70f251d75f0..8b39716a508 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 120efebadfd..3d369065a1d 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 d1a8b0d5299..990673de679 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 7d11d00f52e..5d29feb8b39 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 void f() { diff --git a/gcc/testsuite/g++.dg/ext/label3.C b/gcc/testsuite/g++.dg/ext/label3.C index 604bfdc12c3..71188993da2 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 947fa388fec..23eb672ee7e 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 ccc05f8360c..21206487542 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 7479ca20c37..e034c27370b 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(); -- 2.30.2