From ddc34084b6f0fe85ae52114044dd4a27f57ad8b6 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 26 Apr 2009 22:09:50 +0000 Subject: tree-pass.h (pass_del_ssa, [...]): Remove decls. * tree-pass.h (pass_del_ssa, pass_mark_used_blocks, pass_free_cfg_annotations, pass_free_datastructures): Remove decls. * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks, pass_mark_used_blocks): Remove. * tree-optimize.c (pass_free_datastructures, execute_free_cfg_annotations, pass_free_cfg_annotations): Remove. * passes.c (init_optimization_passes): Don't call pass_mark_used_blocks, remove dead code. From-SVN: r146819 --- gcc/gimple-low.c | 58 -------------------------------------------------------- 1 file changed, 58 deletions(-) (limited to 'gcc/gimple-low.c') diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c index d35ba8b..02a1ce6 100644 --- a/gcc/gimple-low.c +++ b/gcc/gimple-low.c @@ -900,61 +900,3 @@ record_vars (tree vars) { record_vars_into (vars, current_function_decl); } - - -/* Mark BLOCK used if it has a used variable in it, then recurse over its - subblocks. */ - -static void -mark_blocks_with_used_vars (tree block) -{ - tree var; - tree subblock; - - if (!TREE_USED (block)) - { - for (var = BLOCK_VARS (block); - var; - var = TREE_CHAIN (var)) - { - if (TREE_USED (var)) - { - TREE_USED (block) = true; - break; - } - } - } - for (subblock = BLOCK_SUBBLOCKS (block); - subblock; - subblock = BLOCK_CHAIN (subblock)) - mark_blocks_with_used_vars (subblock); -} - -/* Mark the used attribute on blocks correctly. */ - -static unsigned int -mark_used_blocks (void) -{ - mark_blocks_with_used_vars (DECL_INITIAL (current_function_decl)); - return 0; -} - - -struct gimple_opt_pass pass_mark_used_blocks = -{ - { - GIMPLE_PASS, - "blocks", /* name */ - NULL, /* gate */ - mark_used_blocks, /* execute */ - NULL, /* sub */ - NULL, /* next */ - 0, /* static_pass_number */ - TV_NONE, /* tv_id */ - 0, /* properties_required */ - 0, /* properties_provided */ - 0, /* properties_destroyed */ - 0, /* todo_flags_start */ - TODO_dump_func /* todo_flags_finish */ - } -}; -- cgit v1.1