]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
basic-block.h (alloc_aux_for_block, [...]): Delete.
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 10 Aug 2010 14:31:52 +0000 (14:31 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Tue, 10 Aug 2010 14:31:52 +0000 (14:31 +0000)
* basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
* cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
(alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.

From-SVN: r163066

gcc/ChangeLog
gcc/basic-block.h
gcc/cfg.c

index 7bc5b2c891ee8a2d4d11d5c2038695dd6315705c..530b45cba96c2f7a61b2b0c142df22578d39bc5e 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
+       * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
+       (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
+
 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
 
        * dwarf2out.c (struct die_struct): Move die_tag to the end.
index 1bf192d47f7c95a35592dcb6c081f18328c0199b..692ebe65cc4ba0bce647274f69a29fe0a5c3a365 100644 (file)
@@ -783,11 +783,9 @@ extern void link_block (basic_block, basic_block);
 extern void unlink_block (basic_block);
 extern void compact_blocks (void);
 extern basic_block alloc_block (void);
-extern void alloc_aux_for_block (basic_block, int);
 extern void alloc_aux_for_blocks (int);
 extern void clear_aux_for_blocks (void);
 extern void free_aux_for_blocks (void);
-extern void alloc_aux_for_edge (edge, int);
 extern void alloc_aux_for_edges (int);
 extern void clear_aux_for_edges (void);
 extern void free_aux_for_edges (void);
index 127f08c75dff9cb8307eb4b167e8f0d91da5a5f6..3a82d937a2fed199d967b85d428261844dc761bb 100644 (file)
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -735,7 +735,7 @@ static void *first_edge_aux_obj = 0;
 /* Allocate a memory block of SIZE as BB->aux.  The obstack must
    be first initialized by alloc_aux_for_blocks.  */
 
-void
+static void
 alloc_aux_for_block (basic_block bb, int size)
 {
   /* Verify that aux field is clear.  */
@@ -766,7 +766,7 @@ alloc_aux_for_blocks (int size)
     {
       basic_block bb;
 
-      FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb)
+      FOR_ALL_BB (bb)
        alloc_aux_for_block (bb, size);
     }
 }
@@ -778,7 +778,7 @@ clear_aux_for_blocks (void)
 {
   basic_block bb;
 
-  FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb)
+  FOR_ALL_BB (bb)
     bb->aux = NULL;
 }
 
@@ -798,7 +798,7 @@ free_aux_for_blocks (void)
 /* Allocate a memory edge of SIZE as BB->aux.  The obstack must
    be first initialized by alloc_aux_for_edges.  */
 
-void
+static void
 alloc_aux_for_edge (edge e, int size)
 {
   /* Verify that aux field is clear.  */