diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/hsa-brig.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 40986fb..ff99971 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-18 Segher Boessenkool <segher@kernel.crashing.org> + + * has-brig.c (lendian16): Don't try to use __builtin_bswap16 + unless compiling with at least GCC-4.8. + 2016-04-17 Jan Hubicka <jh@suse.cz> PR bootstrap/70706 diff --git a/gcc/hsa-brig.c b/gcc/hsa-brig.c index a943e37..9c74b9a 100644 --- a/gcc/hsa-brig.c +++ b/gcc/hsa-brig.c @@ -51,7 +51,7 @@ along with GCC; see the file COPYING3. If not see static uint16_t lendian16 (uint16_t val) { -#if GCC_VERSION >= 4006 +#if GCC_VERSION >= 4008 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ return val; #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |