This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: abort in eliminate_regs compiling glob.c from glibc


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:




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]