Commit 4cfe2e75 by Eric Botcazou Committed by Eric Botcazou

function.c (assign_stack_local_1): Restrict sanity check on frame size overflow…

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
parent 86b5dedb
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> 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define. * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
......
...@@ -479,7 +479,8 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align, ...@@ -479,7 +479,8 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align,
function->x_stack_slot_list function->x_stack_slot_list
= gen_rtx_EXPR_LIST (VOIDmode, x, 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 if ((FRAME_GROWS_DOWNWARD
? (unsigned HOST_WIDE_INT) -function->x_frame_offset ? (unsigned HOST_WIDE_INT) -function->x_frame_offset
: (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, ...@@ -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. */ /* Avoid duplicate error messages as much as possible. */
function->x_frame_offset = 0; function->x_frame_offset = 0;
} }
#endif
return x; return x;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment