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]

Re: Target-ize FUNCTION_{END_PROLOGUE,BEGIN_EPILOGUE}


On Sun, Jul 08, 2001 at 09:29:56PM +0100, Neil Booth wrote:
> ... in particular, to me the natural question is why do we need these
> two variants?  Why not just put TARGET_ASM_FUNCTION_END_PROLOGUE stuff
> at the end of TARGET_ASM_FUNCTION_PROLOGUE, and similarly for the begin
> epilogue version?

FUNCTION_PROLOGUE emits the _entire_ prologue directly as assembler
text.  FUNCTION_END_PROLOGUE is for when the prologue instructions
are being emitted as rtl via gen_prologue, but you've got some extra
assembler directives that want to be emitted.

In the case of both alpha and ia64, the extra directives are related
to the native (as opposed to dwarf2) exception handling.  I have no
idea what the m88k is doing.


r~


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