This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] reload1.c: Make several variables static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 06 Mar 2005 22:14:21 -0500 (EST)
- Subject: [patch] reload1.c: Make several variables static.
Hi,
Attached is a patch to make several variables static as they are used
only in reload1.c.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-03-05 Kazu Hirata <kazu@cs.umass.edu>
* reload1.c (reload_startobj, reload_firstobj,
something_needs_operands_changed, reload_inherited,
reload_inheritance_insn, reload_override_in,
reload_spill_index): Make them static.
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.461
diff -u -d -p -r1.461 reload1.c
--- reload1.c 1 Feb 2005 07:22:14 -0000 1.461
+++ reload1.c 5 Mar 2005 22:57:42 -0000
@@ -272,11 +272,11 @@ struct obstack reload_obstack;
/* Points to the beginning of the reload_obstack. All insn_chain structures
are allocated first. */
-char *reload_startobj;
+static char *reload_startobj;
/* The point after all insn_chain structures. Used to quickly deallocate
memory allocated in copy_reloads during calculate_needs_all_insns. */
-char *reload_firstobj;
+static char *reload_firstobj;
/* This points before all local rtl generated by register elimination.
Used to quickly free all memory after processing one insn. */
@@ -615,7 +615,7 @@ replace_pseudos_in (rtx *loc, enum machi
/* Set during calculate_needs if an insn needs register elimination. */
static int something_needs_elimination;
/* Set during calculate_needs if an insn needs an operand changed. */
-int something_needs_operands_changed;
+static int something_needs_operands_changed;
/* Nonzero means we couldn't get enough spill regs. */
static int failure;
@@ -4666,19 +4666,19 @@ reloads_conflict (int r1, int r2)
/* Indexed by reload number, 1 if incoming value
inherited from previous insns. */
-char reload_inherited[MAX_RELOADS];
+static char reload_inherited[MAX_RELOADS];
/* For an inherited reload, this is the insn the reload was inherited from,
if we know it. Otherwise, this is 0. */
-rtx reload_inheritance_insn[MAX_RELOADS];
+static rtx reload_inheritance_insn[MAX_RELOADS];
/* If nonzero, this is a place to get the value of the reload,
rather than using reload_in. */
-rtx reload_override_in[MAX_RELOADS];
+static rtx reload_override_in[MAX_RELOADS];
/* For each reload, the hard register number of the register used,
or -1 if we did not need a register for this reload. */
-int reload_spill_index[MAX_RELOADS];
+static int reload_spill_index[MAX_RELOADS];
/* Subroutine of free_for_value_p, used to check a single register.
START_REGNO is the starting regno of the full reload register