From: Jakub Jelinek Date: Fri, 22 Feb 2019 19:10:47 +0000 (+0100) Subject: re PR libstdc++/89402 (warning: ‘void _ZNKSt4hashIeEclEe()’ specifies less restrictiv... X-Git-Tag: basepoints/gcc-10~982 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb141ac220aabc330dff94cb343a9a39da810c3;p=thirdparty%2Fgcc.git re PR libstdc++/89402 (warning: ‘void _ZNKSt4hashIeEclEe()’ specifies less restrictive attribute than its target) PR libstdc++/89402 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return type to std::size_t and argument to type to long double. From-SVN: r269130 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f5f6fe56c756..c0ec2896595a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2019-02-22 Jakub Jelinek + + PR libstdc++/89402 + * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return + type to std::size_t and argument to type to long double. + 2019-02-22 Eric Botcazou * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux. diff --git a/libstdc++-v3/src/c++98/compatibility-ldbl.cc b/libstdc++-v3/src/c++98/compatibility-ldbl.cc index e16b1207a2f3..829d7abbe690 100644 --- a/libstdc++-v3/src/c++98/compatibility-ldbl.cc +++ b/libstdc++-v3/src/c++98/compatibility-ldbl.cc @@ -74,7 +74,7 @@ namespace std _GLIBCXX_VISIBILITY(default) // std::tr1::hash::operator() // and std::hash::operator() // are the same, no need to duplicate them. -extern "C" void _ZNKSt4hashIeEclEe (void) +extern "C" std::size_t _ZNKSt4hashIeEclEe (long double) _GLIBCXX_PURE __attribute__((alias ("_ZNKSt3tr14hashIeEclEe"))); #endif