Re: [PATCH] parisc: fix out-of-register compiler error in ldcw inline assembler function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dave,

On 12/14/2014 04:49 PM, John David Anglin wrote:
On 21-Oct-14, at 3:46 PM, Helge Deller wrote:
Sometimes we face this compiler error:

arch/parisc/include/asm/ldcw.h:39:2: error: can't find a register in class 'R1_REGS' while reloading 'asm'
    __asm__ __volatile__(__LDCW " 0(%2),%0"...
    note: in expansion of macro '__ldcw'
    error: 'asm' operand has impossible constraints



Helge, could you test the attached patch.  Updated comment in change explains the "memory"
clobber.  It's been lightly tested.

Your patch seems to do the right thing, and it's nicer.
I didn't faced any compiler issues with it, but still want to test it some more, but I think that's the best approach.
Do you mind sending a full patch to the list ?

Thanks,
Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux