This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: abort in eliminate_regs compiling glob.c from glibc
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: abort in eliminate_regs compiling glob.c from glibc
- From: Richard Henderson <rth at redhat dot com>
- Date: Sat, 27 Jan 2001 12:12:46 -0800
- Cc: parisc-linux at thepuffingroup dot com, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <200011092357.SAA08600@hiauly1.hia.nrc.ca> <200011142140.QAA19580@hiauly1.hia.nrc.ca>
On Tue, Nov 14, 2000 at 04:40:52PM -0500, John David Anglin wrote:
> case USE:
> + /* Handle insn_list USE that a call to a pure functions ...
> + new = eliminate_regs (XEXP (x, 0), 0, insn);
> + if (GET_CODE (new) == MEM)
> + return XEXP (new, 0);
This is not correct. You want to return something that still
looks like a USE. Probably you want
new = eliminate_regs (XEXP (x, 0), 0, insn);
if (new != XEXP (x, 0))
return gen_rtx_USE (GET_MODE (x), new);
return x;
r~