This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] cse.c: Remove write-only static variables.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 23 Jan 2005 11:23:29 -0500 (EST)
- Subject: [patch] cse.c: Remove write-only static variables.
Hi,
Attached is a patch to remove write-only static variables.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
* cse.c (max_reg, max_insn_uid): Remove.
(cse_main): Don't access max_reg or max_insn_uid.
Index: cse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cse.c,v
retrieving revision 1.330
diff -u -d -p -r1.330 cse.c
--- cse.c 18 Jan 2005 11:36:03 -0000 1.330
+++ cse.c 23 Jan 2005 03:55:38 -0000
@@ -202,15 +202,6 @@ Related expressions:
so that it is possible to find out if there exists any
register equivalent to an expression related to a given expression. */
-/* One plus largest register number used in this function. */
-
-static int max_reg;
-
-/* One plus largest instruction UID used in this function at time of
- cse_main call. */
-
-static int max_insn_uid;
-
/* Length of qty_table vector. We know in advance we will not need
a quantity number this big. */
@@ -6726,10 +6717,6 @@ cse_main (rtx f, int nregs, FILE *file)
init_recog ();
init_alias_analysis ();
- max_reg = nregs;
-
- max_insn_uid = get_max_uid ();
-
reg_eqv_table = xmalloc (nregs * sizeof (struct reg_eqv_elem));
/* Reset the counter indicating how many elements have been made