From: kazu Date: Thu, 24 Oct 2002 21:58:21 +0000 (+0000) Subject: * config/h8300/h8300.c (initial_offset): Simplify by using X-Git-Tag: upstream/4.9.2~83725 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=581ca38a1df2e28fe252e57c458d7814a3326910;p=platform%2Fupstream%2Flinaro-gcc.git * config/h8300/h8300.c (initial_offset): Simplify by using round_frame_size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58507 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f4a062..38c2287 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-24 Kazu Hirata + + * config/h8300/h8300.c (initial_offset): Simplify by using + round_frame_size. + 2002-10-24 Marek Michalkiewicz * doc/install.texi (avr): Update required binutils version. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index ee43ab6..ea3cf56 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 */