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
This commit is contained in:
Kazu Hirata 2002-10-24 21:58:21 +00:00 committed by Kazu Hirata
parent de7999baae
commit 1a86c85041
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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 */