[PATCH] D73290: [PowerPC] Add clang -msvr4-struct-return for 32-bit ELF
Mark Millard via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 23 22:34:32 PST 2020
markmi added a comment.
Herald added a subscriber: wuzish.
Summary: My preliminary testing looks good.
FreeBSD does not have clang/test/ and clang/doc/ in its contrib/llvm-project/ so I applied just the other patches to my context and rebuilt my FreeBSD head -r356426 based context's clang/clang++ and such.
Using the updated compilers I did buildworld and buildkernel for 32-bit powerpc, installed them, and booted an old PowerMac 2-socket G4 with the result. After that I built the ports related to devel/freebsd-gcc9 at powerpc and lang/gcc9 and installed the packages the build produced. I then used such toolchains to build and run the original program that I found the ABI mismatch with, building without using -maix-struct-return but using FreeBSD's libc++ and such (like before).
The program ran fine.
The overall sequence I used involved buildworld buildkernel for powerpc64 and installing and booting such as well. That was in turn used to build some ports for 32-bit powerpc via devel/poudriere (so via chroot activity). All that worked fine.
It will be some time before all my usual ports have been built for 32-bit powerpc. But my preliminary testing is good news.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73290/new/
https://reviews.llvm.org/D73290
More information about the cfe-commits
mailing list