This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] reload1.c: Make indirect_symref_ok global again.


Hi,

Attached is a patch to make indirect_symref_ok global again.

I didn't notice that reload.c contains a reference to
indirect_symref_ok.  Sorry!

Committed as obvious.

Kazu Hirata

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

	* reload1.c (indirect_symref_ok): Make it global.
	* reload.h: Add a 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	22 Mar 2005 20:41:17 -0000
+++ reload.h	14 Dec 2004 01:01:26 -0000	1.50
@@ -182,6 +182,12 @@
    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	22 Mar 2005 20:41:18 -0000
+++ reload1.c	7 Mar 2005 17:48:37 -0000	1.463
@@ -229,7 +229,7 @@
 /* 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.  */
-static char indirect_symref_ok;
+char indirect_symref_ok;
 
 /* Nonzero if an address (plus (reg frame_pointer) (reg ...)) is valid.  */
 char double_reg_address_ok;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]