[cfe-commits] r53976 - in /cfe/trunk: Driver/clang.cpp utils/ccc
Ted Kremenek
kremenek at apple.com
Wed Jul 23 20:49:15 PDT 2008
Author: kremenek
Date: Wed Jul 23 22:49:15 2008
New Revision: 53976
URL: http://llvm.org/viewvc/llvm-project?rev=53976&view=rev
Log:
"This patch adds paths for Fedora 9 in clang.cpp and support for two preprocessor options in ccc."
Patch by Zhongxing Xu!
Modified:
cfe/trunk/Driver/clang.cpp
cfe/trunk/utils/ccc
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=53976&r1=53975&r2=53976&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Jul 23 22:49:15 2008
@@ -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);
Modified: cfe/trunk/utils/ccc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc?rev=53976&r1=53975&r2=53976&view=diff
==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Wed Jul 23 22:49:15 2008
@@ -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:]:
More information about the cfe-commits
mailing list