Test: Move pr116278 run test to dg/torture [NFC]
[official-gcc.git] / libatomic / config / arm / host-config.h
blobef16fad2a35ec9055e918849e69a1a0e23b62838
1 /* Avoiding the DMB (or kernel helper) can be a good thing. */
2 #define WANT_SPECIALCASE_RELAXED
4 /* Glibc, at least, uses acq_rel in its pthread mutex
5 implementation. If the user is asking for seq_cst,
6 this is insufficient. */
8 static inline void __attribute__((always_inline, artificial))
9 pre_seq_barrier(int model)
11 if (model == __ATOMIC_SEQ_CST)
12 __atomic_thread_fence (__ATOMIC_SEQ_CST);
15 static inline void __attribute__((always_inline, artificial))
16 post_seq_barrier(int model)
18 pre_seq_barrier(model);
21 #define pre_post_seq_barrier 1
23 #include_next <host-config.h>