[PATCH] D62464: [PPC32] Improve 32-bit PowerPC
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 02:40:25 PDT 2019
Great result! :)
On Thu, Jun 6, 2019 at 6:39 PM Fangrui Song via Phabricator <
reviews at reviews.llvm.org> wrote:
> MaskRay added a comment.
>
> I cross compiled libc-test with powerpc-linux-gnu-gcc + lld.
>
> % cd ~/libc-test # config.mak is below
> % make > /tmp/libc-test.lld
> # /tmp/libc-test.bfd was created in a similar way
> % grep -c FAIL /tmp/libc-test.bfd /tmp/libc-test.lld
> /tmp/libc-test.bfd:112
> /tmp/libc-test.lld:112
>
> So lld linked libc-test doesn't have more failures than bfd linked
> libc-test :)
> (Tests ran under qemu-static-ppc. The situation may get better on real
> hardware.)
>
> CROSS_COMPILE=powerpc-linux-gnu-
> CFLAGS += -mlong-double-64 -msecure-plt
> CC = powerpc-linux-gnu-gcc
>
> CFLAGS += -specs ~/musl/powerpc/lib/musl-gcc.specs
> LDFLAGS += -specs ~/musl/powerpc/lib/musl-gcc.specs
> ...
> LDFLAGS += -fuse-ld=gold -g # my /usr/powerpc-linux-gnu/bin/ld.gold
> points to lld... gcc 9 starts to understand -fuse-ld=lld
>
>
> Repository:
> rLLD LLVM Linker
>
> CHANGES SINCE LAST ACTION
> https://reviews.llvm.org/D62464/new/
>
> https://reviews.llvm.org/D62464
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190606/7b80f1db/attachment-0001.html>
More information about the llvm-commits
mailing list