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:
parent
968a7562a6
commit
e140e27d53
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue