diff options
author | David Daney <ddaney@avtrex.com> | 2007-06-18 19:35:05 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2007-06-18 19:35:05 +0000 |
commit | 2902c34e51bbb82181104caf213cdf99af1cd8de (patch) | |
tree | a72e7e3efcccc7e66cbb09532d8a7223b2d90501 /gcc | |
parent | d4977f6ca69175185798177faa70d72df4e45d91 (diff) | |
download | gcc-2902c34e51bbb82181104caf213cdf99af1cd8de.zip gcc-2902c34e51bbb82181104caf213cdf99af1cd8de.tar.gz gcc-2902c34e51bbb82181104caf213cdf99af1cd8de.tar.bz2 |
revert: re PR target/32313 (Bootstrap failure running gengtype in stage 2.)
Revert:
2007-06-18 David Daney <ddaney@avtrex.com
PR target/32313
* config/mips/mips.c (mips_expand_call): Mark $gp as used by
local function call.
From-SVN: r125824
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 9 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 915643a1..191d347 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,15 @@ 2007-06-18 David Daney <ddaney@avtrex.com + Revert: + + 2007-06-18 David Daney <ddaney@avtrex.com + + PR target/32313 + * config/mips/mips.c (mips_expand_call): Mark $gp as used by + local function call. + +2007-06-18 David Daney <ddaney@avtrex.com + PR target/32313 * config/mips/mips.c (mips_expand_call): Mark $gp as used by local function call. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 287c531..a132f0f 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3562,13 +3562,8 @@ mips_expand_call (rtx result, rtx addr, rtx args_size, rtx aux, int sibcall_p) insn = emit_call_insn (pattern); - /* Lazy-binding stubs require $gp to be valid on entry. So does the - case of calling a local function with TARGET_ABICALLS and - -mno-shared (a.k.a. TARGET_ABSOLUTE_ABICALLS). */ - if (mips_ok_for_lazy_binding_p (orig_addr) - || (TARGET_ABSOLUTE_ABICALLS - && (GET_CODE (orig_addr) == SYMBOL_REF) - && targetm.binds_local_p (SYMBOL_REF_DECL (orig_addr)))) + /* Lazy-binding stubs require $gp to be valid on entry. */ + if (mips_ok_for_lazy_binding_p (orig_addr)) use_reg (&CALL_INSN_FUNCTION_USAGE (insn), pic_offset_table_rtx); } |