]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/34762 (internal compiler error: in delete_output_reload, at reload1...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 13 Jan 2008 16:53:02 +0000 (16:53 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 13 Jan 2008 16:53:02 +0000 (16:53 +0000)
PR middle-end/34762
* reload.c (find_reloads_toplev): Use rtx_equal_p to compare x and mem.

From-SVN: r131508

gcc/ChangeLog
gcc/reload.c

index a0d2cc3b697e21afa20ad47bbdb48f05be4809a2..6bfe9faa1cc9e7a9646c329b72bef645f2b34509 100644 (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.
index 5fb0f09e0f95679aaf8b34407a7778e13b28e4c8..c4130bdbde3f16a7c55da8a836138d079eec675f 100644 (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;