]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: [_GLIBCXX_INLINE_VERSION] Provide handle_contract_violation symbol
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 19 Sep 2023 16:56:57 +0000 (18:56 +0200)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Sun, 29 Oct 2023 21:10:33 +0000 (22:10 +0100)
libstdc++-v3/ChangeLog:

* src/experimental/contract.cc
[_GLIBCXX_INLINE_VERSION](handle_contract_violation): Provide symbol
without version namespace decoration for gcc.

libstdc++-v3/src/experimental/contract.cc

index 504a6c041f17ff6e243d49d96e90178ceec61b21..d550b49c4eb4993cf1128177be301053f4efb6c5 100644 (file)
@@ -67,3 +67,11 @@ handle_contract_violation (const std::experimental::contract_violation &violatio
   std::cerr << std::endl;
 #endif
 }
+
+#if _GLIBCXX_INLINE_VERSION
+// Provide symbol without version namespace decoration for gcc.
+extern "C" __attribute__ ((weak)) void
+_Z25handle_contract_violationRKNSt12experimental18contract_violationE
+(const std::experimental::contract_violation &violation)
+{ handle_contract_violation(violation); }
+#endif