diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2002-10-24 21:58:21 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-10-24 21:58:21 +0000 |
commit | 1a86c85041bea7b9e8122ff73c75f56f62e04310 (patch) | |
tree | 1f9c786dfbc2cdea4f19651b10a85ffb992d6c1e | |
parent | de7999baae8a6a93157010bc1486ea833219c1be (diff) | |
download | gcc-1a86c85041bea7b9e8122ff73c75f56f62e04310.tar.gz |
h8300.c (initial_offset): Simplify by using round_frame_size.
* config/h8300/h8300.c (initial_offset): Simplify by using
round_frame_size.
From-SVN: r58507
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f4a0625902..38c22877b58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-24 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300.c (initial_offset): Simplify by using + round_frame_size. + 2002-10-24 Marek Michalkiewicz <marekm@amelek.gda.pl> * doc/install.texi (avr): Update required binutils version. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index ee43ab6bfd0..ea3cf56bdf9 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -1630,8 +1630,7 @@ initial_offset (from, to) /* See the comments for get_frame_size. We need to round it up to STACK_BOUNDARY. */ - offset += ((get_frame_size () + STACK_BOUNDARY / BITS_PER_UNIT - 1) - & ~(STACK_BOUNDARY / BITS_PER_UNIT - 1)); + offset += round_frame_size (get_frame_size ()); if (from == ARG_POINTER_REGNUM && to == STACK_POINTER_REGNUM) offset += UNITS_PER_WORD; /* Skip saved PC */ |