This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300.c: Simplify initial_offset.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Oct 2002 17:59:16 -0400 (EDT)
- Subject: [patch] h8300.c: Simplify initial_offset.
Hi,
Attached is a patch to simplify initial_offset.
Tested on h8300 port. Committed.
Kazu Hirata
2002-10-24 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (initial_offset): Simplify by using
round_frame_size.
Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.150
diff -u -r1.150 h8300.c
--- h8300.c 24 Oct 2002 14:08:23 -0000 1.150
+++ h8300.c 24 Oct 2002 21:54:07 -0000
@@ -1630,8 +1630,7 @@
/* 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 */