Fix libstdc++ compiling for an aarch64 multilib with big-endian.
authorAndrew Pinski <apinski@marvell.com>
Sun, 8 Dec 2019 00:08:55 +0000 (00:08 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 8 Dec 2019 00:08:55 +0000 (16:08 -0800)
2019-12-07  Andrew Pinski  <apinski@marvell.com>

        * config/cpu/aarch64/opt/ext/opt_random.h: Wrap around with check
        for little-endian like ext/random is done.

From-SVN: r279081

libstdc++-v3/ChangeLog
libstdc++-v3/config/cpu/aarch64/opt/ext/opt_random.h

index b041bb4e3ed7412f5f95567c7de4566251507d29..0b68e88d1dffff5a72b3e2bb22a193bae360c644 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-07  Andrew Pinski  <apinski@marvell.com>
+
+       * config/cpu/aarch64/opt/ext/opt_random.h: Wrap around with check
+       for little-endian like ext/random is done.
+
 2019-12-05  Jonathan Wakely  <jwakely@redhat.com>
 
        * testsuite/23_containers/span/lwg3255.cc: Fix test. Constructing a
index 696a6d18ab4f06a462e50f1085a24428a7c827b9..9eca9b7df74aff63384041e9f1a6cc73ccde1023 100644 (file)
@@ -44,6 +44,7 @@
      _C+8, _C+9, _C+10, _C+11, _C+12, _C+13, _C+14, _C+15})
 #endif
 
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 namespace __gnu_cxx _GLIBCXX_VISIBILITY (default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -175,6 +176,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 _GLIBCXX_END_NAMESPACE_VERSION
   } // namespace
 
+#endif // __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 #endif // __ARM_NEON
 
 #endif // _EXT_OPT_RANDOM_H