[parisc-linux] Re: Found the r19 problem!

Carlos O'Donell carlos@baldric.uwo.ca
Sun, 21 Sep 2003 15:16:53 -0400


On Sun, Sep 21, 2003 at 03:12:39PM -0400, John David Anglin wrote:
> Well that's why the restore is deleted.  So, the clobber must go
> and r19 must be preserved across the asm(...).  As I said, you can't
> clobber r19 when generating pic code.  It's treated as fixed register,
> so clobbering it can lead to undefined behavior.
> 
> If the syscall used r19, it could include a use of r19 in the asm.
> This would ensure the restore occurs before the syscall.

I'm going to stop writing r19 to the stack and tell gcc I'm using r4,
and then do a copy/copy to get r19 back.

c.