aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-low.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2009-04-26 22:09:50 +0000
committerMichael Matz <matz@gcc.gnu.org>2009-04-26 22:09:50 +0000
commitddc34084b6f0fe85ae52114044dd4a27f57ad8b6 (patch)
tree8c9d7c82cbaab42b2eff59d07e4c41277e227a98 /gcc/gimple-low.c
parent1fec7ed49860c248ae85a293ded8fff4c3ed238d (diff)
downloadgcc-ddc34084b6f0fe85ae52114044dd4a27f57ad8b6.zip
gcc-ddc34084b6f0fe85ae52114044dd4a27f57ad8b6.tar.gz
gcc-ddc34084b6f0fe85ae52114044dd4a27f57ad8b6.tar.bz2
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
Diffstat (limited to 'gcc/gimple-low.c')
-rw-r--r--gcc/gimple-low.c58
1 files changed, 0 insertions, 58 deletions
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 */
- }
-};