[patch] cselib.c: Make reg_values and reg_values_size static.

Kazu Hirata kazu@cs.umass.edu
Sun Mar 6 12:21:00 GMT 2005


Hi,

Attached is a patch to make reg_values and reg_values_size static as
they are used only in cselib.c.

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

Kazu Hirata

2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>

	* cselib.c (reg_values, reg_values_size): Make them static.

Index: cselib.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cselib.c,v
retrieving revision 1.58
diff -u -d -p -r1.58 cselib.c
--- cselib.c	11 Feb 2005 18:12:33 -0000	1.58
+++ cselib.c	5 Mar 2005 17:04:44 -0000
@@ -101,8 +101,8 @@ static int n_useless_values;
    which the register was set; if the mode is unknown or the value is
    no longer valid in that mode, ELT will be NULL for the first
    element.  */
-struct elt_list **reg_values;
-unsigned int reg_values_size;
+static struct elt_list **reg_values;
+static unsigned int reg_values_size;
 #define REG_VALUES(i) reg_values[i]
 
 /* The largest number of hard regs used by any entry added to the



More information about the Gcc-patches mailing list