re PR c++/83871 (wrong code for attribute const and pure on distinct template special...
authorJakub Jelinek <jakub@redhat.com>
Wed, 28 Feb 2018 09:43:10 +0000 (10:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 28 Feb 2018 09:43:10 +0000 (10:43 +0100)
PR c++/83871
PR c++/83503
* g++.dg/ext/attr-warning.C: Remove -fdump-tree-optimized from
dg-options.
* g++.dg/ext/attr-nonnull.C: Likewise.
* g++.dg/ext/attr-noinline.C: Fix syntax in scan-tree-dump-not directives.
* g++.dg/ext/attr-noinline-2.C: Likewise.
* g++.dg/ext/attr-noreturn-2.C: Use -fdump-tree-optimized instead of
-fdump-tree-eh in dg-options.

From-SVN: r258059

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attr-noinline-2.C
gcc/testsuite/g++.dg/ext/attr-noinline.C
gcc/testsuite/g++.dg/ext/attr-nonnull.C
gcc/testsuite/g++.dg/ext/attr-noreturn-2.C
gcc/testsuite/g++.dg/ext/attr-warning.C

index e548fc91cd560a2c00b77ead76a36f42bff6a02e..c036308c6e53caec6a793f33370829b1667221e4 100644 (file)
@@ -1,3 +1,15 @@
+2018-02-28  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/83871
+       PR c++/83503
+       * g++.dg/ext/attr-warning.C: Remove -fdump-tree-optimized from
+       dg-options.
+       * g++.dg/ext/attr-nonnull.C: Likewise.
+       * g++.dg/ext/attr-noinline.C: Fix syntax in scan-tree-dump-not directives.
+       * g++.dg/ext/attr-noinline-2.C: Likewise.
+       * g++.dg/ext/attr-noreturn-2.C: Use -fdump-tree-optimized instead of
+       -fdump-tree-eh in dg-options.
+
 2018-02-28  Alan Modra  <amodra@gmail.com>
 
        * lib/prune.exp (prune_gcc_output): Match lower case "in function"
index 4aab4f16f1ec34967254cfd62edc881270e5c9fa..b56a1344afd5f70b8ec538868a93da315ac1a409 100644 (file)
@@ -69,5 +69,5 @@ void test_elim_special_2 (void)
 {
   // Should be inlined.
   fnoinline_always_inline<Special>();
-// { dg-final { scan-tree-dump-not "fnoinline_always_inline<Special> *\\(\\);" optimized" } }
+// { dg-final { scan-tree-dump-not "fnoinline_always_inline<Special> *\\(\\);" "optimized" } }
 }
index b09037bd1a525630c01da8822c1d87bea8608cce..54f69d580ea362b43fe1414ad4e833e82bf79b5c 100644 (file)
@@ -94,7 +94,7 @@ void test_keep_primary_3 (void)
 void test_elim_special_3 (void)
 {
   fnone_always_inline<Special>();
-// { dg-final { scan-tree-dump-not "fnone_always_inline<Special> *\\(\\);" optimized" } }
+// { dg-final { scan-tree-dump-not "fnone_always_inline<Special> *\\(\\);" "optimized" } }
 }
 
 
@@ -124,5 +124,5 @@ void test_keep_primary_4 (void)
 void test_elim_special_4 (void)
 {
   fnoinline_always_inline<Special>();
-// { dg-final { scan-tree-dump-not "fnoinline_always_inline<Special> *\\(\\);" optimized" } }
+// { dg-final { scan-tree-dump-not "fnoinline_always_inline<Special> *\\(\\);" "optimized" } }
 }
index 57d2cb025f9160f31a264a7d5fd85d0956c567d8..5ef754ee37737538a83c8afafc121c6b5477ef4c 100644 (file)
@@ -4,7 +4,7 @@
 // does not "inherit" attribute nonnull from an argument declared with
 // one in the primary template.
 // { dg-do compile }
-// { dg-options "-O -Wall -fdump-tree-optimized" }
+// { dg-options "-O -Wall" }
 
 template <class T>
 void __attribute__ ((nonnull (1)))
index cf70ba11349c4f418822dcfb9d2f0ff773c4e457..b35245cc9cca8a1088836d227c85a6d3bbb4a0b3 100644 (file)
@@ -3,7 +3,7 @@
     Test to verify that attributes noreturn on multiple declarations of
     the same function are merged.
     { dg-do compile }
-    { dg-options "-O -fdump-tree-eh" } */
+    { dg-options "-O -fdump-tree-optimized" } */
 
 int __attribute__ ((noreturn)) fnoreturn ();
 
index 8369bac51d9eb6f44616015b7d0e303133ac6d81..6478efa8b831a2a1c931058af801a5ff8598ed5d 100644 (file)
@@ -4,7 +4,7 @@
 // "inherit" attribute warning from a primary template declared with
 // it.
 // { dg-do compile }
-// { dg-options "-Wall -fdump-tree-optimized" }
+// { dg-options "-Wall" }
 
 struct Special;