This is the mail archive of the gcc-patches@gcc.gnu.org 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] cfgloopmanip.c: Make some functions static.


Hi,

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>

	* cfgloopmanip.c (update_single_exits_after_duplication,
	unloop): Make them static.
	* cfgloop.h: Remove the corresponding prototypes.

Index: cfgloop.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cfgloop.h,v
retrieving revision 1.38
diff -u -d -p -r1.38 cfgloop.h
--- cfgloop.h	9 Nov 2004 19:21:29 -0000	1.38
+++ cfgloop.h	11 Nov 2004 18:17:28 -0000
@@ -274,8 +274,6 @@ extern int flow_loop_scan (struct loop *
 extern void flow_loop_free (struct loop *);
 void mark_irreducible_loops (struct loops *);
 void mark_single_exit_loops (struct loops *);
-void update_single_exits_after_duplication (basic_block *, unsigned,
-					    struct loop *);
 extern void create_loop_notes (void);
 
 /* Loop data structure manipulation/querying.  */
@@ -337,7 +335,6 @@ extern int duplicate_loop_to_header_edge
 					  unsigned *, int);
 extern struct loop *loopify (struct loops *, edge, edge,
 			     basic_block, edge, edge, bool);
-extern void unloop (struct loops *, struct loop *);
 extern bool remove_path (struct loops *, edge);
 extern edge split_loop_bb (basic_block, void *);
 
Index: cfgloopmanip.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cfgloopmanip.c,v
retrieving revision 1.35
diff -u -d -p -r1.35 cfgloopmanip.c
--- cfgloopmanip.c	25 Oct 2004 21:46:17 -0000	1.35
+++ cfgloopmanip.c	11 Nov 2004 18:17:44 -0000
@@ -47,6 +47,7 @@ static void scale_loop_frequencies (stru
 static void scale_bbs_frequencies (basic_block *, int, int, int);
 static basic_block create_preheader (struct loop *, int);
 static void fix_irreducible_loops (basic_block);
+static void unloop (struct loops *, struct loop *);
 
 #define RDIV(X,Y) (((X) + (Y) / 2) / (Y))
 
@@ -582,7 +583,7 @@ loopify (struct loops *loops, edge latch
 /* Remove the latch edge of a LOOP and update LOOPS tree to indicate that
    the LOOP was removed.  After this function, original loop latch will
    have no successor, which caller is expected to fix somehow.  */
-void
+static void
 unloop (struct loops *loops, struct loop *loop)
 {
   basic_block *body;
@@ -822,7 +823,7 @@ can_duplicate_loop_p (struct loop *loop)
 /* The NBBS blocks in BBS will get duplicated and the copies will be placed
    to LOOP.  Update the single_exit information in superloops of LOOP.  */
 
-void
+static void
 update_single_exits_after_duplication (basic_block *bbs, unsigned nbbs,
 				       struct loop *loop)
 {


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