Commit 6030f6fe by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/83871 (wrong code for attribute const and pure on distinct template specializations)

	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
parent c1299a9e
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"
......
......@@ -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" } }
}
......@@ -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" } }
}
......@@ -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)))
......
......@@ -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 ();
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment