h8300.c (round_frame_size): Replace 8 with BITS_PER_UNIT.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 24 Oct 2002 14:08:23 +0000 (14:08 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 24 Oct 2002 14:08:23 +0000 (14:08 +0000)
* config/h8300/h8300.c (round_frame_size): Replace 8 with
BITS_PER_UNIT.

From-SVN: r58493

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 59b5457190123b0b0b8241bc77ecebb9803007f7..f972020c055910a600e8b31e63937c9e74e0b537 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c (round_frame_size): Replace 8 with
+       BITS_PER_UNIT.
+
 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
index 0f276dee0af69e296bd57735949a56f50c71e775..ee43ab6bfd0dbce203fb07a5d88edddb9db17b4e 100644 (file)
@@ -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.