This is the mail archive of the 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.


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

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

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?


Kazu Hirata

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

2000-09-21  Kazu Hirata  <>

	* 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]