From: Richard Henderson Date: Tue, 27 Jul 2004 21:50:56 +0000 (-0700) Subject: function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT before rounding. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e140e27d53bf2a52576a18e9c97694c38a09f55b;p=gcc.git function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT before rounding. * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT before rounding. From-SVN: r85233 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d180c89b20..9f760a2b16f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-27 Richard Henderson + + * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT + before rounding. + 2004-07-27 Zack Weinberg * libgcc2.c: Change all conditionals testing diff --git a/gcc/function.c b/gcc/function.c index 7624342be16..699a009ee03 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -453,11 +453,13 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align, use logical operations which are unambiguous. */ #ifdef FRAME_GROWS_DOWNWARD function->x_frame_offset - = (FLOOR_ROUND (function->x_frame_offset - frame_phase, alignment) + = (FLOOR_ROUND (function->x_frame_offset - frame_phase, + (unsigned HOST_WIDE_INT) alignment) + frame_phase); #else function->x_frame_offset - = (CEIL_ROUND (function->x_frame_offset - frame_phase, alignment) + = (CEIL_ROUND (function->x_frame_offset - frame_phase, + (unsigned HOST_WIDE_INT) alignment) + frame_phase); #endif }