[libcxx-commits] [libcxx] Revert "[libc++] Re-enable std::pair trivial copy constructor for FreeBSD >= 14" (PR #142204)

Jessica Clarke via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 30 12:41:58 PDT 2025


https://github.com/jrtc27 created https://github.com/llvm/llvm-project/pull/142204

The ABI bump to adopt the conforming ABI v1 std::pair implementation did
not end up happening for FreeBSD 14, and instead this diff was reverted
downstream in FreeBSD[1]. Align the upstream ABI config with FreeBSD's
actual ABI.

[1] ce4f1f49e036 ("Revert commit 6255157d24e2 from llvm-project (by Dimitry Andric):")

This reverts commit 6255157d24e27c604bda8fe8ce26e896f54785c0.


>From 0741143d1504a982cb5a6e7462b2204398995b74 Mon Sep 17 00:00:00 2001
From: Jessica Clarke <jrtc27 at jrtc27.com>
Date: Fri, 30 May 2025 20:37:16 +0100
Subject: [PATCH] Revert "[libc++] Re-enable std::pair trivial copy constructor
 for FreeBSD >= 14"

The ABI bump to adopt the conforming ABI v1 std::pair implementation did
not end up happening for FreeBSD 14, and instead this diff was reverted
downstream in FreeBSD[1]. Align the upstream ABI config with FreeBSD's
actual ABI.

[1] ce4f1f49e036 ("Revert commit 6255157d24e2 from llvm-project (by Dimitry Andric):")

This reverts commit 6255157d24e27c604bda8fe8ce26e896f54785c0.
---
 libcxx/include/__configuration/abi.h         | 2 +-
 libcxx/include/__cxx03/__configuration/abi.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcxx/include/__configuration/abi.h b/libcxx/include/__configuration/abi.h
index 01a4a4c023983..cc4b930b3cf4a 100644
--- a/libcxx/include/__configuration/abi.h
+++ b/libcxx/include/__configuration/abi.h
@@ -130,7 +130,7 @@
 #  endif
 // Feature macros for disabling pre ABI v1 features. All of these options
 // are deprecated.
-#  if defined(__FreeBSD__) && __FreeBSD__ < 14
+#  if defined(__FreeBSD__)
 #    define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
 #  endif
 #endif
diff --git a/libcxx/include/__cxx03/__configuration/abi.h b/libcxx/include/__cxx03/__configuration/abi.h
index 740aec39a3487..81dd5b1c59610 100644
--- a/libcxx/include/__cxx03/__configuration/abi.h
+++ b/libcxx/include/__cxx03/__configuration/abi.h
@@ -116,7 +116,7 @@
 #  endif
 // Feature macros for disabling pre ABI v1 features. All of these options
 // are deprecated.
-#  if defined(__FreeBSD__) && __FreeBSD__ < 14
+#  if defined(__FreeBSD__)
 #    define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
 #  endif
 #endif



More information about the libcxx-commits mailing list