Re: %dil in x86 inline asm

2005-05-25 Thread Ian Lance Taylor
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

Re: %dil in x86 inline asm

2005-05-25 Thread Florian Weimer
* 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

%dil in x86 inline asm

2005-05-25 Thread Phil Endecott
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