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: > > Did you want to test "=r" and change the two stw's to copy's? > > That won't work. If these are global variables, you need the > *address* of the variables in registers and to use stw %rX,0(%Y) > instead of stw %rX,%Y. They are not global. They are local variables which are the rvalue in an assignment to something else. e.g. foo = atomic_compare_and_exchange_val_acquire (...); foo = ({ ... ; lws_ret; }) c.