From 4cfe2e7514c65b59a0b5dc3f32e63b5dd7a8c26d Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 12 Nov 2005 22:58:48 +0000 Subject: function.c (assign_stack_local_1): Restrict sanity check on frame size overflow to 32-bit and above platforms. * function.c (assign_stack_local_1): Restrict sanity check on frame size overflow to 32-bit and above platforms. From-SVN: r106840 --- gcc/function.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 963ad4f..dbf9df7 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -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; } -- cgit v1.1