]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ia64.c (ia64_emit_probe_stack_range): Adjust calls to plus_constant.
authorTristan Gingold <gingold@adacore.com>
Tue, 15 May 2012 07:41:00 +0000 (07:41 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 15 May 2012 07:41:00 +0000 (07:41 +0000)
* config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
plus_constant.

From-SVN: r187499

gcc/ChangeLog
gcc/config/ia64/ia64.c

index e2f6509e0df7510cfd94eff67b8fc11ec0434fdd..608a68a2fb5f6083bbe7d8fbaffb7c19c1441a15 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-15  Tristan Gingold  <gingold@adacore.com>
+
+       * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
+       plus_constant.
+
 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gimplify.c (gimplify_init_constructor): Do a block move for very
index ccffa37fd87ffe9c9130578e3a904dcc8b23f5e1..8fb5b40da73b745d39b295c6844b4314fe92effc 100644 (file)
@@ -3276,7 +3276,7 @@ ia64_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size, int sol)
         size is at least 4096 - (96 + 2) * 8 = 3312 bytes, which is enough.
         Also compute the address of the last probe for the memory stack
         (which grows towards lower addresses).  */
-      emit_insn (gen_rtx_SET (VOIDmode, r3, plus_constant (r3, 4095)));
+      emit_insn (gen_rtx_SET (VOIDmode, r3, plus_constant (Pmode, r3, 4095)));
       emit_insn (gen_rtx_SET (VOIDmode, r2,
                              gen_rtx_PLUS (Pmode, stack_pointer_rtx, r2)));
 
@@ -3328,12 +3328,12 @@ ia64_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size, int sol)
       for (i = 2 * PROBE_INTERVAL; i < size; i += PROBE_INTERVAL)
        {
          emit_insn (gen_rtx_SET (VOIDmode, r2,
-                                 plus_constant (r2, -PROBE_INTERVAL)));
+                                 plus_constant (Pmode, r2, -PROBE_INTERVAL)));
          emit_stack_probe (r2);
        }
 
       emit_insn (gen_rtx_SET (VOIDmode, r2,
-                             plus_constant (r2,
+                             plus_constant (Pmode, r2,
                                             (i - PROBE_INTERVAL) - size)));
       emit_stack_probe (r2);
     }
@@ -3394,7 +3394,8 @@ ia64_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size, int sol)
       if (size != rounded_size)
        {
          emit_insn (gen_rtx_SET (VOIDmode, r2,
-                                 plus_constant (r2, rounded_size - size)));
+                                 plus_constant (Pmode, r2,
+                                                rounded_size - size)));
          emit_stack_probe (r2);
        }
     }