diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-10-22 10:58:41 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-11-21 17:38:57 +0100 |
commit | 392a4d5b9a1860aae82429d09321dac302d70396 (patch) | |
tree | d6fd58c07cec85254648c55168cca6daadc65c84 /hw/misc | |
parent | 7839ff593be03a7de3c6760e0b50c565ea751d36 (diff) | |
download | qemu-392a4d5b9a1860aae82429d09321dac302d70396.tar.gz |
atomic.h: Fix build with clang
clang defines __ATOMIC_SEQ_CST but its implementation of the
__atomic_exchange() builtin differs from that of gcc. Move the
__clang__ branch of the ifdef ladder to the top and fix its
implementation (there is no such builtin as __sync_exchange),
so we can compile with clang again.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc')
0 files changed, 0 insertions, 0 deletions