On 04/25/2017 10:35 AM, Nikunj A Dadhania wrote:
if compile_prog "" "" ; then
atomic128=yes
+ elif compile_prog "" "-latomic" ; then
+ atomic128=yes
+ lib_atomic="-latomic"
fi
This is a problem, because I think you'll find that gcc now advertises
CONFIG_ATOMIC128 for *all* hosts.
This is because by definition, libatomic supplies fallback routines for types
of arbitrary size. However, the fallback routines use locking, not actual
atomic operations. So the configure test is no longer testing what we intended.
r~