https://bugs.linaro.org/show_bug.cgi?id=2782

Maxim Uvarov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |CONFIRMED

--- Comment #1 from Maxim Uvarov <[email protected]> ---
it is used here:

./platform/linux-generic/odp_timer.c

if ODP_ATOMIC_U128 is not set.

which is defined here:
platform/linux-generic/include/odp_atomic_internal.h

/* Check if target and compiler supports 128-bit scalars and corresponding
 * exchange and CAS operations */
/* GCC/clang on x86-64 needs -mcx16 compiler option */
#if defined __SIZEOF_INT128__ && defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16

#if defined(__clang__)

#if ((__clang_major__ * 100 +  __clang_minor__) >= 306)
#define ODP_ATOMIC_U128
#endif

#else /* gcc */
#define ODP_ATOMIC_U128
#endif
#endif


So only way to test it is to use some old compiler or platform where
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 is not supported (if they exist).


I think for now we need to close this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to