This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Modifying prolouge function in gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: SandeepThorat <sathorat2003 at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 08 Jun 2007 13:59:26 -0700
- Subject: Re: Modifying prolouge function in gcc
- References: <11031793.post@talk.nabble.com>
SandeepThorat <sathorat2003@yahoo.com> writes:
> i want to make some modification to prolouge(& epilouge) function of
> gcc compiler. I m using version 4.1.0.
>
> Can anybody tel me out- which file contain these functions, How to make
> changes & how to recompile it to take effect.
For most targets the prologue is generated by the expander named
"prologue" in the config/CPU/CPU.md file. Similarly for the epilogue.
You also need to consider whether the config/CPU/CPU.c file defines
TARGET_ASM_FUNCTION_PROLOGUE and TARGET_ASM_FUNCTION_EPILOGUE.
Ian