[PATCH] D35755: [Solaris] gcc toolchain handling revamp
Fedor Sergeev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 19:00:13 PDT 2017
fedor.sergeev created this revision.
General idea is to utilize generic (mostly Generic_GCC) code
and get rid of Solaris-specific handling as much as possible.
In particular:
- scanLibDirForGCCTripleSolaris was removed, relying on generic CollectLibDirsAndTriples
- findBiarchMultilibs is now properly utilized to switch between m32 and m64 include & lib paths on Solaris
- C system include handling copied from Linux (bar multilib hacks)
Fixes PR24606.
https://reviews.llvm.org/D35755
Files:
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/Gnu.h
lib/Driver/ToolChains/Solaris.cpp
lib/Driver/ToolChains/Solaris.h
lib/Frontend/InitHeaderSearch.cpp
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/include/c++/4.8.2/sparc-sun-solaris2.11/bits/gthr.h
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/include/c++/4.8.2/typeinfo
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crt1.o
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crtbegin.o
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crtend.o
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/sparcv9/crt1.o
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/sparcv9/crtbegin.o
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/sparcv9/crtend.o
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/libatomic.a
test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/sparcv9/libatomic.a
test/Driver/Inputs/solaris_sparc_tree/usr/lib/crti.o
test/Driver/Inputs/solaris_sparc_tree/usr/lib/crtn.o
test/Driver/Inputs/solaris_sparc_tree/usr/lib/ld.so.1
test/Driver/Inputs/solaris_sparc_tree/usr/lib/sparcv9/crti.o
test/Driver/Inputs/solaris_sparc_tree/usr/lib/sparcv9/crtn.o
test/Driver/Inputs/solaris_sparc_tree/usr/lib/sparcv9/ld.so.1
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/include/c++/4.9.4/i386-pc-solaris2.11/bits/gthr.h
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/include/c++/4.9.4/typeinfo
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/lib/amd64/libatomic.a
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/amd64/crtbegin.o
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/amd64/crtend.o
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/crtbegin.o
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/crtend.o
test/Driver/Inputs/solaris_x86_tree/usr/gcc/4.9/lib/libatomic.a
test/Driver/Inputs/solaris_x86_tree/usr/lib/amd64/crt1.o
test/Driver/Inputs/solaris_x86_tree/usr/lib/amd64/crti.o
test/Driver/Inputs/solaris_x86_tree/usr/lib/amd64/crtn.o
test/Driver/Inputs/solaris_x86_tree/usr/lib/amd64/ld.so.1
test/Driver/Inputs/solaris_x86_tree/usr/lib/crt1.o
test/Driver/Inputs/solaris_x86_tree/usr/lib/crti.o
test/Driver/Inputs/solaris_x86_tree/usr/lib/crtn.o
test/Driver/Inputs/solaris_x86_tree/usr/lib/ld.so.1
test/Driver/Inputs/sparc-sun-solaris2.11/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crt1.o
test/Driver/Inputs/sparc-sun-solaris2.11/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crtbegin.o
test/Driver/Inputs/sparc-sun-solaris2.11/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crtend.o
test/Driver/Inputs/sparc-sun-solaris2.11/usr/lib/crti.o
test/Driver/Inputs/sparc-sun-solaris2.11/usr/lib/crtn.o
test/Driver/Inputs/sparc-sun-solaris2.11/usr/lib/ld.so.1
test/Driver/solaris-header-search.cpp
test/Driver/solaris-ld.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35755.107769.patch
Type: text/x-patch
Size: 33225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170722/708fe282/attachment-0001.bin>
More information about the cfe-commits
mailing list