1
1

Merge pull request #6453 from nysal/xlc_asm_warning_fix

opal/asm: Fix a compiler warning on POWER arch
Этот коммит содержится в:
Nysal Jan K A 2019-03-05 15:18:58 +00:00 коммит произвёл GitHub
родитель 4e71f415be da6d038d13
Коммит a4b2f2b914
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -98,27 +98,7 @@ void opal_atomic_isync(void)
ISYNC();
}
#elif OPAL_XLC_INLINE_ASSEMBLY /* end OPAL_GCC_INLINE_ASSEMBLY */
/* Yeah, I don't know who thought this was a reasonable syntax for
* inline assembly. Do these because they are used so often and they
* are fairly simple (aka: there is a tech pub on IBM's web site
* containing the right hex for the instructions).
*/
#undef OPAL_HAVE_INLINE_ATOMIC_MEM_BARRIER
#define OPAL_HAVE_INLINE_ATOMIC_MEM_BARRIER 0
#pragma mc_func opal_atomic_mb { "7c0004ac" } /* sync */
#pragma reg_killed_by opal_atomic_mb /* none */
#pragma mc_func opal_atomic_rmb { "7c2004ac" } /* lwsync */
#pragma reg_killed_by opal_atomic_rmb /* none */
#pragma mc_func opal_atomic_wmb { "7c2004ac" } /* lwsync */
#pragma reg_killed_by opal_atomic_wmb /* none */
#endif
#endif /* end OPAL_GCC_INLINE_ASSEMBLY */
/**********************************************************************
*
@ -296,7 +276,7 @@ static inline bool opal_atomic_compare_exchange_strong_64 (opal_atomic_int64_t *
#define opal_atomic_sc_64(addr, value, ret) \
do { \
opal_atomic_int64_t *_addr = (addr); \
int64_t _foo, _newval = (int64_t) value; \
int64_t _newval = (int64_t) value; \
int32_t _ret; \
\
__asm__ __volatile__ (" stdcx. %2, 0, %1 \n\t" \