]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/58382 (unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55)
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 14 Sep 2013 17:03:32 +0000 (17:03 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 14 Sep 2013 17:03:32 +0000 (17:03 +0000)
PR target/58382
* config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
calls to word_mode.

From-SVN: r202596

gcc/ChangeLog
gcc/config/pa/pa.c

index b9f8c33a983374e6d174f8cd9ba5c4e5da6c95b1..bb29a154553c4c36dd6765005470dfdd95238505 100644 (file)
@@ -1,3 +1,9 @@
+2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
+
+       PR target/58382
+       * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
+       calls to word_mode.
+
 2013-09-12  Terry Guo  <terry.guo@arm.com>
 
        Backport from mainline
index 1c5fe4d7b2d3cd979573c28e96c62313f77a4106..ae37d21a0bbe5f50b2bb463d17e6cea87136e278 100644 (file)
@@ -4003,7 +4003,8 @@ pa_expand_prologue (void)
              || (! TARGET_64BIT && df_regs_ever_live_p (i + 1)))
            {
              rtx addr, insn, reg;
-             addr = gen_rtx_MEM (DFmode, gen_rtx_POST_INC (DFmode, tmpreg));
+             addr = gen_rtx_MEM (DFmode,
+                                 gen_rtx_POST_INC (word_mode, tmpreg));
              reg = gen_rtx_REG (DFmode, i);
              insn = emit_move_insn (addr, reg);
              if (DO_FRAME_NOTES)
@@ -4293,7 +4294,8 @@ pa_expand_epilogue (void)
        if (df_regs_ever_live_p (i)
            || (! TARGET_64BIT && df_regs_ever_live_p (i + 1)))
          {
-           rtx src = gen_rtx_MEM (DFmode, gen_rtx_POST_INC (DFmode, tmpreg));
+           rtx src = gen_rtx_MEM (DFmode,
+                                  gen_rtx_POST_INC (word_mode, tmpreg));
            rtx dest = gen_rtx_REG (DFmode, i);
            emit_move_insn (dest, src);
          }