On Sun, Nov 17, 2013 at 8:33 PM, Bill Schmidt
<wschm...@linux.vnet.ibm.com> wrote:
> Hi,
>
> As Ulrich Weigand discovered, libcpp/lex.c contains some code optimized
> for use with Altivec that is incorrect for little endian targets.  This
> breaks bootstrap on powerpc64le-unknown-linux-gnu when configured with
> --with-cpu=power7.
>
> This patch makes appropriate modifications for little endian.  The
> transformation of lvsr/vperm(x,y,z) into lvsl/vperm(y,x,z) is familiar
> from a previous patch.  The other obvious change is converting
> count-leading-zeroes into count-trailing-zeroes.
>
> Bootstrapped on powerpc64-unknown-linux-gnu (BE) using --with-cpu=power7
> with no regressions.  Bootstrap for powerpc64le-unknown-linux-gnu (LE)
> using --with-cpu=power7 now completes with this patch.  There are still
> failures for --with-cpu=power7 that are not present using
> --with-cpu=power6 that need to be investigated, but they are unrelated
> to this change.
>
> Ok for trunk?
>
> Thanks,
> Bill
>
>
> 2013-11-17  Bill Schmidt  <wschm...@linux.vnet.ibm.com>
>
>         * lex.c (search_line_fast): Correct for little endian.

Okay.

Thanks, David

Reply via email to