This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] h8300.c: Clean up code.


Hi,

Attached is a patch to rearrange code in config/h8300/h8300.c.

Here is a description on each change.

1) There is a comment typo, where "H8/300" shuold be "H8/300H".

2) The new functions, round_frame_size, compute_saved_regs, push, and
   pop, remove redundancy found in function_prologue and
   function_epilogue.

3) push_order and pop_order are removed as their contents are deeply
   embedded in the code already.  As an alternative, I modified some
   comments.

The reason for this patch is that it makes it easy for me to convert
FUNCTION_EPILOGUE to "epilogue" in RTL for efficient function returns.
I am testing the RTL version of epilogue in my personal tree.  So far
things are going OK.

OK to apply?

Thanks,

Kazu Hirata

gzip compressed data, deflated, last modified: Thu Sep 21 06:44:48 2000, max compression, os: Unix

2000-09-21  Kazu Hirata  <kazu@hxi.com>

	* h8300.c: Fix a comment typo.
	(round_frame_size): New.
	(compute_saved_regs): Likewise.
	(push): Likewise.
	(pop): Likewise.
	(push_order): Remove.
	(pop_order): Likewise.
	(function_prologue): Rearrange code for readability.
	(function_epilogue): Likewise.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]