public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4998] libstdc++: [_GLIBCXX_INLINE_VERSION] Provide handle_contract_violation symbol
@ 2023-10-29 21:11 Francois Dumont
  0 siblings, 0 replies; only message in thread
From: Francois Dumont @ 2023-10-29 21:11 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:5d1b723ceffd0211926942d5f9563af9052fe443

commit r14-4998-g5d1b723ceffd0211926942d5f9563af9052fe443
Author: François Dumont <fdumont@gcc.gnu.org>
Date:   Tue Sep 19 18:56:57 2023 +0200

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

Diff:
---
 libstdc++-v3/src/experimental/contract.cc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libstdc++-v3/src/experimental/contract.cc b/libstdc++-v3/src/experimental/contract.cc
index 504a6c041f17..d550b49c4eb4 100644
--- a/libstdc++-v3/src/experimental/contract.cc
+++ b/libstdc++-v3/src/experimental/contract.cc
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-29 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-29 21:11 [gcc r14-4998] libstdc++: [_GLIBCXX_INLINE_VERSION] Provide handle_contract_violation symbol Francois Dumont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).