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 16:58:01 +0000 (16:58 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 14 Sep 2013 16:58:01 +0000 (16:58 +0000)
PR target/58382
* config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
calls to word_mode.

From-SVN: r202594

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

index 63821aca03f6cd7d073c6b0eb4a2ce4166f915e1..1db5b273c5c84a2c9192349082e0710be3e65c2f 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-14  Iain Sandoe  <iain@codesourcery.com>
 
        PR target/48094
index 74a99e36a01da98d6a864b70921ed60b19077377..b6f5410821427dea14d9cae4b70aba1d682dc6f0 100644 (file)
@@ -4035,7 +4035,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)
@@ -4328,7 +4329,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);
          }