Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146328084
D38178.id115540.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
779 B
Referenced Files
None
Subscribers
None
D38178.id115540.diff
View Options
diff --git a/contrib/llvm-project/libcxx/src/atomic.cpp b/contrib/llvm-project/libcxx/src/atomic.cpp
--- a/contrib/llvm-project/libcxx/src/atomic.cpp
+++ b/contrib/llvm-project/libcxx/src/atomic.cpp
@@ -77,7 +77,12 @@
const_cast<__cxx_atomic_contention_t*>(__ptr), 0);
}
-#elif defined(__FreeBSD__) && defined(__LP64__)
+#elif defined(__FreeBSD__) && __SIZEOF_LONG__ == 8
+/*
+ * Since __cxx_contention_t is int64_t even on 32bit FreeBSD
+ * platforms, we have to use umtx ops that work on the long type, and
+ * limit its use to architectures where long and int64_t are synonims.
+ */
static void __libcpp_platform_wait_on_address(__cxx_atomic_contention_t const volatile* __ptr,
__cxx_contention_t __val)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 7:11 PM (10 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29167560
Default Alt Text
D38178.id115540.diff (779 B)
Attached To
Mode
D38178: libcxx: use __SIZEOF_LONG__ == 8 instead of __LP64__
Attached
Detach File
Event Timeline
Log In to Comment