diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-04-12 17:26:45 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-04-12 17:26:45 +0000 |
commit | 08e7ceb3d3d4d3763bdb5cfbb1dd0a78b27f0e5d (patch) | |
tree | 14a6cce3cf7130799e9062ea9ff68332c7bd4c2d /gcc/config/mips/predicates.md | |
parent | 14976818e723aedf177bdd090fdd3ecb246e908d (diff) | |
download | gcc-08e7ceb3d3d4d3763bdb5cfbb1dd0a78b27f0e5d.tar.gz |
mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
gcc/
* config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
(SYMBOL_GOT_PAGE_OFST): ...this.
(SYMBOL_GOT_GLOBAL): Rename to...
(SYMBOL_GOT_DISP): ...this.
(SYMBOL_GOTOFF_GLOBAL): Rename to...
(SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
* config/mips/mips.c (mips_global_symbol_p): New function.
(mips_symbol_binds_local_p): Likewise.
(mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use mips_global_symbol_p
and mips_symbol_binds_local_p.
(mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
(override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
SYMBOL_GOTOFF_DISP.
(mips_ok_for_lazy_binding_p): New function.
(mips_load_call_address, mips_expand_call): Use it.
(mips_dangerous_for_la25_p): Likewise.
* config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
(*got_disp<mode>): Use got_disp_operand instead of
global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
SYMBOL_GOTOFF_GLOBAL.
(*got_page<mode>): Use got_page_ofst_operand instead of
local_got_operand.
* config/mips/predicates.md (const_call_insn_operand): Use
SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
(global_got_operand): Rename to...
(got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
SYMBOL_GOT_GLOBAL.
(local_got_operand): Rename to...
(got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
of SYMBOL_GOT_LOCAL.
From-SVN: r123752
Diffstat (limited to 'gcc/config/mips/predicates.md')
-rw-r--r-- | gcc/config/mips/predicates.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/mips/predicates.md b/gcc/config/mips/predicates.md index 9a6756c20a2..9f6cc955df2 100644 --- a/gcc/config/mips/predicates.md +++ b/gcc/config/mips/predicates.md @@ -118,7 +118,7 @@ addressing. */ return !TARGET_LONG_CALLS && !SYMBOL_REF_LONG_CALL_P (op); - case SYMBOL_GOT_GLOBAL: + case SYMBOL_GOT_DISP: /* Without explicit relocs, there is no special syntax for loading the address of a call destination into a register. Using "la $25,foo; jal $25" would prevent the lazy binding @@ -237,18 +237,18 @@ return mips_symbolic_constant_p (op, &type) && type == SYMBOL_GENERAL; }) -(define_predicate "global_got_operand" +(define_predicate "got_disp_operand" (match_code "const,symbol_ref,label_ref") { enum mips_symbol_type type; - return mips_symbolic_constant_p (op, &type) && type == SYMBOL_GOT_GLOBAL; + return mips_symbolic_constant_p (op, &type) && type == SYMBOL_GOT_DISP; }) -(define_predicate "local_got_operand" +(define_predicate "got_page_ofst_operand" (match_code "const,symbol_ref,label_ref") { enum mips_symbol_type type; - return mips_symbolic_constant_p (op, &type) && type == SYMBOL_GOT_LOCAL; + return mips_symbolic_constant_p (op, &type) && type == SYMBOL_GOT_PAGE_OFST; }) (define_predicate "stack_operand" |