diff options
author | Michal Gorny <mgorny@gentoo.org> | 2016-12-12 15:07:43 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2016-12-12 15:07:43 +0000 |
commit | f4debddb09d7a38f75f770b464abade47b522b1f (patch) | |
tree | b5d38907c401a0c05b1a3a12abbb9dda3f601769 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | b1227db1f4e5b2869463baa9beb43f007af4d24f (diff) | |
download | llvm-f4debddb09d7a38f75f770b464abade47b522b1f.zip llvm-f4debddb09d7a38f75f770b464abade47b522b1f.tar.gz llvm-f4debddb09d7a38f75f770b464abade47b522b1f.tar.bz2 |
[Driver] Fix finding multilib gcc install on Gentoo (with gcc-config)
Fix the gcc-config code to support multilib gcc installs properly. This
solves two problems: -mx32 using the 64-bit gcc directory (due to matching
installation triple), and -m32 not respecting gcc-config at all (due to
mismatched installation triple).
In order to fix the former issue, split the multilib scan out of
Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple() (the code
is otherwise unchanged), and call it for each installation found via
gcc-config.
In order to fix the latter issue, split the gcc-config processing out of
Generic_GCC::GCCInstallationDetector::init() and repeat it for all
triples, including extra and biarch triples. The only change
in the gcc-config code itself is adding the call to multilib scan.
Convert the gentoo_linux_gcc_multi_version_tree test input to multilib
x86_64+32+x32 install, and add appropriate tests to linux-header-search
and linux-ld.
Differential Revision: https://reviews.llvm.org/D26887
llvm-svn: 289436
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions