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
This commit is contained in:
Richard Henderson 2004-07-27 14:50:56 -07:00 committed by Richard Henderson
parent 968a7562a6
commit e140e27d53
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-07-27 Richard Henderson <rth@redhat.com>
* function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
before rounding.
2004-07-27 Zack Weinberg <zack@codesourcery.com>
* libgcc2.c: Change all conditionals testing

View file

@ -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
}