r235096 - in /trunk/gcc: ChangeLog hsa-brig.c
segher@gcc.gnu.org
segher@gcc.gnu.org
Mon Apr 18 08:57:00 GMT 2016
Author: segher
Date: Mon Apr 18 08:57:01 2016
New Revision: 235096
URL: https://gcc.gnu.org/viewcvs?rev=235096&root=gcc&view=rev
Log:
hsa: Fix bootstrap with older host compilers
We didn't have __builtin_swap16 on all targets before GCC 4.8; hsa-brig
tries to use it if the host GCC is 4.6 or up though, breaking bootstrap.
This trivial patch fixes it.
Noticed on gcc22.
* has-brig.c (lendian16): Don't try to use __builtin_bswap16
unless compiling with at least GCC-4.8.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/hsa-brig.c
More information about the Gcc-cvs
mailing list