"This patch adds paths for Fedora 9 in clang.cpp and support for two preprocessor options in ccc."

Patch by Zhongxing Xu!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53976 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index cf3f979..cb4c5e4 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -977,6 +977,13 @@
       AddPath("/usr/include/c++/4.1.2/backward", System, true, false, false, 
               Headers);
 
+      // Fedora 9
+      AddPath("/usr/include/c++/4.3.0", System, true, false, false, Headers);
+      AddPath("/usr/include/c++/4.3.0/i386-redhat-linux", System, true, false,
+              false, Headers);
+      AddPath("/usr/include/c++/4.3.0/backward", System, true, false, false, 
+              Headers);
+
       // Arch Linux 2008-06-24
       AddPath("/usr/include/c++/4.3.1", System, true, false, false, Headers);
       AddPath("/usr/include/c++/4.3.1/i686-pc-linux-gnu", System, true, false,
@@ -1020,6 +1027,10 @@
     AddPath("/usr/lib/gcc/i386-redhat-linux/4.1.2/include", System,
             false, false, false, Headers);
 
+    // Fedora 9
+    AddPath("/usr/lib/gcc/i386-redhat-linux/4.3.0/include", System,
+            false, false, false, Headers);
+
     //Debian testing/lenny x86
     AddPath("/usr/lib/gcc/i486-linux-gnu/4.2.3/include", System,
             false, false, false, Headers);
diff --git a/utils/ccc b/utils/ccc
index d29443c..e172080 100755
--- a/utils/ccc
+++ b/utils/ccc
@@ -102,6 +102,10 @@
         if arg in ['--param', '-u']:
             i += 1
 
+        # Preprocessor options with one argument that should be ignored
+        if arg in ['-MT', '-MF']:
+            i += 1
+
         # Prefix matches for the compile mode
         if arg[:2] in ['-D', '-I', '-U', '-F']:
             if not arg[2:]: