diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-10 10:21:31 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-10 10:21:31 +0000 |
commit | 18a8d8ef31080fb83c7706fcc32e01c5054e019d (patch) | |
tree | b081f5bedd4bbb3b5b431946e31f82948a6efb09 /gcc/tree-ssa-live.c | |
parent | 7e59625d1a6f3ec0132cbb4e83530fd9df32b887 (diff) | |
download | gcc-18a8d8ef31080fb83c7706fcc32e01c5054e019d.tar.gz |
2008-10-10 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r141021
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@141032 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 859c0c7427d..47315184f9a 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -600,6 +600,8 @@ remove_unused_locals (void) { gimple_stmt_iterator gsi; size_t i; + edge_iterator ei; + edge e; /* Walk the statements. */ for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) @@ -634,6 +636,10 @@ remove_unused_locals (void) mark_all_vars_used (&arg, NULL); } } + + FOR_EACH_EDGE (e, ei, bb->succs) + if (e->goto_locus) + TREE_USED (e->goto_block) = true; } /* Remove unmarked local vars from local_decls. */ |