From 9fb798d76ce4e7682e0aa1846275e8fb6f64f8cc Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 11 Mar 2006 14:52:57 +0000 Subject: function.h (frame_offset_overflow): Declare. * function.h (frame_offset_overflow): Declare. * function.c (frame_offset_overflow): New function. (assign_stack_local_1): Call it to detect that the offset overflows. * cfgexpand.c (alloc_stack_frame_space): Likewise. From-SVN: r111964 --- gcc/cfgexpand.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/cfgexpand.c') diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 65ebdb7..75d8e9d 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -192,6 +192,9 @@ alloc_stack_frame_space (HOST_WIDE_INT size, HOST_WIDE_INT align) } frame_offset = new_frame_offset; + if (frame_offset_overflow (frame_offset, cfun->decl)) + frame_offset = offset = 0; + return offset; } -- cgit v1.1