From: John David Anglin Date: Wed, 28 Mar 2001 00:25:25 +0000 (+0000) Subject: * reload1.c (eliminate_regs): Don't abort on MEM USEs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=055c77597b8913a078bc3ca7373edb0d00f19ba9;p=gcc.git * reload1.c (eliminate_regs): Don't abort on MEM USEs. From-SVN: r40887 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7aa2bdeccc6..131fa9bc0c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-03-28 John David Anglin + + * reload1.c (eliminate_regs): Don't abort on MEM USEs. + 2001-03-27 Kaveh R. Ghazi * Makefile.in (SYSTEM_H): Define. diff --git a/gcc/reload1.c b/gcc/reload1.c index bdcc7c517bd..6194b875244 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -2586,6 +2586,12 @@ eliminate_regs (x, mem_mode, insn) return x; case USE: + /* Handle insn_list USE that a call to a pure function may generate. */ + new = eliminate_regs (XEXP (x, 0), 0, insn); + if (new != XEXP (x, 0)) + return gen_rtx_USE (GET_MODE (x), new); + return x; + case CLOBBER: case ASM_OPERANDS: case SET: