]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Force _Hash_node_value_base methods inline to fix abi (PR111050)
authorTim Song <t.canens.cpp@gmail.com>
Wed, 6 Sep 2023 17:31:55 +0000 (19:31 +0200)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 2 Oct 2023 20:43:01 +0000 (22:43 +0200)
commit50ace1f8a784d08a72edb8cb4044101fdabcc072
treed8d8cf8df0f16fe6a7799164de547dd53a0131f7
parentaac5ce76d022494ed5a4adcdbab6232081629616
libstdc++: Force _Hash_node_value_base methods inline to fix abi (PR111050)

https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=1b6f0476837205932613ddb2b3429a55c26c409d
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++.

libstdc++-v3/ChangeLog:

PR libstdc++/111050
* include/bits/hashtable_policy.h
(_Hash_node_value_base<>::_M_valptr(), _Hash_node_value_base<>::_M_v())
Add [[__gnu__::__always_inline__]].

(cherry picked from commit 2c1e3544a94c5d7354fad031e1f9731c3ce3af25)
libstdc++-v3/include/bits/hashtable_policy.h
This page took 0.056521 seconds and 6 git commands to generate.