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] cfg-loop.[ch]: Remove flow_loops_update.


Hi,

Attached is a patch to remove flow_loops_update() as it is unused.

I also confirmd that none of 3.3, 3.4, or mainline branch uses it
(although it's defined in all of them).

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

Kazu Hirata

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

	* cfgloop.c (flow_loops_update): Remove.
	* cfgloop.h: Remove the corresponding prototype.

Index: cfgloop.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgloop.c,v
retrieving revision 1.40
diff -u -r1.40 cfgloop.c
--- cfgloop.c	28 Sep 2004 07:59:42 -0000	1.40
+++ cfgloop.c	5 Oct 2004 23:03:28 -0000
@@ -958,20 +958,6 @@
   return loops->num;
 }
 
-/* Update the information regarding the loops in the CFG
-   specified by LOOPS.  */
-
-int
-flow_loops_update (struct loops *loops, int flags)
-{
-  /* One day we may want to update the current loop data.  For now
-     throw away the old stuff and rebuild what we need.  */
-  if (loops->parray)
-    flow_loops_free (loops);
-
-  return flow_loops_find (loops, flags);
-}
-
 /* Return nonzero if basic block BB belongs to LOOP.  */
 bool
 flow_bb_inside_loop_p (const struct loop *loop, const basic_block bb)
Index: cfgloop.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgloop.h,v
retrieving revision 1.32
diff -u -r1.32 cfgloop.h
--- cfgloop.h	23 Sep 2004 12:21:17 -0000	1.32
+++ cfgloop.h	5 Oct 2004 23:03:28 -0000
@@ -244,7 +244,6 @@
 
 /* Loop recognition.  */
 extern int flow_loops_find (struct loops *, int flags);
-extern int flow_loops_update (struct loops *, int flags);
 extern void flow_loops_free (struct loops *);
 extern void flow_loops_dump (const struct loops *, FILE *,
 			     void (*)(const struct loop *, FILE *, int), int);


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