aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2017-12-20 10:28:13 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2017-12-20 10:28:13 +0000
commit0e0cefc62e713f0b419bca0c8a931c9c912e214e (patch)
treeb9bfbb36f73f50942ce00217e48668dcead97870 /gcc/expr.c
parent98f8b67f2202c0f81fdacf661c1fa51f2ecb80fb (diff)
downloadgcc-0e0cefc62e713f0b419bca0c8a931c9c912e214e.zip
gcc-0e0cefc62e713f0b419bca0c8a931c9c912e214e.tar.gz
gcc-0e0cefc62e713f0b419bca0c8a931c9c912e214e.tar.bz2
[aarch64][libstdc++] Use __ARM_BIG_ENDIAN instead of __AARCH64EB__ in opt_random.h
As has been spotted at https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01289.html we check the __AARCH64EB__ macro for aarch64 big-endian detection in config/cpu/aarch64/opt/ext/opt_random.h. That works just fine with GCC but the standardised ACLE[1] macro for that purpose is __ARM_BIG_ENDIAN so there is a possibility that non-GCC compilers that include this header are not aware of this predefine. So this patch changes the use of __AARCH64EB__ to the more portable __ARM_BIG_ENDIAN. Tested on aarch64-none-elf and aarch64_be-none-elf. Preapproved by Jeff at https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01326.html * config/cpu/aarch64/opt/ext/opt_random.h (__VEXT): Check __ARM_BIG_ENDIAN instead of __AARCH64EB__. From-SVN: r255857
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions