------- Comment #3 from hjl dot tools at gmail dot com  2008-07-07 19:00 -------
The testcase is invalid. Please try

#define DECL_CMPSWP(S,T,X) \
static inline T machine_cmpswp##S (volatile void *ptr, T value, T comparand ) \
{ \
    T result; \
              \
    __asm__ __volatile__("lock\ncmpxchg" X " %2,%1" \
                         : "=a"(result), "=m"(*(T *)ptr) \
                         : "q"(value), "m" (*(T *)ptr), "0"(comparand)); \
    return result; \
}


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35396

Reply via email to