From: Jakub Jelinek Date: Wed, 20 Feb 2019 07:57:41 +0000 (+0100) Subject: re PR libstdc++/89402 (warning: ‘void _ZNKSt4hashIeEclEe()’ specifies less restrictiv... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea1c2a95bad9e11a1355f9ecd8f310f8eef1b718;p=gcc.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): Add _GLIBCXX_PURE to the alias declaration. From-SVN: r269034 --- 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