public inbox for
 help / color / mirror / Atom feed
From: "François Dumont" <>
To: Jonathan Wakely <>,
Cc: libstdc++ <>, gcc-patches <>
Subject: Re: [PATCH] [11/12/13/14 Regression] ABI break in _Hash_node_value_base since GCC 11 [PR 111050]
Date: Mon, 11 Sep 2023 19:19:30 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On 11/09/2023 13:51, Jonathan Wakely wrote:
> On Sun, 10 Sept 2023 at 14:57, François Dumont via Libstdc++
> <> wrote:
>> Following confirmation of the fix by TC here is the patch where I'm
>> simply adding a 'constexpr' on _M_next().
>> Please let me know this ChangeLog entry is correct. I would prefer this
>> patch to be assigned to 'TC' with me as co-author but I don't know how
>> to do such a thing. Unless I need to change my user git identity to do so ?
> Sam already explained that, but please check with Tim how he wants to
> be credited, if at all. He doesn't have a copyright assignment, and
> hasn't added a DCO sign-off to the patch, but it's small enough to not
> need it as this is the first contribution credited to him.
>>       libstdc++: Add constexpr qualification to _Hash_node::_M_next()
> What has this constexpr addition got to do with the ABI change and the
> always_inline attributes?
> It certainly doesn't seem like it should be the summary line of the
> git commit message.

Oops, sorry, that's what I had started to do before Tim submitted anything.

Here is latest version:

Author: TC <>
Date:   Wed Sep 6 19:31:55 2023 +0200

     libstdc++: Force inline on _Hash_node_value_base methods to fix abi 
     changed _Hash_node_value_base to no longer derive from 
_Hash_node_base, which means
     that its member functions expect _M_storage to be at a different 
offset. So explosions
     result if an out-of-line definition is emitted for any of the 
member functions (say,
     in a non-optimized build) and the resulting object file is then 
linked with code built
     using older version of GCC/libstdc++.


             PR libstdc++/111050
             * include/bits/hashtable_policy.h
             Add [[__gnu__::__always_inline__]].
             (_Hash_node<>::_M_next()): Add constexpr.

     Co-authored-by: François Dumont <>

Ok for you TC (Tim ?) ?

  reply	other threads:[~2023-09-11 17:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-10 13:56 François Dumont
2023-09-10 15:36 ` Sam James
2023-09-11 11:51 ` Jonathan Wakely
2023-09-11 17:19   ` François Dumont [this message]
2023-09-12 16:09     ` Jonathan Wakely
2023-09-14  4:46       ` François Dumont
2023-09-27  4:44         ` François Dumont
2023-09-28 16:18           ` Jonathan Wakely
2023-09-28 17:25             ` François Dumont
2023-09-29  9:53               ` Jonathan Wakely
2023-10-02 20:51                 ` François Dumont

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:

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

  git send-email \ \ \ \ \ \ \

* 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).