Re: [PATCH] [6 and trunk] Fix bootstrap with older host compilers

2016-04-18 Thread Richard Biener
On Fri, Apr 15, 2016 at 8:31 PM, Segher Boessenkool wrote: > 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. > > Is this okay for trunk and gcc-6?

[PATCH] [6 and trunk] Fix bootstrap with older host compilers

2016-04-15 Thread Segher Boessenkool
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. Is this okay for trunk and gcc-6? Segher 2016-04-15 Segher Boessenkool * has-brig.c (lend