This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: abort in eliminate_regs compiling glob.c from glibc
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: abort in eliminate_regs compiling glob.c from glibc
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Tue, 27 Mar 2001 19:36:44 +1000 (EST)
- cc: gcc-patches at gcc dot gnu dot org
Another forgotten patch. Actually, one of yours. :) At least it was a
correction you made to one of Dave Anglin's patches.
http://gcc.gnu.org/ml/gcc-patches/2000-11/msg00706.html
Alan
--
Linuxcare
--- gcc-3_0-20010316/gcc/reload1.c Fri Mar 16 09:22:08 2001
+++ gcc_new/gcc/reload1.c Sat Mar 17 14:05:16 2001
@@ -2588,6 +2588,12 @@
return x;
case USE:
+ /* Handle insn_list USE that a call to a pure functions 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: