This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Make iteration_info static
- To: egcs-patches at cygnus dot com
- Subject: Make iteration_info static
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 4 Dec 1998 15:15:44 -0800 (PST)
Hi,
I couldn't find anywhere iteration_info is used outside of unroll.c.
If it has to be global, the prototype should be in loop.h.
BTW, I don't know why config/c4x/c4x.c declares it. I didn't see it
use iteration_info.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Fri Dec 4 08:04:18 1998 H.J. Lu (hjl@gnu.org)
* unroll.c (iteration_info): Make it static.
Index: unroll.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/unroll.c,v
retrieving revision 1.1.1.22
diff -u -p -r1.1.1.22 unroll.c
--- unroll.c 1998/12/04 20:04:08 1.1.1.22
+++ unroll.c 1998/12/04 20:28:26
@@ -194,7 +194,7 @@ static rtx initial_reg_note_copy PROTO((
static void final_reg_note_copy PROTO((rtx, struct inline_remap *));
static void copy_loop_body PROTO((rtx, rtx, struct inline_remap *, rtx, int,
enum unroll_types, rtx, rtx, rtx, rtx));
-void iteration_info PROTO((rtx, rtx *, rtx *, rtx, rtx));
+static void iteration_info PROTO((rtx, rtx *, rtx *, rtx, rtx));
static int find_splittable_regs PROTO((enum unroll_types, rtx, rtx, rtx, int,
unsigned HOST_WIDE_INT));
static int find_splittable_givs PROTO((struct iv_class *, enum unroll_types,
@@ -2329,7 +2329,7 @@ biv_total_increment (bl, loop_start, loo
Initial_value and/or increment are set to zero if their values could not
be calculated. */
-void
+static void
iteration_info (iteration_var, initial_value, increment, loop_start, loop_end)
rtx iteration_var, *initial_value, *increment;
rtx loop_start, loop_end;