From: Kazu Hirata Date: Thu, 24 Oct 2002 14:08:23 +0000 (+0000) Subject: h8300.c (round_frame_size): Replace 8 with BITS_PER_UNIT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=489eda6518baecf4c6b9c7a2e2283cd2a361791b;p=gcc.git h8300.c (round_frame_size): Replace 8 with BITS_PER_UNIT. * config/h8300/h8300.c (round_frame_size): Replace 8 with BITS_PER_UNIT. From-SVN: r58493 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59b54571901..f972020c055 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-24 Kazu Hirata + + * config/h8300/h8300.c (round_frame_size): Replace 8 with + BITS_PER_UNIT. + 2002-10-24 Kazu Hirata * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 0f276dee0af..ee43ab6bfd0 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -431,7 +431,8 @@ static int round_frame_size (size) int size; { - return (size + STACK_BOUNDARY / 8 - 1) & -STACK_BOUNDARY / 8; + return ((size + STACK_BOUNDARY / BITS_PER_UNIT - 1) + & -STACK_BOUNDARY / BITS_PER_UNIT); } /* Compute which registers to push/pop.