libstdc++: Add missing exports for ppc64le --with-long-double-format=ibm [PR105417]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 29 Apr 2022 11:17:13 +0000 (12:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 29 Apr 2022 13:43:52 +0000 (14:43 +0100)
commit621650f64fb6679c457c33abf27c925f28bddc62
tree478c4b611c4192116082d5c3c5732e157f72d8fe
parentc733f40f87bdb414b3e99814d97946bad89db743
libstdc++: Add missing exports for ppc64le --with-long-double-format=ibm [PR105417]

The --with-long-double-abi=ibm build is missing some exports that are
present in the --with-long-double-abi=ieee build. Those symbols never
should have been exported at all, but now that they have been, they
should be exported consistently by both ibm and ieee.

This simply defines them as aliases for equivalent symbols that are
already present. The abi-tag on num_get::_M_extract_int isn't really
needed, because it only uses a std::string as a local variable, not in
the return type or function parameters, so it's safe to define the
_M_extract_int[abi:cxx11] symbols as aliases for the corresponding
function without the abi-tag.

This causes some new symbols to be added to the GLIBCXX_3.4.29 version
for the ibm long double build mode, but there is no advantage to adding
them to 3.4.30 for that build. That would just create more
inconsistencies.

libstdc++-v3/ChangeLog:

PR libstdc++/105417
* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
Regenerate.
* src/c++11/compatibility-ldbl-alt128.cc [_GLIBCXX_USE_DUAL_ABI]:
Define __gnu_ieee128::num_get<C>::_M_extract_int[abi:cxx11]<I>
symbols as aliases for corresponding symbols without abi-tag.

(cherry picked from commit bb7cf39b05a216431a431499d0c36a6034f6acc4)
libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt
libstdc++-v3/src/c++11/compatibility-ldbl-alt128.cc