[parisc-linux] input constraints in atomic.h too loose ?
Carlos O'Donell
carlos at systemhalted.org
Sun Feb 11 10:47:32 MST 2007
On 2/11/07, John David Anglin <dave at hiauly1.hia.nrc.ca> wrote:
> > > /tmp/ccvCRbqg.s:43: Error: bad expression
>
> > What *is* the bad assembly here. Please don't make me count assembly
> > line numbers, just point me at the bad asm.
>
> The problem is the "m" constraint is too broad for ldw and stw insns.
> These instructions don't accept any memory address. As suggested,
> the "o" constraint should work. Alternatively, the address of the
> variables could be forced to a register.
There was a reason I didn't force them to a register, but I can't
remember. At this very moment I don't see why they couldn't have been
"=r".
Mike,
Did you want to test "=r" and change the two stw's to copy's?
c.
More information about the parisc-linux
mailing list