From eee4bff6c2e7c18f5dc93387ad83d21370074f81 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 14 Oct 1992 07:19:23 -0400 Subject: [PATCH] (call, call_value): Don't use call_operand, since checking for recursive calls at this point is not safe. From-SVN: r2458 --- gcc/config/a29k/a29k.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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))); -- 2.30.2