[libcxx-commits] [compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

Daniil Kovalev via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 22 09:59:11 PDT 2025


================
@@ -103,10 +104,68 @@
 #define _LIBCXXABI_DTOR_FUNC
 #endif
 
-#if __cplusplus < 201103L
-#  define _LIBCXXABI_NOEXCEPT throw()
-#else
-#  define _LIBCXXABI_NOEXCEPT noexcept
+#if __has_include(<ptrauth.h>)
+#  include <ptrauth.h>
 #endif
 
+#if __has_extension(ptrauth_qualifier)
+
+// The actual value of the discriminators listed below is not important
+// beyond their impact on ABI. The derivation of the constants is only
+// being included for the purpose of maintaining a record of how they
+// were originally produced.
+
+// ptrauth_string_discriminator("__cxa_exception::actionRecord") == 0xFC91
----------------
kovdan01 wrote:

Closing this in favor of issue #160119.

To be done as a follow-up.

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


More information about the libcxx-commits mailing list