aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-02-20 08:57:41 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-02-20 08:57:41 +0100
commitea1c2a95bad9e11a1355f9ecd8f310f8eef1b718 (patch)
treef492f5dc3a6fe58777990e66d8a00c703c9ef7e3
parente86ae7bab3f01c7d35d36fc19c2a39a48d01b64c (diff)
downloadgcc-ea1c2a95bad9e11a1355f9ecd8f310f8eef1b718.zip
gcc-ea1c2a95bad9e11a1355f9ecd8f310f8eef1b718.tar.gz
gcc-ea1c2a95bad9e11a1355f9ecd8f310f8eef1b718.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/src/c++98/compatibility-ldbl.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 99108d9..bd38976 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2019-02-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR libstdc++/89402
+ * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
+ _GLIBCXX_PURE to the alias declaration.
+
2019-02-19 Jonathan Wakely <jwakely@redhat.com>
* 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 245a8c1..e16b120 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<long double>::operator()
// are the same, no need to duplicate them.
extern "C" void _ZNKSt4hashIeEclEe (void)
- __attribute__((alias ("_ZNKSt3tr14hashIeEclEe")));
+ _GLIBCXX_PURE __attribute__((alias ("_ZNKSt3tr14hashIeEclEe")));
#endif