+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"
{
// 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" } }
}
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" } }
}
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" } }
}
// 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)))
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 ();
// "inherit" attribute warning from a primary template declared with
// it.
// { dg-do compile }
-// { dg-options "-Wall -fdump-tree-optimized" }
+// { dg-options "-Wall" }
struct Special;