hppa: Fix reload error with atomic code [BZ #18787]
commit74bc0c3a16e3c8f138e29a284e84d16474b65a8e
authorJohn David Anglin <dave.anglin@bell.net>
Fri, 7 Aug 2015 17:37:35 +0000 (7 13:37 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 8 Aug 2015 05:11:44 +0000 (8 01:11 -0400)
tree6f8d981aadf1ddc8d851df12e67dc4bc8cda4afc
parent5d5de49c3ccd69f65b801f1ca490a0112d1cbd7d
hppa: Fix reload error with atomic code [BZ #18787]

As noted in the bug, the asm operands need to be copied to register
variables to avoid operand reloads in the principal asm of the macro.
See the arm implementation for reference.  Otherwise we get:
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:68:6: error:
can't find a register in class 'R1_REGS' while reloading 'asm'

Build tested on trunk with gcc-4.8.  Similar patch has been tested
with 2.19 on Debian hppa-unknown-linux-gnu.
ChangeLog
NEWS
sysdeps/unix/sysv/linux/hppa/bits/atomic.h