1
1

opal/asm: fix compilation of 128-bit compare-exchange with gcc7

This commit removes eax and edx from the clobber list. Older versions
of gcc handled these ok but gcc 7 does not. They are not required as
eax and edx are specified in output constraints.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
Nathan Hjelm 2017-12-05 14:45:53 -07:00 коммит произвёл Nathan Hjelm
родитель 641bdc4ab7
Коммит 8e0e184bc9

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

@ -134,7 +134,7 @@ static inline bool opal_atomic_compare_exchange_strong_128 (volatile opal_int128
"sete %0 \n\t"
: "=qm" (ret), "+a" (((int64_t *)oldval)[0]), "+d" (((int64_t *)oldval)[1])
: "S" (addr), "b" (((int64_t *)&newval)[0]), "c" (((int64_t *)&newval)[1])
: "memory", "cc", "eax", "edx");
: "memory", "cc");
return (bool) ret;
}