This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Target-ize FUNCTION_{END_PROLOGUE,BEGIN_EPILOGUE}
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: Target-ize FUNCTION_{END_PROLOGUE,BEGIN_EPILOGUE}
- From: Richard Henderson <rth at redhat dot com>
- Date: Sun, 8 Jul 2001 12:41:42 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010708145526.A23950@daikokuya.demon.co.uk>
On Sun, Jul 08, 2001 at 02:55:27PM +0100, Neil Booth wrote:
> There is no documentation update since these are not documented, and I
> am not qualified to document them.
Well, you can document when they're called -- at the end and
beginning of the prologue and epilogue respectively. Cross
reference that to the prologue and epilogue md patterns.
> * final.c (no_asm_to_stream): New.
> (final_scan_insn): Use target structures for prologue ends
> and epilogue starts.
> * output.h (no_asm_to_stream): New.
> * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
> TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
> (TARGET_ASM_OUT): Update.
> * target.h (struct gcc_target): New members function_end_prologue
> and function_begin_epilogue.
> config:
> * 1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
> * alpha/alpha-protos.h (output_end_prologue): Delete.
> * alpha/alpha.c (output_end_prologue): Rename to
> alpha_output_function_end_prologue. Use in target struct
> and make static.
> * alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
> * ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
> * ia64/ia64.c (ia64_output_end_prologue): Rename to
> ia64_output_function_end_prologue. Use in target struct
> and make static.
> (ia64_function_prologue, ia64_funciton_epilogue): Rename
> mistyped prototypes.
> * ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
> * m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue): Delete.
> * m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
> an use in target struct, make static.
> * ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE): Delete.
Ok.
r~