This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] reload1.c: Make two variables static.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Mar 2005 19:37:53 -0500 (EST)
- Subject: [patch] reload1.c: Make two variables static.
Hi,
Attached is a patch to make two variables static.
Bootstrapped on i686-pc-linux-gnu. Committed as preapproved.
Kazu Hirata
2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
* reload1.c (indirect_symref_ok, reload_obstack): Make them
static.
* reload.h: Remove the prototype for indirect_symref_ok.
Index: reload.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload.h,v
retrieving revision 1.50
diff -u -d -p -r1.50 reload.h
--- reload.h 14 Dec 2004 01:01:26 -0000 1.50
+++ reload.h 22 Mar 2005 20:41:17 -0000
@@ -182,12 +182,6 @@ extern int reload_n_operands;
Used in find_equiv_reg. */
extern int reload_first_uid;
-/* Nonzero if indirect addressing is supported when the innermost MEM is
- of the form (MEM (SYMBOL_REF sym)). It is assumed that the level to
- which these are valid is the same as spill_indirect_levels, above. */
-
-extern char indirect_symref_ok;
-
/* Nonzero if an address (plus (reg frame_pointer) (reg ...)) is valid. */
extern char double_reg_address_ok;
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.463
diff -u -d -p -r1.463 reload1.c
--- reload1.c 7 Mar 2005 17:48:37 -0000 1.463
+++ reload1.c 22 Mar 2005 20:41:18 -0000
@@ -229,7 +229,7 @@ static char spill_indirect_levels;
/* Nonzero if indirect addressing is supported when the innermost MEM is
of the form (MEM (SYMBOL_REF sym)). It is assumed that the level to
which these are valid is the same as spill_indirect_levels, above. */
-char indirect_symref_ok;
+static char indirect_symref_ok;
/* Nonzero if an address (plus (reg frame_pointer) (reg ...)) is valid. */
char double_reg_address_ok;
@@ -268,7 +268,7 @@ enum insn_code reload_out_optab[NUM_MACH
/* This obstack is used for allocation of rtl during register elimination.
The allocated storage can be freed once find_reloads has processed the
insn. */
-struct obstack reload_obstack;
+static struct obstack reload_obstack;
/* Points to the beginning of the reload_obstack. All insn_chain structures
are allocated first. */