[PATCH] D55326: [Driver] Fix incorrect GNU triplet for PowerPC on SUSE Linux
John Paul Adrian Glaubitz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 5 07:55:02 PST 2018
glaubitz updated this revision to Diff 176830.
glaubitz added a comment.
Added a comment explaining the unusual triplet name.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55326/new/
https://reviews.llvm.org/D55326
Files:
lib/Driver/ToolChains/Gnu.cpp
Index: lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- lib/Driver/ToolChains/Gnu.cpp
+++ lib/Driver/ToolChains/Gnu.cpp
@@ -1912,9 +1912,11 @@
"mips64el-linux-gnuabin32", "mipsisa64r6el-linux-gnuabin32"};
static const char *const PPCLibDirs[] = {"/lib32", "/lib"};
+ // On 32-bit PowerPC systems running SUSE Linux, gcc is configured as a
+ // 64-bit compiler which defaults to "-m32", hence "powerpc64-suse-linux"
static const char *const PPCTriples[] = {
"powerpc-linux-gnu", "powerpc-unknown-linux-gnu", "powerpc-linux-gnuspe",
- "powerpc-suse-linux", "powerpc-montavista-linuxspe"};
+ "powerpc64-suse-linux", "powerpc-montavista-linuxspe"};
static const char *const PPC64LibDirs[] = {"/lib64", "/lib"};
static const char *const PPC64Triples[] = {
"powerpc64-linux-gnu", "powerpc64-unknown-linux-gnu",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55326.176830.patch
Type: text/x-patch
Size: 905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181205/3423a988/attachment-0001.bin>
More information about the cfe-commits
mailing list