From: Richard Kenner Date: Wed, 14 Oct 1992 11:19:23 +0000 (-0400) Subject: (call, call_value): Don't use call_operand, since checking for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eee4bff6c2e7c18f5dc93387ad83d21370074f81;p=gcc.git (call, call_value): Don't use call_operand, since checking for recursive calls at this point is not safe. From-SVN: r2458 --- diff --git a/gcc/config/a29k/a29k.md b/gcc/config/a29k/a29k.md index c99fa01dce1..316baa48226 100644 --- a/gcc/config/a29k/a29k.md +++ b/gcc/config/a29k/a29k.md @@ -150,7 +150,10 @@ if (GET_CODE (operands[0]) != MEM) abort (); - if (! call_operand (XEXP (operands[0], 0), SImode)) + /* We tell here whether this is a recursive call, since this insn may + later be inlined into another function. */ + if (! TARGET_SMALL_MEMORY + && GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF) operands[0] = gen_rtx (MEM, SImode, force_reg (Pmode, XEXP (operands[0], 0))); @@ -169,7 +172,10 @@ if (GET_CODE (operands[1]) != MEM) abort (); - if (! call_operand (XEXP (operands[1], 0), SImode)) + /* We tell here whether this is a recursive call, since this insn may + later be inlined into another function. */ + if (! TARGET_SMALL_MEMORY + && GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF) operands[1] = gen_rtx (MEM, SImode, force_reg (Pmode, XEXP (operands[1], 0)));