reload1.c (indirect_symref_ok): Make it global.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 23 Mar 2005 00:39:48 +0000 (00:39 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 23 Mar 2005 00:39:48 +0000 (00:39 +0000)
* reload1.c (indirect_symref_ok): Make it global.
* reload.h: Add a prototype for indirect_symref_ok.

From-SVN: r96913

gcc/ChangeLog
gcc/reload.h
gcc/reload1.c

index f1830ad3dd0c4a52e15d7497716731356699d909..e3dbd08a533974248ccdeab6f75252a526bd3fa9 100644 (file)
@@ -4,6 +4,9 @@
        static.
        * reload.h: Remove the prototype for indirect_symref_ok.
 
+       * reload1.c (indirect_symref_ok): Make it global.
+       * reload.h: Add a prototype for indirect_symref_ok.
+
 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
index 182a85721da0489b56b7fdc62bb3f346693b558f..1c5463d3d5bcc289b0d889367c6d9abbd9d37e8c 100644 (file)
@@ -182,6 +182,12 @@ 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 5a044f6c8d2742deb1be20c5abfe8787dab65157..41a2f02f9a74a75fde4a082c444e183aac78fe2a 100644 (file)
@@ -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.  */
-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;