Re: input constraints in atomic.h too loose ?
"Carlos O'Donell" <[email protected]>
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
On 2/11/07, John David Anglin <[email protected]> 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.