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]

[committed] Fix "error: unable to find a register to spill in class 'R1_REGS'" reloading indirect call operand


The 64-bit register indirect call does not use register %r1.  So, %r1 shouldn't be clobbered in
the call pattern.  Normally, this doesn't matter as register %r1 is call clobbered.  However,
reload can fail when the register used for the indirect call needs to be reloaded from a static
location.  In this case, register %r1 is needed for the reload and the clobber blocks the reload.

Tested on hppa64-hp-hpux11.11 and hppa2.0w-hp-hpux11.11.  Committed to trunk, gcc-5
and gcc-4.9.

Dave
--
John David Anglin	dave.anglin@bell.net


Attachment: pa.md.d.txt
Description: Text document


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