[Driver] Fix architecture triplets and search paths for Linux x32Currently, support for the x32 ABI is handled as a multilib to thex86_64 target only. However, full self-hosting x32 systems treati
[Driver] Fix architecture triplets and search paths for Linux x32Currently, support for the x32 ABI is handled as a multilib to thex86_64 target only. However, full self-hosting x32 systems treating itas a separate architecture with its own architecture triplets as well assearch paths exist as well, in Debian's x32 port and elsewhere.This adds the missing architecture triplets and search paths so thatclang can work as a native compiler on x32, and updates the tests sothat they pass when using an x32 libdir suffix.Additionally, we would previously also assume that objects from anyx86_64-linux-gnu GCC installation could be used to target x32. Thischanges the logic so that only GCC installations that include x32support are used when targetting x32, meaning x86_64-linux-gnux32 GCCinstallations, and x86_64-linux-gnu and i686-linux-gnu GCC installationsthat include x32 multilib support.Reviewed By: MaskRayDifferential Revision: https://reviews.llvm.org/D52050
show more ...
[x32] Adding X32 target support to driver, including TargetInfo,DescriptionString, flags, paths lookup, etc. Cover changes with new tests. The author of the patch is Pavel Chupin (@pavel.v.chupin).T
[x32] Adding X32 target support to driver, including TargetInfo,DescriptionString, flags, paths lookup, etc. Cover changes with new tests. The author of the patch is Pavel Chupin (@pavel.v.chupin).The changes enable "hello world" on x32 target (x86_64-*-linux-gnux32). s/isX32/IsX32/ also fixed.Differential Revision: http://reviews.llvm.org/D4180llvm-svn: 212725
Test a multilib setup on a 64-bit host. This is the far more commonconfiguration, although the test still stubs out more directories thanare necessary or common in order to exercise all of the look
Test a multilib setup on a 64-bit host. This is the far more commonconfiguration, although the test still stubs out more directories thanare necessary or common in order to exercise all of the lookup pathsobserved with upstream GCC.This finishes testing the distribution-independent andGCC-installation-independent parts of the library path search logic.More testing is still needed for the triple detection, GCC-installationdetection, and handling distributions with unusual configurations.llvm-svn: 141000