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

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

commit r14-5019-g5ea11700e5c25d5213d80104a402c8fd427cda76
Author: François Dumont <fdumont@gcc.gnu.org>
Date:   Mon Oct 30 19:35:35 2023 +0100

    libstdc++: [_GLIBCXX_INLINE_VERSION] Un-weak handle_contract_violation
    
    libstdc++-v3/ChangeLog:
    
            * src/experimental/contract.cc
            [_GLIBCXX_INLINE_VERSION](handle_contract_violation): Rework comment.
            Remove weak attribute.

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

diff --git a/libstdc++-v3/src/experimental/contract.cc b/libstdc++-v3/src/experimental/contract.cc
index d550b49c4eb4..39ad4bd7d075 100644
--- a/libstdc++-v3/src/experimental/contract.cc
+++ b/libstdc++-v3/src/experimental/contract.cc
@@ -69,8 +69,9 @@ handle_contract_violation (const std::experimental::contract_violation &violatio
 }
 
 #if _GLIBCXX_INLINE_VERSION
-// Provide symbol without version namespace decoration for gcc.
-extern "C" __attribute__ ((weak)) void
+// The compiler expects the contract_violation class to be in an unversioned
+// namespace, so provide a forwarding function with the expected symbol name.
+extern "C" void
 _Z25handle_contract_violationRKNSt12experimental18contract_violationE
 (const std::experimental::contract_violation &violation)
 { handle_contract_violation(violation); }

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-30 21:01 [gcc r14-5019] libstdc++: [_GLIBCXX_INLINE_VERSION] Un-weak handle_contract_violation 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).