diff options
author | Andrew Pinski <apinski@marvell.com> | 2019-12-08 00:08:55 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2019-12-07 16:08:55 -0800 |
commit | c44e87ac7c1c30fab503c7087b5ec2865a75cdcd (patch) | |
tree | a50d86ab45aa2c75f1f2b918389d57cedd5ec869 | |
parent | bfbe98c7e0d570c903c89359cd25073e538a365e (diff) | |
download | gcc-c44e87ac7c1c30fab503c7087b5ec2865a75cdcd.zip gcc-c44e87ac7c1c30fab503c7087b5ec2865a75cdcd.tar.gz gcc-c44e87ac7c1c30fab503c7087b5ec2865a75cdcd.tar.bz2 |
Fix libstdc++ compiling for an aarch64 multilib with big-endian.
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/aarch64/opt/ext/opt_random.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b041bb4..0b68e88 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/config/cpu/aarch64/opt/ext/opt_random.h b/libstdc++-v3/config/cpu/aarch64/opt/ext/opt_random.h index 696a6d1..9eca9b7 100644 --- a/libstdc++-v3/config/cpu/aarch64/opt/ext/opt_random.h +++ b/libstdc++-v3/config/cpu/aarch64/opt/ext/opt_random.h @@ -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 |