public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Francois Dumont <fdumont@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r14-4998] libstdc++: [_GLIBCXX_INLINE_VERSION] Provide handle_contract_violation symbol
Date: Sun, 29 Oct 2023 21:11:10 +0000 (GMT)	[thread overview]
Message-ID: <20231029211110.508FA385828D@sourceware.org> (raw)

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

                 reply	other threads:[~2023-10-29 21:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231029211110.508FA385828D@sourceware.org \
    --to=fdumont@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).