problem with call clobbered regs

Jim Wilson wilson@specifixinc.com
Tue Feb 17 19:34:00 GMT 2004


Daniel Bayer wrote:
> It seems that the plus-rtx in both insns is a pointer to the same
> memory. I inserted a copy_rtx() in insert_restore() and insert_save()
> and now it works. The patch is attached.

Yes, this is invalid rtl sharing, and we need copy_rtx calls to fix it. 
  Since adjust_address calls copy_rtx already, I suggest the following 
patch.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.caller-save.copy-rtx
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040217/afae2da7/attachment.ksh>


More information about the Gcc mailing list