Skip to content

Commit d797a87

Browse files
committed
Move code to new PR
1 parent af8e774 commit d797a87

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_atomic_clang.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@
1414
#ifndef SANITIZER_ATOMIC_CLANG_H
1515
#define SANITIZER_ATOMIC_CLANG_H
1616

17-
// Helper to suppress warnings related to 8-byte atomic accesses when the target
18-
// is 32-bit AIX (where such accesses use libatomic).
19-
#if defined(_AIX) && !defined(__powerpc64__) && defined(__clang__)
20-
# define SANITIZER_IGNORE_ATOMIC_ALIGNMENT_BEGIN \
21-
_Pragma("clang diagnostic push") \
22-
_Pragma("clang diagnostic ignored \"-Watomic-alignment\"")
23-
# define SANITIZER_IGNORE_ATOMIC_ALIGNMENT_END _Pragma("clang diagnostic pop")
24-
#else
25-
# define SANITIZER_IGNORE_ATOMIC_ALIGNMENT_BEGIN
26-
# define SANITIZER_IGNORE_ATOMIC_ALIGNMENT_END
27-
#endif
28-
2917
namespace __sanitizer {
3018

3119
// We use the compiler builtin atomic operations for loads and stores, which
@@ -47,8 +35,6 @@ inline void proc_yield(int cnt) {
4735
#endif
4836
}
4937

50-
SANITIZER_IGNORE_ATOMIC_ALIGNMENT_BEGIN
51-
5238
template <typename T>
5339
inline typename T::Type atomic_load(const volatile T *a, memory_order mo) {
5440
DCHECK(mo == memory_order_relaxed || mo == memory_order_consume ||
@@ -106,8 +92,6 @@ inline bool atomic_compare_exchange_weak(volatile T *a, typename T::Type *cmp,
10692
return atomic_compare_exchange_strong(a, cmp, xchg, mo);
10793
}
10894

109-
SANITIZER_IGNORE_ATOMIC_ALIGNMENT_END
110-
11195
} // namespace __sanitizer
11296

11397
#undef ATOMIC_ORDER

0 commit comments

Comments
 (0)