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]
Other format: [Raw text]

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


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