[libcxx-commits] [libcxx] [libc++] Make std::align an inline function from v2 ABI (PR #167472)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Nov 11 20:18:29 PST 2025
================
@@ -11,14 +11,33 @@
#include <__config>
#include <__cstddef/size_t.h>
+#include <cstdint>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
+// From >=v2 ABI, std::align is an inline function.
----------------
poor-circle wrote:
So we should make it always an inline function and try to keep the symbol in ABI v1 like this:?
```cpp
// memory.cpp
constinit auto* __align_abi_keeper = align;
```
https://github.com/llvm/llvm-project/pull/167472
More information about the libcxx-commits
mailing list