diff options
author | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-26 22:02:36 +0000 |
---|---|---|
committer | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-26 22:02:36 +0000 |
commit | f1ff4562c5df9ccb3676f54deeeb21d2f6febd23 (patch) | |
tree | 35d96905cbaef0164d3c77fda57ef2c6a9d4f3b9 /gcc/tree-ssa-live.c | |
parent | 476b25203ba649d86e6fb5ee6252b3ad921d606e (diff) | |
download | gcc-f1ff4562c5df9ccb3676f54deeeb21d2f6febd23.tar.gz |
2012-09-26 Dehao Chen <dehao@google.com>
* tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
for function parameter.
(remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191779 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 68361454b45..e4505d6a691 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -627,7 +627,7 @@ clear_unused_block_pointer_1 (tree *tp, int *, void *) so that they will not be streamed out. */ static void -clear_unused_block_pointer () +clear_unused_block_pointer (void) { basic_block bb; gimple_stmt_iterator gsi; @@ -814,7 +814,7 @@ remove_unused_locals (void) } FOR_EACH_EDGE (e, ei, bb->succs) - if (e->goto_locus) + if (LOCATION_BLOCK (e->goto_locus) != NULL) TREE_USED (LOCATION_BLOCK (e->goto_locus)) = true; } |