From fcb141ac220aabc330dff94cb343a9a39da810c3 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 22 Feb 2019 20:10:47 +0100 Subject: [PATCH] =?utf8?q?re=20PR=20libstdc++/89402=20(warning:=20?= =?utf8?q?=E2=80=98void=20=5FZNKSt4hashIeEclEe()=E2=80=99=20specifies=20le?= =?utf8?q?ss=20restrictive=20attribute=20than=20its=20target)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/src/c++98/compatibility-ldbl.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f5f6fe56c75..c0ec2896595 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 e16b1207a2f..829d7abbe69 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 -- 2.30.2