From: Jason Merrill Date: Mon, 22 Jun 2015 17:24:37 +0000 (-0400) Subject: re PR testsuite/66621 (Mistakenly unsupported tests in g++.dg/torture/) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33273def7cd81f32d5e5fb9d06e7f5794cb2d46a;p=gcc.git re PR testsuite/66621 (Mistakenly unsupported tests in g++.dg/torture/) PR testsuite/66621 * g++.dg/debug, g++.dg/torture: Use dg-options rather than target requirements for C++11 tests. From-SVN: r224749 --- diff --git a/gcc/testsuite/g++.dg/debug/localclass1.C b/gcc/testsuite/g++.dg/debug/localclass1.C index 85adb3b1972..db36d592cf5 100644 --- a/gcc/testsuite/g++.dg/debug/localclass1.C +++ b/gcc/testsuite/g++.dg/debug/localclass1.C @@ -1,6 +1,5 @@ // PR c++/52637 -// { dg-do compile { target c++11 } } -// { dg-options "-g" } +// { dg-options "-g -std=c++11" } template struct C { }; diff --git a/gcc/testsuite/g++.dg/debug/nullptr01.C b/gcc/testsuite/g++.dg/debug/nullptr01.C index 64e06e54884..63c16ac8f0e 100644 --- a/gcc/testsuite/g++.dg/debug/nullptr01.C +++ b/gcc/testsuite/g++.dg/debug/nullptr01.C @@ -1,6 +1,5 @@ // Test that debugging backends don't crash on NULLPTR_TYPE. -// { dg-do compile { target c++11 } } -// { dg-options "-fabi-version=0" } +// { dg-options "-std=c++0x -fabi-version=0" } typedef decltype(nullptr) nullptr_t; diff --git a/gcc/testsuite/g++.dg/torture/pr40991.C b/gcc/testsuite/g++.dg/torture/pr40991.C index c04ef9e7ad9..c08124024a7 100644 --- a/gcc/testsuite/g++.dg/torture/pr40991.C +++ b/gcc/testsuite/g++.dg/torture/pr40991.C @@ -1,4 +1,4 @@ -// { dg-do compile { target c++11 } } +/* { dg-options "-std=gnu++0x" } */ typedef __SIZE_TYPE__ size_t; namespace std __attribute__ ((__visibility__ ("default"))) { diff --git a/gcc/testsuite/g++.dg/torture/pr47559.C b/gcc/testsuite/g++.dg/torture/pr47559.C index 00731c3ce62..42dedee291c 100644 --- a/gcc/testsuite/g++.dg/torture/pr47559.C +++ b/gcc/testsuite/g++.dg/torture/pr47559.C @@ -1,5 +1,5 @@ -// { dg-do compile { target c++11 } } -// { dg-options "-fnon-call-exceptions" } +// { dg-do compile } +// { dg-options "-std=c++0x -fnon-call-exceptions" } void foo (int *k) noexcept { diff --git a/gcc/testsuite/g++.dg/torture/pr49770.C b/gcc/testsuite/g++.dg/torture/pr49770.C index 8180648cbe6..7eac9e0d9bb 100644 --- a/gcc/testsuite/g++.dg/torture/pr49770.C +++ b/gcc/testsuite/g++.dg/torture/pr49770.C @@ -1,5 +1,5 @@ -/* { dg-do run { target c++11 } } */ -/* { dg-options "-fno-tree-forwprop" } */ +/* { dg-do run } */ +/* { dg-options "-std=c++0x -fno-tree-forwprop" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/g++.dg/torture/pr51198.C b/gcc/testsuite/g++.dg/torture/pr51198.C index 79819e04eaa..65009ff5458 100644 --- a/gcc/testsuite/g++.dg/torture/pr51198.C +++ b/gcc/testsuite/g++.dg/torture/pr51198.C @@ -1,4 +1,4 @@ -// { dg-do compile { target c++11 } } +/* { dg-options "-std=gnu++0x" } */ struct A { diff --git a/gcc/testsuite/g++.dg/torture/pr53161.C b/gcc/testsuite/g++.dg/torture/pr53161.C index 483556d9d8b..766f2942b3d 100644 --- a/gcc/testsuite/g++.dg/torture/pr53161.C +++ b/gcc/testsuite/g++.dg/torture/pr53161.C @@ -1,4 +1,4 @@ -/* { dg-do compile { target c++11 } } */ +/* { dg-options "-std=c++11" } */ void gg(); static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg"))); diff --git a/gcc/testsuite/g++.dg/torture/pr53602.C b/gcc/testsuite/g++.dg/torture/pr53602.C index ab0f16fe2e9..1bb9cf4faaf 100644 --- a/gcc/testsuite/g++.dg/torture/pr53602.C +++ b/gcc/testsuite/g++.dg/torture/pr53602.C @@ -1,4 +1,5 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile } +// { dg-options "-std=c++11" } namespace std { diff --git a/gcc/testsuite/g++.dg/torture/pr55260-1.C b/gcc/testsuite/g++.dg/torture/pr55260-1.C index dee5b603532..552da8df262 100644 --- a/gcc/testsuite/g++.dg/torture/pr55260-1.C +++ b/gcc/testsuite/g++.dg/torture/pr55260-1.C @@ -1,5 +1,5 @@ -/* { dg-do compile { target c++11 } } */ -/* { dg-options "-fno-inline" } */ +/* { dg-do compile } */ +/* { dg-options "-std=gnu++0x -fno-inline" } */ /* { dg-add-options bind_pic_locally } */ struct B diff --git a/gcc/testsuite/g++.dg/torture/pr56768.C b/gcc/testsuite/g++.dg/torture/pr56768.C index 93d292a9fd6..db504c500e0 100644 --- a/gcc/testsuite/g++.dg/torture/pr56768.C +++ b/gcc/testsuite/g++.dg/torture/pr56768.C @@ -1,4 +1,5 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile } +// { dg-options "-std=c++0x" } struct Iter { diff --git a/gcc/testsuite/g++.dg/torture/pr59265.C b/gcc/testsuite/g++.dg/torture/pr59265.C index be4c6e1e8d2..880c454da10 100644 --- a/gcc/testsuite/g++.dg/torture/pr59265.C +++ b/gcc/testsuite/g++.dg/torture/pr59265.C @@ -1,5 +1,5 @@ -// { dg-do compile { target c++11 } } -// { dg-options "-fprofile-use" } +// { dg-do compile } +// { dg-options "-fprofile-use -std=gnu++11" } class A { int m_fn1() const; diff --git a/gcc/testsuite/g++.dg/torture/vshuf-main.inc b/gcc/testsuite/g++.dg/torture/vshuf-main.inc index 697bd019733..6c2310a4b85 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-main.inc +++ b/gcc/testsuite/g++.dg/torture/vshuf-main.inc @@ -1,6 +1,7 @@ /* Driver fragment for __builtin_shuffle of any vector shape. */ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } extern "C" void abort(void); diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v16hi.C b/gcc/testsuite/g++.dg/torture/vshuf-v16hi.C index 501d9dacc0c..6277068b859 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v16hi.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v16hi.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } typedef unsigned short V __attribute__((vector_size(32))); typedef V VI; diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v16qi.C b/gcc/testsuite/g++.dg/torture/vshuf-v16qi.C index 1cc8bea0c28..56801177583 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v16qi.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v16qi.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } typedef unsigned char V __attribute__((vector_size(16))); typedef V VI; diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v2df.C b/gcc/testsuite/g++.dg/torture/vshuf-v2df.C index 71a6ac4c340..ba45078ea13 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v2df.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v2df.C @@ -1,4 +1,5 @@ -// // { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// // { dg-do run } #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8 typedef double V __attribute__((vector_size(16))); typedef unsigned long long VI __attribute__((vector_size(16))); diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v2di.C b/gcc/testsuite/g++.dg/torture/vshuf-v2di.C index dd521f2e49b..a4272842a36 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v2di.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v2di.C @@ -1,4 +1,5 @@ -// // { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// // { dg-do run } #if __SIZEOF_LONG_LONG__ == 8 typedef unsigned long long V __attribute__((vector_size(16))); diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v2sf.C b/gcc/testsuite/g++.dg/torture/vshuf-v2sf.C index 274dacdaec1..dd229bac0c3 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v2sf.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v2sf.C @@ -1,4 +1,5 @@ -// // { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// // { dg-do run } #if __SIZEOF_FLOAT__ == 4 typedef float V __attribute__((vector_size(8))); # if __SIZEOF_INT__ == 4 diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v2si.C b/gcc/testsuite/g++.dg/torture/vshuf-v2si.C index 36aeb82b766..2670855e092 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v2si.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v2si.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } #if __SIZEOF_INT__ == 4 typedef unsigned int V __attribute__((vector_size(8))); typedef V VI; diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v4df.C b/gcc/testsuite/g++.dg/torture/vshuf-v4df.C index a1694b21ee7..e26f2c9b30d 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v4df.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v4df.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8 typedef double V __attribute__((vector_size(32))); diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v4di.C b/gcc/testsuite/g++.dg/torture/vshuf-v4di.C index 8a5e5c507e8..42cf60cfb31 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v4di.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v4di.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } #if __SIZEOF_LONG_LONG__ == 8 typedef unsigned long long V __attribute__((vector_size(32))); diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v4sf.C b/gcc/testsuite/g++.dg/torture/vshuf-v4sf.C index aa67dbbe618..c7d58434409 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v4sf.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v4sf.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } #if __SIZEOF_FLOAT__ == 4 diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v4si.C b/gcc/testsuite/g++.dg/torture/vshuf-v4si.C index 4d377c11425..af37de78ba8 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v4si.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v4si.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } #if __SIZEOF_INT__ == 4 typedef unsigned int V __attribute__((vector_size(16))); diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v8hi.C b/gcc/testsuite/g++.dg/torture/vshuf-v8hi.C index c2be87f5b29..33b20c68a87 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v8hi.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v8hi.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } typedef unsigned short V __attribute__((vector_size(16))); typedef V VI; diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v8qi.C b/gcc/testsuite/g++.dg/torture/vshuf-v8qi.C index 5ec040e14e3..868150963a6 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v8qi.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v8qi.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } typedef unsigned char V __attribute__((vector_size(8))); typedef V VI; diff --git a/gcc/testsuite/g++.dg/torture/vshuf-v8si.C b/gcc/testsuite/g++.dg/torture/vshuf-v8si.C index 27631d77548..8583aa20133 100644 --- a/gcc/testsuite/g++.dg/torture/vshuf-v8si.C +++ b/gcc/testsuite/g++.dg/torture/vshuf-v8si.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-options "-std=c++11" } +// { dg-do run } #if __SIZEOF_INT__ == 4 typedef unsigned int V __attribute__((vector_size(32)));