re PR libstdc++/89402 (warning: ‘void _ZNKSt4hashIeEclEe()’ specifies less restrictiv...
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Feb 2019 07:57:41 +0000 (08:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Feb 2019 07:57:41 +0000 (08:57 +0100)
PR libstdc++/89402
* src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
_GLIBCXX_PURE to the alias declaration.

From-SVN: r269034

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++98/compatibility-ldbl.cc

index 99108d9dd5694c9bc33d1b5c86e39bf7880cf73e..bd38976a0f675f4a6355c45d6cff4a4cddab41b8 100644 (file)
@@ -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
index 245a8c128733d654d12f4f306d2b08e980871c7d..e16b1207a2f33cee5f425a55081f4233ed54bc2d 100644 (file)
@@ -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