diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa')
143 files changed, 168 insertions, 33 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c index 408e2464e96..fc5a1c8fae1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030530-2.c @@ -23,4 +23,5 @@ rs6000_emit_prologue (int i, rs6000_stack_t *info) commutative operands correctly. */ /* { dg-final { scan-tree-dump-times "\\+" 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c index d16bda4c1f1..87c4e47487c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030611-1.c @@ -11,3 +11,4 @@ shit(int a) /* There should be precisely one call to square. If there is more than one, then the dominator optimizations failed to remove the redundant call. */ /* { dg-final { scan-tree-dump-times "square" 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c index 44cf3d2b0e9..1ba57daa668 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030703-1.c @@ -19,3 +19,4 @@ foo(int index) /* There should be exactly one IF conditional. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c index d1251c103a2..c2873acc1d0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c @@ -41,3 +41,4 @@ get_alias_set (t) if() to disappear. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c index 717c8affd73..cff5efa45e1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c @@ -40,4 +40,4 @@ nonlocal_mentioned_p (x) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-1.c index dc45cbd73a2..028e45e190c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-1.c @@ -13,3 +13,4 @@ foo () /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c index ffa7f477622..4712a3b9fb3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c @@ -51,3 +51,4 @@ get_alias_set (t) collapse down to a simple return 0 without any conditionals). */ /* { dg-final { scan-tree-dump-times "if " 1 "cddce"} } */ +/* { dg-final { cleanup-tree-dump "cddce" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c index 2bc21cae70b..1d69e5c5977 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c @@ -44,3 +44,5 @@ record_component_aliases (type) /* There should be one IF conditional. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */ + +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c index 4b1d18120e1..8ed9b4c3df7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c @@ -52,3 +52,4 @@ record_component_aliases (type) /* There should be two loads of vec.length. */ /* { dg-final { scan-tree-dump-times "vec.length" 2 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c index a1ef017dfda..13b919f5cbf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c @@ -52,3 +52,4 @@ record_component_aliases (type) /* There should be four loads of vec.length. */ /* { dg-final { scan-tree-dump-times "vec.length" 4 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c index c9431f2d2d2..c5840a39665 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c @@ -65,3 +65,5 @@ get_alias_set (t,z) /* There should be one load of alias. */ /* { dg-final { scan-tree-dump-times "->alias" 1 "dom3"} } */ + +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c index 515f3609f70..ea6d5a4122c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c @@ -57,3 +57,5 @@ get_alias_set (t) /* There should be one load of alias. */ /* { dg-final { scan-tree-dump-times "->alias" 1 "dom3"} } */ + +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c index 1caa22ab535..63acaaf1ca8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c @@ -41,3 +41,5 @@ find_base_value (src) /* There should be three loads of ->code. */ /* { dg-final { scan-tree-dump-times "->code" 3 "dom3"} } */ + +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c index 2c8a84a494d..42f3a38d051 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c @@ -36,4 +36,4 @@ get_alias_set (t) properly. */ /* { dg-final { scan-tree-dump-times "if " 3 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c index 1409cc26d2f..3b1ace80f39 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c @@ -44,4 +44,4 @@ objects_must_conflict_p (t1, t2) /* There should be two assignments of variables to the value zero. */ /* { dg-final { scan-tree-dump-times " = 0" 2 "optimized"} } */ - +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c index 8ac20d5c614..dc581715bb3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030729-1.c @@ -50,3 +50,5 @@ readonly_fields_p (type) /* There should be one load of ->common.code. We currently fail this because we load from ->common.code using different types. */ /* { dg-final { scan-tree-dump-times "common\.code" 1 "dom3"} } */ + +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c index 3dd95eabbcd..115324adf5f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030730-1.c @@ -21,4 +21,4 @@ foo (int attr_kind, unsigned long offset) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c index 7fd0c181945..3b1262f946b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030730-2.c @@ -21,3 +21,4 @@ foo (int attr_kind, unsigned long offset) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c index c622c98dcf1..1eb1617162a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030731-1.c @@ -64,3 +64,4 @@ store_expr (exp, target, want_value) immediately dominates the comparison in question. We need something stronger. */ /* { dg-final { scan-tree-dump-times "target.*!= 0" 0 "dom3" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c index b088f007447..885bca11771 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c @@ -14,3 +14,4 @@ bar (int i, int partial, int args_addr) /* There should be only one IF conditional since the first does nothing useful. */ /* { dg-final { scan-tree-dump-times "if " 1 "ccp"} } */ +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c index ab013d3d9fc..196589903e2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c @@ -42,5 +42,4 @@ bar (rtx r) which combines the result of those two tests into a new test must always be true and it is optimized appropriately. */ /* { dg-final { scan-tree-dump-times "if " 2 "dom3"} } */ - - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c index 709395511a4..5865543a5a6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c @@ -23,3 +23,4 @@ subreg_highpart_offset (outermode, innermode) /* There should be one right shift by 2 places. */ /* { dg-final { scan-tree-dump-times " >> 2" 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c index 6df4702c70c..b6603338dd7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c @@ -18,3 +18,4 @@ foo (reg) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c index cd518eba914..956010b9f8d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-2.c @@ -25,3 +25,4 @@ foo(int n) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c index 7e10d382c4e..8255b581aee 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c @@ -24,4 +24,4 @@ cpp_parse_escape (pstr, limit, wide) /* There should be precisely three IF statements. If there is more than two, then the dominator optimizations failed. */ /* { dg-final { scan-tree-dump-times "if " 3 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c index 49f3a997d50..2a0a84cadbe 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c @@ -35,3 +35,5 @@ foo () /* There should be two IF statements. One for 'current_sym_addr->code == 42'. The other one for '(EXPR)->unchanging'. */ /* { dg-final { scan-tree-dump-times "if " 2 "dom3"} } */ + +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c index 3b24bcaf662..e01c43876a0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c @@ -40,5 +40,4 @@ foo4 (distance, i, j) /* There should be no ABS_EXPR. */ /* { dg-final { scan-tree-dump-times "ABS_EXPR " 0 "dom3"} } */ - - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c index f1e0d00c235..2dc208327fb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c @@ -35,3 +35,4 @@ simplify_condition (cond_p) /* There should be exactly one IF conditional. TBAA is not able to determine that 'decl' and 'cond' can't alias. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c index 1241f32a7f8..70af6cc49f5 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c @@ -50,3 +50,4 @@ output_location_lists (die) /* There should be exactly one IF conditional, in output_location_lists. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c index 6144bd187ed..b2c3c890a33 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c @@ -17,3 +17,4 @@ ooof () /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c index 11781f9d387..f7057bfe822 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c @@ -38,3 +38,4 @@ delete_dead_jumptables () /* There should be no IF statements. */ /* { dg-final { scan-tree-dump-times "if " 0 "cddce"} } */ +/* { dg-final { cleanup-tree-dump "cddce" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c index da48d2255a4..d7b44a64bef 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-1.c @@ -18,4 +18,4 @@ com(int *blah) more than one, then the dominator optimizations failed. */ /* { dg-final { scan-tree-dump-times "\\*blah" 1 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c index 5acc6e1dbb8..1e65ffadece 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-2.c @@ -19,4 +19,4 @@ foo (int value) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c index bcebd075d6f..852b43823fb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-3.c @@ -20,4 +20,4 @@ foo (int value) /* There should be one IF conditional. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */ - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c index 7bdaaebed62..e04a668f7ee 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c @@ -35,7 +35,9 @@ blah (decl, set) /* There should be precisely one reference to pointer_alias_set. If there is more than one, then the dominator optimizations failed. */ /* { dg-final { scan-tree-dump-times "pointer_alias_set" 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ /* The assignment set = -1 in the ELSE clause of the last IF statement should be removed by the final cleanup phase. */ /* { dg-final { scan-tree-dump-times "set = -1" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c index c34c2dc8bbf..8335239d926 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c @@ -35,7 +35,9 @@ blah (decl, set) /* There should be precisely one reference to pointer_alias_set. If there is more than one, then the dominator optimizations failed. */ /* { dg-final { scan-tree-dump-times "pointer_alias_set" 1 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ /* The assignment set = -1 in the ELSE clause of the last IF statement should be removed by the final cleanup phase. */ /* { dg-final { scan-tree-dump-times "set = -1" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c index 49b526ccc13..1c2995ed6d7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c @@ -42,3 +42,4 @@ foo (t, set) /* ??? Will fail until we properly distinguish member stores. At present the write to type.alias_set kills the previous load. */ /* { dg-final { scan-tree-dump-times "common.code" 1 "dom3" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c index 440794d6ae3..fce0e2af337 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-7.c @@ -39,3 +39,4 @@ mark_constant_function (void) This if we find current_function_decl used as an argument, then we have failed. */ /* { dg-final { scan-tree-dump-times "\\(current_function_decl\\)" 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c index ba0cf6b16a0..45ee755deb1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c @@ -39,5 +39,4 @@ blah (unsigned int regno) eliminate some useless typecasting. The first type cast is needed to convert the unsigned int regno parameter into a struct rtx_def **. */ /* { dg-final { scan-tree-dump-times "\\(struct rtx_def \\* \\*\\)" 1 "dom3"} } */ - - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c index 5490537900d..da1389e916c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c @@ -20,3 +20,4 @@ int foo (int x, int y) /* The addition should be optimized into 'y+x'. */ /* { dg-final { scan-tree-dump-times "\[xy\] \\+ \[xy]" 1 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030824-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030824-2.c index 6e59dd816ca..1b8bc48147f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030824-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030824-2.c @@ -20,3 +20,4 @@ int foo (int x, int y) /* This function should be optimized into 'return y+x'. */ /* { dg-final { scan-tree-dump-times "return \[xy\] \\+ \[xy\]" 1 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030825-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030825-1.c index 440f75571d4..de34acaec4a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030825-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030825-1.c @@ -26,3 +26,4 @@ xxx:; /* Bla should not be optimized away. */ /* { dg-final { scan-tree-dump-times "bla" 1 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c index 6fb37c34349..a36472d39b6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030907-1.c @@ -27,3 +27,4 @@ int main() /* The abort() call clearly is unreachable. */ /* { dg-final { scan-tree-dump-times "abort" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c index 1b1441f0f9b..62f5b2497cc 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c @@ -16,5 +16,4 @@ findbestextension (int blah, int blah2) /* The argument to "foo" should be a variable, not a constant. */ /* { dg-final { scan-tree-dump-times "foo .defval" 1 "ccp"} } */ - - +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c index 478933b3f48..bfa2f8a7379 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c @@ -21,5 +21,4 @@ main () /* The argument to "printf" should be a constant, not a variable. */ /* { dg-final { scan-tree-dump-times "printf.*, 0" 1 "ccp"} } */ - - +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c index f216125eae1..b3663572a67 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030922-1.c @@ -31,3 +31,4 @@ voidify_wrapper_expr (tree wrapper) /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c index 8d18ed8fcbd..7bb28199489 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c @@ -20,3 +20,4 @@ rgn_rank (rtx insn1, rtx insn2) /* There should be two IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 2 "dom1" } } */ +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031015-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031015-1.c index 5f0969626cd..0bfef45fcfc 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031015-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031015-1.c @@ -14,3 +14,4 @@ main(void) } /* { dg-final { scan-tree-dump-times "V_MAY_DEF" 2 "alias1" } } */ +/* { dg-final { cleanup-tree-dump "alias1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031021-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031021-1.c index 4534ef34fc8..117cddf12a7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031021-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031021-1.c @@ -18,3 +18,4 @@ int main() /* We should only store to a.i, not load from it. */ /* { dg-final { scan-tree-dump-times "a.i" 1 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c index ba71682ac12..27de6e90e9c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031022-1.c @@ -25,3 +25,4 @@ blah (int arf) /* There should be one load from entry_exit_blocks[1].pred. */ /* { dg-final { scan-tree-dump-times "entry_exit_blocks.1..pred" 1 "dom1"} } */ +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031106-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031106-1.c index eb312cea1e2..791e0f21ee7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031106-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031106-1.c @@ -18,3 +18,4 @@ void foo (int testarray[]) /* There should be no link_error calls. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031106-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20031106-2.c index da430dc5813..2354c14b902 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031106-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031106-2.c @@ -25,3 +25,5 @@ void foo (struct s* teststruct) /* There should be no link_error calls. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */ + +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031106-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20031106-3.c index ee7cb8a009d..4d1919a6e1e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031106-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031106-3.c @@ -19,3 +19,4 @@ void foo (int testarray[]) /* There should be no link_error calls. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031106-4.c b/gcc/testsuite/gcc.dg/tree-ssa/20031106-4.c index a288dacee47..369b7b3c043 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031106-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031106-4.c @@ -27,3 +27,4 @@ void foo (struct s* r) /* There should be no link_error calls. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031106-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20031106-5.c index e543939c77b..b066ab6cac0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031106-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031106-5.c @@ -26,3 +26,4 @@ void foo2 (struct s* r, struct s* p) /* There should be no link_error calls. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031106-6.c b/gcc/testsuite/gcc.dg/tree-ssa/20031106-6.c index 39fb08b032a..6d15c7b5053 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031106-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031106-6.c @@ -26,3 +26,4 @@ struct s foo (struct s r) /* There should be no references to any of "temp_struct*" temporaries. */ /* { dg-final { scan-tree-dump-times "temp_struct" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20031216-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20031216-1.c index d3d39df3b11..0e97833fea0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20031216-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20031216-1.c @@ -17,3 +17,4 @@ foo (int b) /* The comparison should be eliminated, there should be no reference to link_error. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040204-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040204-1.c index cb3e284464d..fe2945cbc7f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040204-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040204-1.c @@ -34,3 +34,4 @@ void test55 (int x, int y) by teaching dom to look through && and register all components as true. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! powerpc*-*-* } } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c index 9eb7905aef0..5ba4d845694 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040210-1.c @@ -30,3 +30,4 @@ main(){ /* Should have no more than two ifs left after straightening. */ /* { dg-final { scan-tree-dump-times "if " 2 "phiopt1"} } */ +/* { dg-final { cleanup-tree-dump "phiopt1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c index 5d6e07940a5..aaeab53a2cf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040211-1.c @@ -38,3 +38,4 @@ com (rtx insn, int blah) /* Cddce cannot remove possibly infinite loops and there is no way how to determine whether the loop in can_move_up ends. */ /* { dg-final { scan-tree-dump "if " "cddce"} } */ +/* { dg-final { cleanup-tree-dump "cddce" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c index 7585905a4da..c770340a767 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040216-1.c @@ -15,4 +15,4 @@ foo(int *z, int *y, int xx) /* We should convert two COND_EXPRs into straightline code. */ /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1"} } */ - +/* { dg-final { cleanup-tree-dump "dse1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040305-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040305-1.c index 2d098d50e1d..acde4b3116c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040305-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040305-1.c @@ -24,7 +24,9 @@ void foo(int edx, int eax) /* Verify that we did a forward propagation. */ /* { dg-final { scan-tree-dump-times "Replaced" 1 "forwprop1"} } */ +/* { dg-final { cleanup-tree-dump "forwprop1" } } */ /* After cddce we should have two IF statements remaining as the other two tests can be threaded. */ /* { dg-final { scan-tree-dump-times "if " 2 "cddce"} } */ +/* { dg-final { cleanup-tree-dump "cddce" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040430-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040430-1.c index 4fbd950f3dd..4bc1f85ae94 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040430-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040430-1.c @@ -23,3 +23,4 @@ int main() } /* { dg-final { scan-tree-dump-times "if " 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040513-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040513-1.c index d53d81849fd..bc65b979dd9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040513-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040513-1.c @@ -14,5 +14,4 @@ foo (unsigned int a) /* There should be no casts to a _Bool since we can use the temporary holding (a>>5)&1 directly. */ /* { dg-final { scan-tree-dump-times "\\(_Bool\\)" 0 "forwprop1"} } */ - - +/* { dg-final { cleanup-tree-dump "forwprop1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040513-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20040513-2.c index acd6c68652f..a3edf9b8040 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040513-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040513-2.c @@ -22,3 +22,4 @@ int t(int i) /* There should be no link_error calls, if there is any, the optimization has failed */ /* { dg-final { scan-tree-dump-times "link_error" 0 "dom2"} } */ +/* { dg-final { cleanup-tree-dump "dom2" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040514-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040514-1.c index 91fa65d070b..4c283507598 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040514-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040514-1.c @@ -16,3 +16,4 @@ end: /* Should have no ifs left after straightening. */ /* { dg-final { scan-tree-dump-times "if " 0 "phiopt1"} } */ +/* { dg-final { cleanup-tree-dump "phiopt1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c index fb01bb8d858..98cf3a283ba 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c @@ -15,3 +15,4 @@ foo2 (distance, i, j) /* { dg-final { scan-tree-dump-times "ABS_EXPR " 1 "dom3"} } */ /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */ +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c index 4b09b536d13..3f3ec1a3572 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040517-1.c @@ -18,3 +18,4 @@ void bar (void) does not alias any other pointer. Hence, we must have a VDEF for a before and after the call to foo(). */ /* { dg-final { scan-tree-dump-times "V_MAY_DEF" 1 "alias1"} } */ +/* { dg-final { cleanup-tree-dump "alias1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040518-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040518-1.c index f80a74a14ea..315a5ebf8d1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040518-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040518-1.c @@ -10,3 +10,4 @@ int f(int a, int b) /* Should have no ifs left after straightening. */ /* { dg-final { scan-tree-dump-times "if " 0 "phiopt1"} } */ +/* { dg-final { cleanup-tree-dump "phiopt1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040518-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20040518-2.c index 009dce45efa..62f66232dc5 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040518-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040518-2.c @@ -14,3 +14,4 @@ int t( int i) /* We should convert one COND_EXPRs into straightline code with ABS. */ /* { dg-final { scan-tree-dump-times "straightline" 1 "phiopt1"} } */ /* { dg-final { scan-tree-dump-times "ABS_EXPR" 1 "phiopt1"} } */ +/* { dg-final { cleanup-tree-dump "phiopt1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040615-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040615-1.c index 2473038403a..5bb7a4d7fab 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040615-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040615-1.c @@ -14,3 +14,4 @@ foo (unsigned int a, unsigned int b) } /* { dg-final { scan-tree-dump-times "bar2" 0 "dom1" } } */ +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040624-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040624-1.c index 54f37433d95..eb8e210951c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040624-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040624-1.c @@ -18,4 +18,4 @@ foo (unsigned int a, unsigned int b) conditional. */ /* { dg-final { scan-tree-dump-times "if " 1 "dom1" } } */ - +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040703-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040703-1.c index 25e470a59b6..ad96198a4e1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040703-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040703-1.c @@ -10,3 +10,4 @@ float foo(float x) /* We should *not* fold the arithmetic. */ /* { dg-final { scan-tree-dump-times "0\\.0" 0 "dom2"} } */ +/* { dg-final { cleanup-tree-dump "dom2" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c index 2c3ffb1b8e5..44dacef0d9c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c @@ -25,3 +25,4 @@ main () /* There should be no G on the RHS of an assignment. */ /* { dg-final { scan-tree-dump-times "= G;" 0 "ccp"} } */ +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c index 6543163e609..e8674e4bc76 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040729-1.c @@ -16,3 +16,4 @@ foo () operands. But 'p' itself is not volatile and taking the address of a volatile does not constitute a volatile operand. */ /* { dg-final { scan-tree-dump-times "&x" 0 "dce3"} } */ +/* { dg-final { cleanup-tree-dump "dce3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040911-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040911-1.c index 6b49570d21a..3ddef717d8d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040911-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040911-1.c @@ -19,3 +19,4 @@ int foo (int i) } /* { dg-final { scan-tree-dump-not "VUSE <c" "alias1" } } */ +/* { dg-final { cleanup-tree-dump "alias1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20041002-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20041002-1.c index 7f38f80f8df..9a07877fb1a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20041002-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20041002-1.c @@ -21,3 +21,4 @@ bar (int i) } /* { dg-final { scan-tree-dump-times "if" 0 "ssa" } } */ +/* { dg-final { cleanup-tree-dump "ssa" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c index 89b90643e17..ea0fb7ef1bf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c @@ -35,5 +35,4 @@ find_unreachable_blocks (int frobit) modify e or e->dest. The net result is that we only need one load of e->dest. */ /* { dg-final { scan-tree-dump-times "->dest" 1 "dom3" { xfail *-*-* } } } */ - - +/* { dg-final { cleanup-tree-dump "dom3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c index ea48b268d47..aef40005604 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20050128-1.c @@ -11,3 +11,4 @@ foo (int align) /* We should have optimized away the mod operator before we genericized the code. */ /* { dg-final { scan-tree-dump-times "%" 0 "generic"} } */ +/* { dg-final { cleanup-tree-dump "generic" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20050215-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20050215-1.c index 6ce588038aa..b9bb3a749e6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20050215-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20050215-1.c @@ -11,3 +11,4 @@ int foo (void) /* Make sure the optimizers don't introduce overflow where one did not exist in the original. */ /* { dg-final { scan-tree-dump-times "-0+4" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-1.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-1.c index ad92408f170..64026287cb4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-1.c @@ -14,3 +14,4 @@ void f() /* { dg-final { scan-tree-dump-times "42" 1 "optimized" } } */ /* { dg-final { scan-tree-dump-times "63" 1 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c index afe83be4751..c67b9b53f8d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c @@ -14,3 +14,4 @@ void baz(void) } /* { dg-final { scan-tree-dump-times "asm\[^\\r\\n\]*xyzzy" 1 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c index 9fbfc701511..fdcddb7a5fa 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c @@ -28,3 +28,5 @@ void test(void) /* In particular, hardreg should *not* appear in the call to bar. */ /* { dg-final { scan-tree-dump-times "bar \[(\]t\[)\]" 1 "optimized" } } */ + +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cfgcleanup-1.c b/gcc/testsuite/gcc.dg/tree-ssa/cfgcleanup-1.c index 4d22a42814a..e86a6484e37 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cfgcleanup-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cfgcleanup-1.c @@ -16,3 +16,4 @@ cleanup (int a, int b) } /* Dce should get rid of the initializers and cfgcleanup should elliminate ifs */ /* { dg-final { scan-tree-dump-times "if " 0 "dce1"} } */ +/* { dg-final { cleanup-tree-dump "dce1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/complex-1.c b/gcc/testsuite/gcc.dg/tree-ssa/complex-1.c index 7dff01ce425..7c76467f4d7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/complex-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/complex-1.c @@ -10,3 +10,4 @@ C foo(C x, float y) } /* { dg-final { scan-tree-dump-times "__mul" 0 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/complex-2.c b/gcc/testsuite/gcc.dg/tree-ssa/complex-2.c index ce72eb2172f..d2d42b93de2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/complex-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/complex-2.c @@ -10,3 +10,4 @@ C foo(C x, float y) } /* { dg-final { scan-tree-dump-times "__div" 0 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers.c b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers.c index 4241b40835e..474633eab65 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers.c @@ -13,3 +13,4 @@ void bla (void) /* There should be a header duplicated. */ /* { dg-final { scan-tree-dump-times "Duplicating header" 1 "ch"} } */ +/* { dg-final { cleanup-tree-dump "ch" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c index ec87f38a14d..9f8491f1dbf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c @@ -34,3 +34,4 @@ int main1 () /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */ +/* { dg-final { cleanup-tree-dump "ifcvt" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c index 85a79e72969..49cca20857d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c @@ -33,4 +33,4 @@ void foo(const int * __restrict__ zr_in, /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */ - +/* { dg-final { cleanup-tree-dump "ifcvt" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-1.c b/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-1.c index 4b241c30ba2..a08f2abefdc 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-1.c @@ -13,6 +13,8 @@ char f(char *a) /* test_function should be called twice as the inline-asm changes memory. */ /* { dg-final { scan-tree-dump-times "test_function" 2 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ /* There should a V_MAY_DEF for the inline-asm. */ /* { dg-final { scan-tree-dump-times "V_MAY_DEF" 1 "alias1"} } */ +/* { dg-final { cleanup-tree-dump "alias1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-2.c b/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-2.c index ef8f9607056..eff5c9985ec 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-2.c @@ -15,3 +15,4 @@ void f(char *a) /* There should a V_MAY_DEF for the inline-asm and one for the link_error. */ /* { dg-final { scan-tree-dump-times "V_MAY_DEF" 2 "alias1"} } */ +/* { dg-final { cleanup-tree-dump "alias1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index 31818879dfb..87d94918f82 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -22,8 +22,11 @@ void xxx(void) /* We should be able to find out that the loop iterates four times and unroll it completely. */ /* { dg-final { scan-tree-dump-times "Added canonical iv to loop 1, 4 iterations" 1 "ivcanon"} } */ +/* { dg-final { cleanup-tree-dump "ivcanon" } } */ /* { dg-final { scan-tree-dump-times "Unrolled loop 1 completely" 1 "cunroll"} } */ +/* { dg-final { cleanup-tree-dump "cunroll" } } */ /* { dg-final { scan-tree-dump-times "foo" 5 "vars"} } */ +/* { dg-final { cleanup-tree-dump "vars" } } */ /* Because hppa and ia64 targets include an external declaration for foo as well as the calls we need to look for something more specific then just diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c index 2bb04105a12..381e34e08f9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-2.c @@ -35,3 +35,5 @@ void xxx(void) /* { dg-final { scan-tree-dump-times "1700" 1 "vars" } } */ /* { dg-final { scan-tree-dump-times "iter" 0 "vars" } } */ + +/* { dg-final { cleanup-tree-dump "vars" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c index 67846f40b11..35f127e14ad 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-3.c @@ -25,3 +25,5 @@ void xxx(void) /* And original induction variable should be preserved. */ /* { dg-final { scan-tree-dump-times "int iter" 1 "vars" } } */ + +/* { dg-final { cleanup-tree-dump "vars" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c index 8ba535b597a..147a343eff0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-4.c @@ -39,3 +39,5 @@ void xxx(void) /* And the original induction variable should be eliminated. */ /* { dg-final { scan-tree-dump-times "iter" 0 "vars" } } */ + +/* { dg-final { cleanup-tree-dump "vars" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-5.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-5.c index fe5b981e70e..c797cd176fb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-5.c @@ -24,3 +24,5 @@ void xxx(void) /* And the use of jter should be replaced by iter + 2 */ /* { dg-final { scan-tree-dump-times " \\+ 2" 1 "vars" } } */ + +/* { dg-final { cleanup-tree-dump "vars" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-6.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-6.c index e96f5e27c70..f46b8462076 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-6.c @@ -20,7 +20,9 @@ void xxx(void) /* Loop should be unswitched. */ /* { dg-final { scan-tree-dump-times "Unswitching loop" 1 "unswitch" } } */ +/* { dg-final { cleanup-tree-dump "unswitch" } } */ /* In effect there should be exactly three conditional jumps in the final program. */ /* { dg-final { scan-tree-dump-times "else" 3 "vars" } } */ +/* { dg-final { cleanup-tree-dump "vars" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-7.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-7.c index e5a408321d7..462df8c90bd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-7.c @@ -32,3 +32,4 @@ int xxx (void) with k = 0 may be invalid. */ /* { dg-final { scan-tree-dump-times "Moving statement" 2 "lim" } } */ +/* { dg-final { cleanup-tree-dump "lim" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-1.c index bbeef87b61e..33b82cbb746 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-1.c @@ -20,3 +20,4 @@ int foo(int N, int *res) /* { dg-final { scan-tree-dump-times "converted loop nest to perfect loop nest" 1 "ltrans"} } */ /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */ +/* { dg-final { cleanup-tree-dump "ltrans" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-2.c index 7ab3e6c6897..9cfa60d2d99 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-2.c @@ -22,3 +22,4 @@ int foo(int N, int *res) } /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} { xfail *-*-*} } */ +/* { dg-final { cleanup-tree-dump "ltrans" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-3.c index 81c347c7aa6..0cb266f4cc4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-3.c @@ -17,3 +17,4 @@ int foo(int N, int *res) } /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */ +/* { dg-final { cleanup-tree-dump "ltrans" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-4.c index 5f43da17d23..06a4bc2cf68 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-4.c @@ -16,3 +16,4 @@ int foo(int N, int *res) } /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */ +/* { dg-final { cleanup-tree-dump "ltrans" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-5.c index 43a20119d42..c55fec3f09d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ltrans-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ltrans-5.c @@ -16,3 +16,4 @@ int main(void) /* { dg-final { scan-tree-dump-times "Linear expression: constant: 1 invariants: denominator: 1" 1 "ltrans" } } */ /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */ +/* { dg-final { cleanup-tree-dump "ltrans" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr15349.c b/gcc/testsuite/gcc.dg/tree-ssa/pr15349.c index 024b2f5b22b..5c440e60775 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr15349.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr15349.c @@ -23,3 +23,4 @@ foo (int a, int b) } /* { dg-final { scan-tree-dump-times "PHI" 1 "mergephi"} } */ +/* { dg-final { cleanup-tree-dump "mergephi" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr15791-3.c b/gcc/testsuite/gcc.dg/tree-ssa/pr15791-3.c index be7ac1e0e1b..2fd03e2e0cb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr15791-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr15791-3.c @@ -10,4 +10,4 @@ int f(int i, unsigned j) } /* { dg-final { scan-tree-dump-times "i == j" 0 "gimple" } } */ - +/* { dg-final { cleanup-tree-dump "gimple" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr15791-4.c b/gcc/testsuite/gcc.dg/tree-ssa/pr15791-4.c index 54cf0dd91d9..82be2e33a9a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr15791-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr15791-4.c @@ -10,4 +10,4 @@ int f(int i, int j) } /* { dg-final { scan-tree-dump-times "i == j" 0 "gimple" } } */ - +/* { dg-final { cleanup-tree-dump "gimple" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr15791-5.c b/gcc/testsuite/gcc.dg/tree-ssa/pr15791-5.c index 0db13b09a49..06ce523a7ae 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr15791-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr15791-5.c @@ -10,4 +10,4 @@ int foo(int i, int j) } /* { dg-final { scan-tree-dump-times "i == j" 1 "gimple" } } */ - +/* { dg-final { cleanup-tree-dump "gimple" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr16721.c b/gcc/testsuite/gcc.dg/tree-ssa/pr16721.c index 869ab96497e..eec753405c7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr16721.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr16721.c @@ -13,3 +13,4 @@ int test() /* The load from p->addr should not disappear. */ /* { dg-final { scan-tree-dump-times "\->addr" 1 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr19633.c b/gcc/testsuite/gcc.dg/tree-ssa/pr19633.c index 88cbfe222d7..01c7eec3129 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr19633.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr19633.c @@ -23,3 +23,4 @@ foo (int a, struct T b) /* Make sure that .GLOBAL_VAR is not created when there are no clobbering calls. */ /* { dg-final { scan-tree-dump-times "GLOBAL_VAR" 0 "ssa"} } */ +/* { dg-final { cleanup-tree-dump "ssa" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c index c018fbb9dec..c2e45eb1f84 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-1.c @@ -70,3 +70,4 @@ copystruct111111 (teststruct param) /* There should be no referenc to link_error. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c index fa8bea51bc7..ac4c1c61c6b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-2.c @@ -23,3 +23,4 @@ copystruct11 (teststruct *param) /* There should be no reference to link_error. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/sra-3.c b/gcc/testsuite/gcc.dg/tree-ssa/sra-3.c index f6ffc575938..1f6adcf5876 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/sra-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/sra-3.c @@ -25,3 +25,4 @@ copystruct1 (void) /* There should be no reference to link_error. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c index 419cc95c71e..a7d5cd82a50 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c @@ -72,3 +72,4 @@ void test11111 (int p, int q, int r) /* There should be not link_error calls, if there is any the optimization has failed */ /* { dg-final { scan-tree-dump-times "link_error" 0 "ccp"} } */ +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c index b5e702c57ea..7177d991e24 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-10.c @@ -31,3 +31,4 @@ middle: /* There should be no calls to strlen. */ /* { dg-final { scan-tree-dump-times "strlen" 0 "fab"} } */ +/* { dg-final { cleanup-tree-dump "fab" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-11.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-11.c index b7f307964a6..5d774f8b452 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-11.c @@ -39,3 +39,4 @@ int test1111 (int param) /* All ifs should be eliminated. */ /* { dg-final { scan-tree-dump-times "if" 0 "optimized" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c index b3c87fdc7b3..aad1a3f3cc4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-2.c @@ -169,3 +169,4 @@ int test99999 (void) /* There should be not link_error calls, if there is any the optimization has failed */ /* { dg-final { scan-tree-dump-times "link_error" 0 "ccp"} } */ +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c index 15d43cb7ef7..f15ba1ee113 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c @@ -132,3 +132,4 @@ int* test666 (int * __restrict__ rp1, int * __restrict__ rp2, int *p1) /* ??? While we indeed don't handle some of these, a couple of the restrict tests are incorrect. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "ccp" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-7.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-7.c index ba6db18e00e..bd97b897c3e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-7.c @@ -24,4 +24,4 @@ int test7 (int a) /* There should be not link_error calls, if there is any the optimization has failed */ /* { dg-final { scan-tree-dump-times "link_error" 0 "ccp"} } */ - +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-9.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-9.c index 4656558814e..db19b00d145 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-9.c @@ -52,3 +52,4 @@ test99999 (int *arr, int j) /* There should be no link_error calls, if there is any, the optimization has failed */ /* { dg-final { scan-tree-dump-times "link_error" 0 "ccp"} } */ +/* { dg-final { cleanup-tree-dump "ccp" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c index e95cf67cde0..3a1cad1b8bc 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-1.c @@ -10,3 +10,4 @@ q() } /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dce3"} } */ +/* { dg-final { cleanup-tree-dump "dce3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-2.c index 64525141beb..213c521d8a3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-2.c @@ -14,3 +14,4 @@ q() } /* There should be no IF conditionals. */ /* { dg-final { scan-tree-dump-times "if " 0 "dce3"} } */ +/* { dg-final { cleanup-tree-dump "dce3" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-3.c index efaa3affaf6..847d4209b58 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-3.c @@ -27,3 +27,5 @@ int main(void) /* And one if (for the exit condition of the loop): */ /* { dg-final { scan-tree-dump-times "if " 1 "cddce"} } */ + +/* { dg-final { cleanup-tree-dump "cddce" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-ccp-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-ccp-1.c index db7b4b49ed2..9aacbcb2746 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-ccp-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-ccp-1.c @@ -15,3 +15,4 @@ ccp(int b) } /* We should propagate constant 4 into return. */ /* { dg-final { scan-tree-dump-times "Replaced.*with constant '4'" 1 "dom1"} } */ +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c index 52531009e67..82687d71913 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c @@ -13,3 +13,4 @@ threading(int a,int b) } /* We should thread the jump twice and eliminate it. */ /* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "dom1"} } */ +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-1.c index e4ae8ea0b92..d89394a2698 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-1.c @@ -15,3 +15,4 @@ threading(int a,int b) } /* We should thread the jump twice and elliminate it. */ /* { dg-final { scan-tree-dump-times "Threaded" 2 "dom1"} } */ +/* { dg-final { cleanup-tree-dump "dom1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c index ca1b81c5f02..a2fc435e3ec 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c @@ -18,3 +18,4 @@ int main(int argc, char **argv) /* We should eliminate one evaluation of b + c along the main path, causing one reload. */ /* { dg-final { scan-tree-dump-times "Eliminated:1" 1 "pre"} } */ +/* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-2.c index 8326009fb77..3a110783013 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-2.c @@ -18,3 +18,4 @@ int motion_test1(int data, int data_0, int data_3, int v) /* We should eliminate one computation of data_0 + data_3 along the main path, causing one reload. */ /* { dg-final { scan-tree-dump-times "Eliminated:1" 1 "pre"} } */ +/* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-3.c index 839f351f53d..6952bc6f3d9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-3.c @@ -12,3 +12,4 @@ unsigned foo1 (unsigned a, unsigned b) } /* We should eliminate both 4*b and 4*a from the main body of the loop */ /* { dg-final { scan-tree-dump-times "Eliminated:2" 1 "pre"} } */ +/* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c index adf4ed00ad5..acb7f5ae28a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c @@ -12,3 +12,4 @@ int main(void) /* We should eliminate the x+1 computation from this routine, replacing it with a phi of 3, 4 */ /* { dg-final { scan-tree-dump-times "Eliminated:1" 1 "pre"} } */ +/* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-5.c index a5ae701358e..c3f79c2999b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-5.c @@ -13,3 +13,4 @@ foo (int i) /* We should detect that a+b is the same along both edges, and replace it with 5 */ /* { dg-final { scan-tree-dump-times "Constified:1" 1 "pre"} } */ +/* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c index 23bde5930c8..39b0e835008 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c @@ -11,3 +11,4 @@ int main(int x) /* We should eliminate one evaluation of x + 1 along the x = 2 path, causing one elimination. */ /* { dg-final { scan-tree-dump-times "Eliminated:1" 1 "pre"} } */ +/* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-1.c index 0bee06c87f0..4dc415d438e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-1.c @@ -7,4 +7,5 @@ foo (int a, int b, int c) return c ? x : a; } /* We should sink the x = a * b calculation into the branch that returns x. */ -/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink"} } */ +/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */ +/* { dg-final { cleanup-tree-dump "sink" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-2.c index f8c4d13582b..259a11a34d1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-2.c @@ -9,4 +9,5 @@ bar (int a, int b, int c) return y; } /* We should sink the x = a * b calculation into the else branch */ -/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink"} } */ +/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */ +/* { dg-final { cleanup-tree-dump "sink" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c index d0052c945f4..50efa339f5e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c @@ -12,4 +12,5 @@ main (int argc) } } /* We should sink the a = argc + 1 calculation into the if branch */ -/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink"} } */ +/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */ +/* { dg-final { cleanup-tree-dump "sink" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-4.c index d7b4dd14dcf..c49c4f8d006 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-4.c @@ -17,4 +17,5 @@ main (int argc) foo2 (a); } /* We should sink the first a = b + c calculation into the else branch */ -/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink"} } */ +/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */ +/* { dg-final { cleanup-tree-dump "sink" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c b/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c index 33901523fb3..422ee2d7bae 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailcall-1.c @@ -17,3 +17,4 @@ t(int a) return r; } /* { dg-final { scan-tree-dump-times "Found tail call" 1 "tailc"} } */ +/* { dg-final { cleanup-tree-dump "tailc" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailcall-2.c b/gcc/testsuite/gcc.dg/tree-ssa/tailcall-2.c index 7f3415444ff..bd9a8535461 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailcall-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailcall-2.c @@ -21,3 +21,4 @@ foo (int *x) variables, they ought to be ignored. There should be two tail calls here. */ /* { dg-final { scan-tree-dump-times "Found tail call" 2 "tailc"} } */ +/* { dg-final { cleanup-tree-dump "tailc" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-1.c b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-1.c index dc61c1324bd..af65736661f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-1.c @@ -9,3 +9,4 @@ t(int a) return 0; } /* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 1 "tailr"} } */ +/* { dg-final { cleanup-tree-dump "tailr" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-2.c b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-2.c index 095993bc133..d0bc8b9c230 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-2.c @@ -10,3 +10,4 @@ t(char *a) return 0; } /* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 1 "tailr"} } */ +/* { dg-final { cleanup-tree-dump "tailr" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-3.c b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-3.c index 097a1de0e4e..4e0ca133e5d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-3.c @@ -13,3 +13,4 @@ t(int a) return r; } /* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 1 "tailr"} } */ +/* { dg-final { cleanup-tree-dump "tailr" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-4.c b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-4.c index 71a4f6716a1..edab9833f0f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-4.c @@ -15,3 +15,4 @@ t(int a) return r; } /* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 2 "tailr"} } */ +/* { dg-final { cleanup-tree-dump "tailr" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c index d0d4f3a1e45..2a0af0a714b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-5.c @@ -73,3 +73,5 @@ int main(void) /* There is one recursive call to fib. */ /* { dg-final { scan-tree-dump-times "\\mfib\\M" 5 "optimized"} } */ + +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/useless-1.c b/gcc/testsuite/gcc.dg/tree-ssa/useless-1.c index 3274998d1fc..9170b7ca4de 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/useless-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/useless-1.c @@ -14,3 +14,4 @@ foo (void) GIMPLE lowering, at the cost of an extra statement, label, and basic block. */ /* { dg-final { scan-tree-dump-times "goto" 3 "useless"} } */ +/* { dg-final { cleanup-tree-dump "useless" } } */ |