Commit e140e27d by Richard Henderson Committed by Richard Henderson

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
parent 968a7562
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> 2004-07-27 Zack Weinberg <zack@codesourcery.com>
* libgcc2.c: Change all conditionals testing * libgcc2.c: Change all conditionals testing
......
...@@ -453,11 +453,13 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align, ...@@ -453,11 +453,13 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align,
use logical operations which are unambiguous. */ use logical operations which are unambiguous. */
#ifdef FRAME_GROWS_DOWNWARD #ifdef FRAME_GROWS_DOWNWARD
function->x_frame_offset 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); + frame_phase);
#else #else
function->x_frame_offset 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); + frame_phase);
#endif #endif
} }
......
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