]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Ensure C++20 std::stringstream definitions use correct ABI
authorJonathan Wakely <jwakely@redhat.com>
Tue, 30 Nov 2021 22:04:49 +0000 (22:04 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 30 Nov 2021 23:10:03 +0000 (23:10 +0000)
commit56b07badf052fb140c4636f6d77cfc02d1ac357c
treebbf5ce6340d01c1eb6fb7ac10c9a9741653dd1f9
parent955ea7b58e4f1e3cc5083e88575161168c147254
libstdc++: Ensure C++20 std::stringstream definitions use correct ABI

The definitions of the new C++20 members of std::stringstream etc are
missing when --with-default-libstdcxx-abi=gcc4-compatible is used,
because all the explicit instantiations in src/c++20/sstream-inst.cc are
skipped.

This ensures the contents of that file are compiled with the new ABI, so
the same set of symbols are exported regardless of which ABI is active
by default.

libstdc++-v3/ChangeLog:

* src/c++20/sstream-inst.cc (_GLIBCXX_USE_CXX11_ABI): Define to
select new ABI.
libstdc++-v3/src/c++20/sstream-inst.cc