From ea1c2a95bad9e11a1355f9ecd8f310f8eef1b718 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 20 Feb 2019 08:57:41 +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): Add _GLIBCXX_PURE to the alias declaration. From-SVN: r269034 --- 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 99108d9dd56..bd38976a0f6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2019-02-20 Jakub Jelinek + + PR libstdc++/89402 + * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add + _GLIBCXX_PURE to the alias declaration. + 2019-02-19 Jonathan Wakely * testsuite/21_strings/basic_string/literals/types.cc diff --git a/libstdc++-v3/src/c++98/compatibility-ldbl.cc b/libstdc++-v3/src/c++98/compatibility-ldbl.cc index 245a8c12873..e16b1207a2f 100644 --- a/libstdc++-v3/src/c++98/compatibility-ldbl.cc +++ b/libstdc++-v3/src/c++98/compatibility-ldbl.cc @@ -75,6 +75,6 @@ namespace std _GLIBCXX_VISIBILITY(default) // and std::hash::operator() // are the same, no need to duplicate them. extern "C" void _ZNKSt4hashIeEclEe (void) - __attribute__((alias ("_ZNKSt3tr14hashIeEclEe"))); + _GLIBCXX_PURE __attribute__((alias ("_ZNKSt3tr14hashIeEclEe"))); #endif -- 2.30.2