Jeff Law wrote:
> On 06/15/11 21:46, Hans-Peter Nilsson wrote:
> >     PR rtl-optimization/48542
> >     * reload.c (find_equiv_reg): Stop looking when finding a
> >     setjmp-type call.
> >     * reload1.c (reload_as_needed): Invalidate all reload
> >     registers when crossing a setjmp-type call.
> OK.
> Jeff

I see that this went already in, but I'm wondering why this
change should be necessary.  As far as register use is
concerned, setjmp ought to behave just like a regular function:
if a register is call-clobbered, reload will not attempt to
use it across a function call (*any* function call) anyway;
but if the register is call-saved, setjmp really ought to
restore the old value, *both* times it returns, and so reuse
ought to be allowed ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  ulrich.weig...@de.ibm.com

Reply via email to