qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH RFC] configure: fix clang failure for libatomic


From: Richard Henderson
Subject: Re: [Qemu-ppc] [PATCH RFC] configure: fix clang failure for libatomic
Date: Tue, 25 Apr 2017 11:41:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]