function.c (assign_stack_local_1): Restrict sanity check on frame size overflow to...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 12 Nov 2005 22:58:48 +0000 (22:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 12 Nov 2005 22:58:48 +0000 (22:58 +0000)
* function.c (assign_stack_local_1): Restrict sanity check
on frame size overflow to 32-bit and above platforms.

From-SVN: r106840

gcc/ChangeLog
gcc/function.c

index b29bc2a1de735f02b6a434d62d4a977cdfe51fa1..30c52141b4f31b0308b0a85e66b900cf764b809d 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * function.c (assign_stack_local_1): Restrict sanity check
+       on frame size overflow to 32-bit and above platforms.
+
 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
index 963ad4f1e94d7d72ebf5cd79a6251b4b738b4c7f..dbf9df74ade0400397dec99cdf87b571b2428b85 100644 (file)
@@ -479,7 +479,8 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align,
   function->x_stack_slot_list
     = gen_rtx_EXPR_LIST (VOIDmode, x, function->x_stack_slot_list);
 
-  /* Try to detect frame size overflows.  */
+  /* Try to detect frame size overflows on native platforms.  */
+#if BITS_PER_WORD >= 32
   if ((FRAME_GROWS_DOWNWARD
        ? (unsigned HOST_WIDE_INT) -function->x_frame_offset
        : (unsigned HOST_WIDE_INT) function->x_frame_offset)
@@ -491,6 +492,7 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align,
       /* Avoid duplicate error messages as much as possible.  */
       function->x_frame_offset = 0;
     }
+#endif
 
   return x;
 }