This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] flow.c: Make allocate_bb_life_data static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 06 Nov 2004 14:51:07 -0500 (EST)
- Subject: [patch] flow.c: Make allocate_bb_life_data static.
Hi,
Attached is a patch to make allocate_bb_life_data static as it is
called only from flow.c itself.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
* 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 5 Nov 2004 01:42:08 -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 5 Nov 2004 01:42:10 -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. */
@@ -1404,7 +1405,7 @@ initialize_uninitialized_subregs (void)
/* Allocate the permanent data structures that represent the results
of life analysis. Not static since used also for stupid life analysis. */
-void
+static void
allocate_bb_life_data (void)
{
basic_block bb;