Phil Endecott <[EMAIL PROTECTED]> writes:
> I'm having trouble compiling code that uses the following macro from
> the Apache Portable Runtime:
>
> #define apr_atomic_cas(mem,with,cmp) \
> ({ apr_atomic_t prev; \
> asm volatile ("lock; cmpxchgl %1, %2" \
> : "=a" (prev
* Phil Endecott:
> I've found bug 10153 and its duplicates which seem to be describing
> essentially the same thing, but say that the input is invalid because it
> uses "r" rather than "q". I don't know enough about x86 to understand
> this; presumably only certain registers can be used with t
Dear GCC experts,
I'm having trouble compiling code that uses the following macro from the
Apache Portable Runtime:
#define apr_atomic_cas(mem,with,cmp) \
({ apr_atomic_t prev; \
asm volatile ("lock; cmpxchgl %1, %2" \
: "=a" (prev) \
: "r" (wit