]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove handling for underscore-prefixed libm functions [PR111638]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 29 Sep 2023 13:29:16 +0000 (14:29 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 11 Nov 2023 00:41:08 +0000 (00:41 +0000)
commit898fd81b831c106859bc99e65c7c1cbb642320c8
tree27b64f470910157cb3f892db6883f1c901cffd97
parent0b880466e910b4f1be2ea2d0d9cb9407d24ca299
libstdc++: Remove handling for underscore-prefixed libm functions [PR111638]

The checks in linkage.m4 try to support math functions prefixed with
underscores, like _acosf and _isinf. However, that doesn't work because
they're renamed to the standard names using a macro, but then <cmath>
undefines that macro again.

This simply removes everything related to those underscored functions.

libstdc++-v3/ChangeLog:

PR libstdc++/111638
* config.h.in: Regenerate.
* configure: Regenerate.
* linkage.m4 (GLIBCXX_MAYBE_UNDERSCORED_FUNCS): Remove.
(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1): Do not check for _foo.
(GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1): Likewise.
(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2): Likewise.
(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3): Likewise.
(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2): Do not use
GLIBCXX_MAYBE_UNDERSCORED_FUNCS.
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/linkage.m4