Index: lib/Frontend/InitHeaderSearch.cpp
===================================================================
--- lib/Frontend/InitHeaderSearch.cpp	(revision 141774)
+++ lib/Frontend/InitHeaderSearch.cpp	(working copy)
@@ -738,6 +738,8 @@
     // RHEL5(gcc44)
     AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.4.4",
                                 "x86_64-redhat-linux6E", "32", "", triple);
+    AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.4.4",
+                                "i386-redhat-linux6E", "", "", triple);
     // Fedora 13
     AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.4.4",
                                 "x86_64-redhat-linux", "32", "", triple);
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp	(revision 141774)
+++ lib/Driver/ToolChains.cpp	(working copy)
@@ -1436,7 +1436,8 @@
     else if (Data.startswith("Fedora release") &&
              Data.find("Rawhide") != StringRef::npos)
       return FedoraRawhide;
-    else if (Data.startswith("Red Hat Enterprise Linux") &&
+    else if ((Data.startswith("Red Hat Enterprise Linux") ||
+             Data.startswith("CentOS")) &&
              Data.find("release 6") != StringRef::npos)
       return RHEL6;
     else if ((Data.startswith("Red Hat Enterprise Linux") ||
@@ -1663,6 +1664,7 @@
         "i386-linux-gnu",
         "i686-pc-linux-gnu",
         "i486-linux-gnu",
+        "i386-redhat-linux6E",
         "i686-redhat-linux",
         "i586-suse-linux",
         "i486-slackware-linux"
