[libcxx-commits] [libcxx] [libc++] Add __new_at_least (PR #215813)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 12 08:01:09 PDT 2026


================
@@ -211,3 +212,69 @@ OVERRIDABLE_FUNCTION void* operator new[](size_t size, std::align_val_t alignmen
   ::operator delete[](ptr, alignment);
 }
 #endif // _LIBCPP_HAS_LIBRARY_ALIGNED_ALLOCATION
+
+#ifdef __APPLE__
+#  include <malloc/malloc.h>
+#elifdef __FreeBSD__
+#  include <malloc_np.h>
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
+
+#if __has_cpp_attribute(gnu::ifunc)
----------------
ldionne wrote:

What's this?

https://github.com/llvm/llvm-project/pull/215813


More information about the libcxx-commits mailing list