From f1ff4562c5df9ccb3676f54deeeb21d2f6febd23 Mon Sep 17 00:00:00 2001 From: dehao Date: Wed, 26 Sep 2012 22:02:36 +0000 Subject: [PATCH] 2012-09-26 Dehao Chen * 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 --- gcc/ChangeLog | 12 ++++++------ gcc/c-family/ChangeLog | 6 ++++++ gcc/tree-ssa-live.c | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a82340f5e10..b169687fa48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-09-26 Dehao Chen + + * 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. + 2012-09-26 Oleg Endo * doc/extend.texi (bswap Builtins): Change signed types to unsigned @@ -132,12 +138,6 @@ * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge cgraph nodes for builtins. -2012-09-25 Dehao Chen - - PR middle-end/54645 - * c-family/c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data - map when read in the pch. - 2012-09-25 Jakub Jelinek PR tree-optimization/54676 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 7221f160222..c26014ec469 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2012-09-25 Dehao Chen + + PR middle-end/54645 + * c-family/c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data + map when read in the pch. + 2012-09-18 Arnaud Charlet * c-ada-spec.c: Style fixes. 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; } -- 2.11.4.GIT