This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[MIPS 18/30] Kill bogus use_reg()
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Oct 2007 10:07:21 +0100
- Subject: [MIPS 18/30] Kill bogus use_reg()
- References: <87przc9wms.fsf@firetop.home>
mips_call_tls_get_addr wrongly claimed that the call used the
incoming value of $2, which would in principle confuse the df code.
Richard
gcc/
* config/mips/mips.c (mips_call_tls_get_addr): Don't claim that
the call uses the incoming value of $2.
Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c 2007-10-18 11:07:12.000000000 +0100
+++ gcc/config/mips/mips.c 2007-10-18 11:07:12.000000000 +0100
@@ -2421,7 +2421,6 @@ mips_call_tls_get_addr (rtx sym, enum mi
tga = gen_const_mem (Pmode, mips_tls_symbol);
insn = emit_call_insn (gen_call_value (v0, tga, const0_rtx, const0_rtx));
CONST_OR_PURE_CALL_P (insn) = 1;
- use_reg (&CALL_INSN_FUNCTION_USAGE (insn), v0);
use_reg (&CALL_INSN_FUNCTION_USAGE (insn), a0);
insn = get_insns ();