hsa: Fix bootstrap with older host compilers
commitcfded69eea33fe75655775dc4bf388f16d54eb4a
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Apr 2016 08:57:01 +0000 (18 08:57 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Apr 2016 08:57:01 +0000 (18 08:57 +0000)
tree06f5dd72e531f6acafd81e3d05fac91118f50999
parent67ccbf39a27290f655dbdffe89560f45f2f806dc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235096 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/hsa-brig.c