This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] First attempt@unwind epilogue support for s390{,x}
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: jakub at redhat dot com
- Cc: rth at redhat dot com (Richard Henderson), Andreas dot Krebbel at de dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Jun 2009 20:02:00 +0200 (CEST)
- Subject: Re: [PATCH] First attempt@unwind epilogue support for s390{,x}
Jakub Jelink wrote:
> On Wed, Jun 03, 2009 at 07:42:13PM +0200, Ulrich Weigand wrote:
> > This should be exactly the same state as during a leaf function
> > that does not allocate any stack, so I'm not sure why this needs
> > to be treated in a special way ...
>
> Ok, I'm withdrawing the save_gprs changes (and the change to special case
> %r15 for .cfi_restore). For global regs I'd say .cfi_restore does no harm,
> but could be omitted, but we shouldn't be having .cfi_offset in the prologue
> for them either.
Hmm, good point. The function might change the value in the global
register; that change will persist once the function returns, it will not
be reverted to the value the register had before the function call; and
therefore the .cfi_offset seems to be actually wrong ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com