tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void) for function...
authorDehao Chen <dehao@google.com>
Wed, 26 Sep 2012 22:02:36 +0000 (22:02 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Wed, 26 Sep 2012 22:02:36 +0000 (22:02 +0000)
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.

From-SVN: r191779

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/tree-ssa-live.c

index a82340f5e1048e830296b3d319c947aa63200308..b169687fa481392d604d75c145f4c8f92e0e3883 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2012-09-26  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * doc/extend.texi (bswap Builtins): Change signed types to unsigned
        * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
        cgraph nodes for builtins.
 
-2012-09-25  Dehao Chen  <dehao@google.com>
-
-       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  <jakub@redhat.com>
 
        PR tree-optimization/54676
index 7221f160222a733ad3ea7ce4c369af541980d286..c26014ec469706f92fcf6848e259d276c8ea770e 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-25  Dehao Chen  <dehao@google.com>
+
+       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  <charlet@adacore.com>
 
        * c-ada-spec.c: Style fixes.
index 68361454b451250e9d43cf6924f526243e40ec33..e4505d6a69173fecf3c1197512b074e73fb7f0ed 100644 (file)
@@ -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;
     }