[clang] f263418 - [Driver] Gnu.cpp: remove obsoleted i386 triple detection from end-of-life distribution versions

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 22 00:24:00 PDT 2021


Author: Fangrui Song
Date: 2021-03-22T00:23:55-07:00
New Revision: f26341840253e15ab07c9e7657338038888fd3e4

URL: https://github.com/llvm/llvm-project/commit/f26341840253e15ab07c9e7657338038888fd3e4
DIFF: https://github.com/llvm/llvm-project/commit/f26341840253e15ab07c9e7657338038888fd3e4.diff

LOG: [Driver] Gnu.cpp: remove obsoleted i386 triple detection from end-of-life distribution versions

This saves 16 openat syscalls for `clang a.cc` on x86_64.

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/Gnu.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 972044fb615e..a046e8e7eed8 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2109,12 +2109,10 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
   static const char *const X32LibDirs[] = {"/libx32"};
   static const char *const X86LibDirs[] = {"/lib32", "/lib"};
   static const char *const X86Triples[] = {
-      "i686-linux-gnu",       "i686-pc-linux-gnu",     "i486-linux-gnu",
-      "i386-linux-gnu",       "i386-redhat-linux6E",   "i686-redhat-linux",
-      "i586-redhat-linux",    "i386-redhat-linux",     "i586-suse-linux",
-      "i486-slackware-linux", "i686-montavista-linux", "i586-linux-gnu",
-      "i686-linux-android",   "i386-gnu",              "i486-gnu",
-      "i586-gnu",             "i686-gnu"};
+      "i686-linux-gnu",        "i686-pc-linux-gnu",  "i386-redhat-linux6E",
+      "i686-redhat-linux",     "i386-redhat-linux",  "i586-suse-linux",
+      "i686-montavista-linux", "i686-linux-android", "i386-gnu",
+  };
 
   static const char *const M68kLibDirs[] = {"/lib"};
   static const char *const M68kTriples[] = {


        


More information about the cfe-commits mailing list