Граф коммитов

73 Коммитов

Автор SHA1 Сообщение Дата
mike-m c3ec9ae413 Reverted part of r103177 (repositioning of clang-builtin include/)
which breaks clang-i686-xp-msvc9 test-clang.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103180 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-06 15:23:52 +00:00
mike-m ac78b7a7af Reposition clang-builtin include/ to immediately precede /usr/include/,
matching gcc compiler. Fixes #include_next <...> shenanigans that lead to
file-not-found failures with <cstddef> on libstdc++ 4.3.[012].

Updated C++ include header search paths for various Debian/Ubuntu and Fedora
linux distros.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103177 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-06 14:11:13 +00:00
mike-m a608737659 Test commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103090 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-05 17:00:31 +00:00
Chris Lattner 0e3cc05542 fit in 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103075 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-05 05:28:39 +00:00
Chris Lattner ea00f847a0 add GNU C++ include paths for Fedora 11,12 x86_64,
patch by mikem!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102177 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-23 15:55:20 +00:00
Dan Gohman cb421fa690 Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101786 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-19 16:39:44 +00:00
Chris Lattner 86ed3a3263 add haiku support, patch by Paul Davey!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100982 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-11 19:29:39 +00:00
Douglas Gregor 4c2bcad7b8 Implement support for -nostdc++. Fixes PR6446.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99417 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-24 20:13:48 +00:00
Chris Lattner fc904d5b8b on both the mac and linux, /usr/local/include is treated
as a "C++ Friendly" system header directory.  This fixes
PR6523.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97885 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-06 19:38:10 +00:00
Eric Christopher 8383c554cd Remove the linux c includes part of my last patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97679 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-03 23:27:49 +00:00
Eric Christopher 70d9d4196e Add in more c++ header paths for later gccs under gentoo linux.
Add in c header path for various linuxes as well.

Partial patch from Christian Adåker!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97666 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-03 21:41:50 +00:00
Nick Lewycky e69f047a6c Debian sid moved these headers into /4.4 and left /4.4.3 as a symlink. Update.
Also, add support for 32-bit x86 Debian sid.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97347 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-27 22:35:43 +00:00
Chris Lattner 0edeca592f add support for t Fedora 12 (February 2010), patch by
Dyachenko Dmitry.  Our system is "not so elegant" here.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96111 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-13 19:18:26 +00:00
Benjamin Kramer 0db3d725ec Update C++ include paths for Exherbo, by Ingmar Vanhassel.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94420 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-25 12:20:15 +00:00
Benjamin Kramer 6cd5216bb6 Make some helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94004 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-20 16:21:40 +00:00
Benjamin Kramer ab8ae19ea4 Don't store a Twine temporary, it's unsafe.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94003 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-20 16:18:11 +00:00
Chris Lattner 0720b51590 add support for Fedora 10 x86_64, there really should be a better way to handle this.
patch by Dmitry


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93948 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-19 23:30:00 +00:00
Nuno Lopes afe859a9a6 PR6055: fix FreeBSD c++ include path. patch by Roman Divacky
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93668 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-17 00:00:11 +00:00
Chris Lattner 7a7ca281bc improve support for dragonfly, patch by Sascha Wildner!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93044 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-09 05:41:14 +00:00
Torok Edwin 331e8010ae Debian has x86_64-linux-gnu, not x86_64-pc-linux-gnu, so add it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91698 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 17:43:54 +00:00
Torok Edwin fc4b899563 Move the 4.4.2 c++ include search to the top, otherwise it was picking the 4.1.3
dirs on my system. Which is wrong, since it was missing the x86_64-pc-linux-gnu
suffix.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91694 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 17:29:14 +00:00
Daniel Dunbar 8b9adfea5e Add -resource-dir to clang -cc1, this allows the base directory for compiler
resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of
computed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91370 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-15 00:06:45 +00:00
Daniel Dunbar 1e69fe3a9f CompilerInvocation: Move builtin-include-path logic out of CompilerInvocation::CreateFromArgs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91237 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-13 03:45:58 +00:00
Benjamin Kramer e89ba59005 Twinify InitHeaderSearch::AddPath and use it in C++ include path generation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90853 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-08 12:38:20 +00:00
Benjamin Kramer 9e9ddf6100 Use StringRefs in InitHeaderSearch::AddDelimitedPaths.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90852 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-08 12:11:06 +00:00
Nuno Lopes 33cc2437ae add fedora 12 include path
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90772 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-07 17:18:48 +00:00
Daniel Dunbar e7cb7e4570 Kill a few more random stderr uses.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90441 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-03 09:14:02 +00:00
John Thompson 9319f02dea Put back hard-coded paths for win32 until I figure out what happened to failed tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89677 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-23 17:49:27 +00:00
Rafael Espindola 6ec18a3f86 Reorder the header search a bit so that it matches gcc exactly:
*) the ../backward dir is the last in libstdc++ to be searched
*) If compiling c++, the c++ headers are searched first



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89661 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-23 16:31:19 +00:00
John Thompson 75ee3bd6e7 Revised Win32 include path to search highest version in registry, plus platform SDK path
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89517 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-21 00:15:52 +00:00
Nuno Lopes 189a14869a add Fedora 11 include path. what a crap..
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89098 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 15:28:35 +00:00
Daniel Dunbar 1b483e70ad Remove unused IsCXXAware and IgnoreSysRoots option from HeaderSearchOptions::Entry.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89035 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 05:04:15 +00:00
Daniel Dunbar c363cb1929 Store more information in HeaderSearchOptions so that its initialization is not
language dependent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88981 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-16 22:38:40 +00:00
Rafael Espindola ab7ae95c46 Use configure options for searching for libstdc++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88945 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-16 19:49:37 +00:00
Rafael Espindola aadd7a4845 Use StringRef::split instead of SplitString.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87085 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-13 05:13:58 +00:00
Daniel Dunbar c706468b1e Avoid comparing string literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86967 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-12 07:28:29 +00:00
Rafael Espindola f0a2f51be5 Use the --with-c-include-dirs configure option.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86956 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-12 05:48:41 +00:00
Daniel Dunbar 5814e657c9 Allow Preprocessor to take ownership of the HeaderSearch object. I think it should probably always own the header search object, but I'm not sure...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86882 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-11 21:44:21 +00:00
Daniel Dunbar 2cdafa8001 Privatize InitHeaderSearch, this functionality is only exposed via
ApplyHeaderSearchOptions now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86617 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-09 23:02:47 +00:00
Daniel Dunbar dd35ce9a78 Switch clang-cc to use ApplyHeaderSearchOptions, and fix a thinko.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86341 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-07 04:58:12 +00:00
Daniel Dunbar 63c8b77334 Add HeaderSearchOptions class, for packaging the information needed to
initialize HeaderSearch. Not used yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86338 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-07 04:20:50 +00:00
Daniel Dunbar e166582f8f Lift InitHeaderSearch::AddEnvVarPaths logic higher.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86337 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-07 04:20:39 +00:00
Daniel Dunbar 5c5758bb0a Formatting fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86336 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-07 04:20:25 +00:00
John Thompson 40d1bb6383 Eliminate tabls
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86183 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 22:03:02 +00:00
Sebastian Redl 5114ecab14 Add Ubuntu 9.10 libstdc++ install location.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86142 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 17:44:49 +00:00
Benjamin Kramer 5d7a188cbc Add C++ include paths for Exherbo. Patch by Daniel Mierswa!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85588 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-30 12:57:13 +00:00
Rafael Espindola e4b255c80a Split AddDefaultSystemIncludePaths into C, C++ and framework specific functions.
The user visible changes are:

*) Frameworks are only searched on OS X
*) The Cygwin c++ headers are now marked as c++ aware. I am almost
sure that not marking them was a bug.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85240 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-27 14:47:31 +00:00
Nuno Lopes aa546e2d11 add gentoo x86 2009.1 (gcc 4.3.4) include paths
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84371 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-17 23:11:14 +00:00
Daniel Dunbar f6dc5aca85 Add Ubuntu 9.04 C++ search path.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84301 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-17 03:19:56 +00:00
Edward O'Callaghan 7adf94906e AuroraUX toolchain fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84176 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-15 07:44:07 +00:00