re PR middle-end/34762 (internal compiler error: in delete_output_reload, at reload1.c:7958)

PR middle-end/34762
	* reload.c (find_reloads_toplev): Use rtx_equal_p to compare x and mem.

From-SVN: r131508
This commit is contained in:
John David Anglin
2008-01-13 16:53:02 +00:00
committed by John David Anglin
parent fa920f03fc
commit f148351f10
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2008-01-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/34762
* reload.c (find_reloads_toplev): Use rtx_equal_p to compare x and mem.
2008-01-11 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (override_options): Set flag_shlib.

View File

@@ -4574,7 +4574,7 @@ find_reloads_toplev (rtx x, int opnum, enum reload_type type,
x = mem;
i = find_reloads_address (GET_MODE (x), &x, XEXP (x, 0), &XEXP (x, 0),
opnum, type, ind_levels, insn);
if (x != mem)
if (!rtx_equal_p (x, mem))
push_reg_equiv_alt_mem (regno, x);
if (address_reloaded)
*address_reloaded = i;