Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information