From: Kazu Hirata Date: Wed, 23 Mar 2005 00:39:48 +0000 (+0000) Subject: reload1.c (indirect_symref_ok): Make it global. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98af7219f2d5178717e39895abf3e95087a11eb4;p=gcc.git reload1.c (indirect_symref_ok): Make it global. * reload1.c (indirect_symref_ok): Make it global. * reload.h: Add a prototype for indirect_symref_ok. From-SVN: r96913 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1830ad3dd0..e3dbd08a533 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new diff --git a/gcc/reload.h b/gcc/reload.h index 182a85721da..1c5463d3d5b 100644 --- a/gcc/reload.h +++ b/gcc/reload.h @@ -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; diff --git a/gcc/reload1.c b/gcc/reload1.c index 5a044f6c8d2..41a2f02f9a7 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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;