hsa: Fix bootstrap with older host compilers
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 18 Apr 2016 08:57:01 +0000 (10:57 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 18 Apr 2016 08:57:01 +0000 (10:57 +0200)
commit939264d3a37d0645de08143b4c4660637ba2a127
tree06f5dd72e531f6acafd81e3d05fac91118f50999
parentbd5c7330b590af3c5fcd5f4299d7eef60c4864ab
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.

From-SVN: r235096
gcc/ChangeLog
gcc/hsa-brig.c