This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] flow.c: Make allocate_bb_life_data static - Take 2


Attached is a patch to make allocate_bb_life_data static as it is
called only from flow.c itself.

In my last iteration of this patch, I forgot to update the comment.
Thanks Steven for spotting this.

Bootstrapped on i686-pc-linux-gnu (modulo the comment change).  OK to

Kazu Hirata

2004-11-06  Kazu Hirata  <>

	* flow.c (allocate_bb_life_data): Make it static.
	* basic-block.h: Remove the corresponding prototype.

Index: basic-block.h
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.223
diff -u -d -p -r1.223 basic-block.h
--- basic-block.h	29 Oct 2004 08:40:51 -0000	1.223
+++ basic-block.h	6 Nov 2004 20:35:36 -0000
@@ -745,7 +745,6 @@ extern basic_block debug_bb_n (int);
 extern void dump_regset (regset, FILE *);
 extern void debug_regset (regset);
 extern void allocate_reg_life_data (void);
-extern void allocate_bb_life_data (void);
 extern void expunge_block (basic_block);
 extern void link_block (basic_block, basic_block);
 extern void unlink_block (basic_block);
Index: flow.c
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.606
diff -u -d -p -r1.606 flow.c
--- flow.c	4 Nov 2004 20:35:57 -0000	1.606
+++ flow.c	6 Nov 2004 20:35:36 -0000
@@ -330,6 +330,7 @@ static int invalidate_mems_from_autoinc 
 static void invalidate_mems_from_set (struct propagate_block_info *, rtx);
 static void clear_log_links (sbitmap);
 static int count_or_remove_death_notes_bb (basic_block, int);
+static void allocate_bb_life_data (void);
 /* Return the INSN immediately following the NOTE_INSN_BASIC_BLOCK
    note associated with the BLOCK.  */
@@ -1402,9 +1403,9 @@ initialize_uninitialized_subregs (void)
 /* Subroutines of life analysis.  */
 /* Allocate the permanent data structures that represent the results
-   of life analysis.  Not static since used also for stupid life analysis.  */
+   of life analysis.  */
+static void
 allocate_bb_life_data (void)
   basic_block bb;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]