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] cfgloop.c: Make cancel_loop static.


Hi,

Attached is a patch to make cancel_loop static.

Tested on x86_64-pc-linux-gnu.  Committed as preapproved.

Kazu Hirata

2006-03-05  Kazu Hirata  <kazu@codesourcery.com>

	* cfgloop.c (cancel_loop): Make it static.
	* cfgloop.h: Remove the prototype for cancel_loop.

Index: cfgloop.c
===================================================================
--- cfgloop.c	(revision 111711)
+++ cfgloop.c	(working copy)
@@ -1012,7 +1012,8 @@ find_common_loop (struct loop *loop_s, s
 }
 
 /* Cancels the LOOP; it must be innermost one.  */
-void
+
+static void
 cancel_loop (struct loops *loops, struct loop *loop)
 {
   basic_block *bbs;
Index: cfgloop.h
===================================================================
--- cfgloop.h	(revision 111711)
+++ cfgloop.h	(working copy)
@@ -272,7 +272,6 @@ extern edge loop_latch_edge (const struc
 extern void add_bb_to_loop (basic_block, struct loop *);
 extern void remove_bb_from_loops (basic_block);
 
-extern void cancel_loop (struct loops *, struct loop *);
 extern void cancel_loop_tree (struct loops *, struct loop *);
 
 extern basic_block loop_split_edge_with (edge, rtx);


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