summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Driver: Warn when 'clang' is used to compile a source file we couldDaniel Dunbar2009-03-241-3/+9
| | | | | | conceivably handle, but are defaulting to not using clang for. llvm-svn: 67641
* Driver: Change default use of "clang" compiler.Daniel Dunbar2009-03-241-12/+18
| | | | | | | | | | | | | | | | | | | | | | - Don't default to using clang for C++ (use -ccc-clang-cxx to override). - Default to only using clang on i386 and x86_64 (use -ccc-clang-archs "" to override). - <rdar://problem/6712350> [driver] clang should not be used on powerpc by default - <rdar://problem/6705767> driver should default to -ccc-no-clang-cxx I plan to add a warning that we are not using the clang compiler for the given compilation so that users do not think clang is being used in situations it isn't. This change is motivated by the desire to be able to drop clang into a build and have things "just work", even if it happens to get used to compile C++ code or code for an architecture we don't support yet. llvm-svn: 67640
* Move ToolChain::ShouldUseClangCompiler toDaniel Dunbar2009-03-243-30/+29
| | | | | | | Driver::ShouldUseClangCompiler. - No functionality change. llvm-svn: 67639
* Driver: Translate -fverbose-asm for LLVM backend.Daniel Dunbar2009-03-241-1/+1
| | | | | | | - <rdar://problem/6715707> driver should translate -fverbose-asm into -asm-verbose llvm-svn: 67634
* Really fix cmake style builds.Mike Stump2009-03-241-0/+5
| | | | llvm-svn: 67633
* Driver: Result files shouldn't be removed on failure when -save-tempsDaniel Dunbar2009-03-241-1/+1
| | | | | | | | is specified. - No easy way to make a safe test case for this (given where the driver is supposed to put temp files). llvm-svn: 67632
* Driver: ArgList::getLastArg was in fact returning the first matching arg.Daniel Dunbar2009-03-241-3/+1
| | | | | | | - <rdar://problem/6715818> clang doesn't honor gcc semantic that last -O optimization option wins. llvm-svn: 67628
* Driver: Forward -MMD (not -MM) to clang-cc; this got lost inDaniel Dunbar2009-03-241-1/+1
| | | | | | translation, the former we support, the later we don't (yet). llvm-svn: 67611
* Install clang-cc to libexec/clang-cc (instead of bin/clang-cc).Daniel Dunbar2009-03-241-0/+8
| | | | | | - Updated ccc & driver to look in libexec/ for tools. llvm-svn: 67607
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Driver: lipo wasn't being called correctly (translation failure fromDaniel Dunbar2009-03-241-0/+3
| | | | | | ccc due to the different way we handle output arguments). llvm-svn: 67583
* Driver: Make argument parsing fast.Daniel Dunbar2009-03-231-13/+32
| | | | | | | | | | | On a synthetic command line consisting of almost all defined options, this drops wall time from .00494 to .00336 and user time from .00258 to .00105. On the same benchmark, clang-driver is about 15% faster than the primary gcc driver and almost twice as fast as the gcc driver driver. llvm-svn: 67564
* Driver: Fix off by one in computation of first searchable option.Daniel Dunbar2009-03-231-1/+1
| | | | llvm-svn: 67552
* Driver: Add two special groups of "whitelisted" options which we knowDaniel Dunbar2009-03-231-0/+12
| | | | | | | | | | | | | | | | | | | | clang doesn't support, and don't want to warn are unused. Eventually these should disappear. Here is a more readable list than is in the diff: W options: -Wall, -Wcast-align, -Wchar-align, -Wchar-subscripts, -Werror, -Wextra, -Winline, -Wint-to-pointer-cast, -Wmissing-braces, -Wmost, -Wnested-externs, -Wno-format-y2k, -Wno-four-char-constants, -Wno-missing-field-initializers, -Wno-trigraphs, -Wno-unknown-pragmas, -Wno-unused-parameter, -Wparentheses, -Wpointer-arith, -Wpointer-to-int-cast, -Wreturn-type, -Wshorten-64-to-32, -Wswitch, -Wunused-function, -Wunused-label, -Wunused-value, -Wunused-variable, -Wwrite-strings. f options: -fasm-blocks, -fmessage-length=. llvm-svn: 67549
* Driver: Check that options are ordered properly (outside ofDaniel Dunbar2009-03-231-5/+75
| | | | | | | | Release-Asserts mode). Also, avoid searching through option groups (which will never match). llvm-svn: 67548
* Driver: Setup file and program search paths in tool chains.Daniel Dunbar2009-03-234-12/+90
| | | | llvm-svn: 67529
* Driver: Drop code for checking bounds in SeparateArg::render, thisDaniel Dunbar2009-03-221-3/+2
| | | | | | situation should never occur now that arguments are parsed correctly. llvm-svn: 67493
* Driver: Implement 'missing argument' error.Daniel Dunbar2009-03-224-22/+46
| | | | llvm-svn: 67490
* fix PR3859: crash with 'cc -V'Nuno Lopes2009-03-221-2/+3
| | | | llvm-svn: 67472
* Driver: Give Compilation::Execute total control over the Driver resultDaniel Dunbar2009-03-211-0/+4
| | | | | | | code; and don't return an error code when -### is present, even if errors occur. llvm-svn: 67425
* ccc/Driver: .s defaults to 'assembler-with-cpp' on Darwin.Daniel Dunbar2009-03-202-2/+19
| | | | | | | | | | - <rdar://problem/6669441> ccc doesn't handle assembler-with-cpp semantics correctly (but clang supports it) - This is sad, because it requires a fairly useless target hook. C'est la vie. llvm-svn: 67418
* Driver: Switch to using -include-pth.Daniel Dunbar2009-03-201-35/+23
| | | | llvm-svn: 67393
* Driver: Parse Darwin version out of target triple.Daniel Dunbar2009-03-201-1/+41
| | | | llvm-svn: 67388
* Driver: Add and use darwin::Assemble tool.Daniel Dunbar2009-03-203-4/+66
| | | | | | - Based on patch from Pieter de Bie; thanks! llvm-svn: 67379
* Driver: Add two option overload for AddAllArgValues.Daniel Dunbar2009-03-201-0/+13
| | | | llvm-svn: 67377
* Driver: Add Arg::getAsString and use when dumping arguments toDaniel Dunbar2009-03-202-6/+22
| | | | | | | | diagnostics. - This ensures that the whole argument and values are printed, instead of just the option name. llvm-svn: 67366
* strictly evaluate SVN_REVISION so that svnversion is run once instead of 4 ↵Chris Lattner2009-03-201-3/+5
| | | | | | times. llvm-svn: 67365
* Driver: Implement -print-search-dirs.Daniel Dunbar2009-03-201-0/+19
| | | | llvm-svn: 67362
* Driver: Sketch Darwin tool chains.Daniel Dunbar2009-03-203-11/+111
| | | | llvm-svn: 67356
* Driver: Add darwin::Lipo tool.Daniel Dunbar2009-03-202-1/+42
| | | | llvm-svn: 67355
* Driver: Move tool chain implementations into ToolChains.cpp.Daniel Dunbar2009-03-202-50/+81
| | | | llvm-svn: 67350
* Driver: Temporary hack to allow -ccc-print-bindings to work (forDaniel Dunbar2009-03-201-1/+4
| | | | | | testing) even with -pipe on. llvm-svn: 67348
* Driver/clang: -mattr strings were not comma separated.Daniel Dunbar2009-03-191-0/+4
| | | | | | - Apologies for commits w/o test cases; they are coming. llvm-svn: 67310
* Driver: Compilation::Execute wasn't returning result code correctly.Daniel Dunbar2009-03-191-1/+1
| | | | llvm-svn: 67296
* Driver: Executing piped jobs with a single command is easy.Daniel Dunbar2009-03-191-23/+30
| | | | llvm-svn: 67295
* Driver: Claim unused input arguments when emitting "input file unused"Daniel Dunbar2009-03-191-0/+2
| | | | | | diagnostic (to suppress more generic unused warning). llvm-svn: 67294
* Driver: Claim -arch options when pipelining, and claim arguments thatDaniel Dunbar2009-03-192-2/+8
| | | | | | | | | | | are forwarded to GCC. - The later is unfortunate, as it prevents us from generally warning about anything interesting on platforms that use a generic toolchain. However, we can't do much better without significantly complicating things, and generally we should have proper tool chain definitions. llvm-svn: 67293
* Driver: Handle "linker input" arguments.Daniel Dunbar2009-03-193-31/+69
| | | | | | | | | - Make InputInfo a variant of filename, pipe, input argument, nothing. - Leave a FIXME in InputInfo that this should be revisited. llvm-svn: 67292
* Driver: Add Arg::renderAsInput; this is a messy area and something IDaniel Dunbar2009-03-191-0/+10
| | | | | | was hoping to clean up in the rewrite, but I don't see it yet. llvm-svn: 67291
* Driver: Fix bug in translating -O to clang, add clang-translation testDaniel Dunbar2009-03-181-1/+1
| | | | | | case. llvm-svn: 67257
* Driver: Resolve program path for "cp" (used as part of transparent gccDaniel Dunbar2009-03-181-1/+3
| | | | | | PCH support). llvm-svn: 67256
* Driver: Forcibly disable pipe support until we can execute them, theDaniel Dunbar2009-03-181-1/+13
| | | | | | driver is functional without them. llvm-svn: 67254
* Driver: Delete the temporary files llvm::sys::Path::makeUniqueDaniel Dunbar2009-03-181-0/+4
| | | | | | sometimes leaves around. llvm-svn: 67253
* Make -j8 safe.Mike Stump2009-03-181-1/+1
| | | | llvm-svn: 67252
* Driver: Execute jobs; no pipe support yet.Daniel Dunbar2009-03-181-14/+56
| | | | llvm-svn: 67250
* Driver: Cleanup temporary/result files.Daniel Dunbar2009-03-182-3/+47
| | | | llvm-svn: 67248
* Driver: Lookup program names using llvm::sys::Program::FindProgramByName Daniel Dunbar2009-03-182-1/+9
| | | | | | | | | if our usual methods fail. This isn't necessary for running the tool, but improves the accuracy of logging output. Also, have GCC tools lookup gcc program path. llvm-svn: 67243
* The eventual name of this will be clang, might as well start now.Mike Stump2009-03-181-1/+1
| | | | llvm-svn: 67241
* Driver: Support ToolChain specific path lists to search for files andDaniel Dunbar2009-03-181-2/+25
| | | | | | programs. llvm-svn: 67229
* Move generated file to ObjDir.Mike Stump2009-03-181-4/+4
| | | | llvm-svn: 67225
OpenPOWER on IntegriCloud