-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/14/11 10:16, Ulrich Weigand wrote:
> 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 ...
Good point.

Perhaps the mmix guys can chime in...

jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOJLblAAoJEBRtltQi2kC7MooH/jtwOEUwgcQIcpwARVrw53z9
geVKsQopLPkAx8WAPNxxJqwpmD61laQN9ZPPWE2E4SvXiGrnp9uBZYliG64/AC/G
lmUPwjYJHICHzVfhewvS1nX0u93de9U0q8hLSqignJCA/FOjxwzr4BXe8rd0089Y
xf84bwaIECb1r0gaG/W5MQodzA0OwOHuRj3YLDd1EZYb4TZQf2XCsNVe1eDmDj4C
ddhCx187nITOZT1S1CvohI9aUenZxyt+qDEm7VmjZqI62lZqphiN2+caaVjzwlV1
TaVk6Beg+hdT0lqL92/7vUvcEZanzrdpWa1I22oXlTAK/01zVENZ6uOS8oi4s+A=
=BYni
-----END PGP SIGNATURE-----

Reply via email to