summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* rename -fprint-source-range-info -> -fdiagnostics-print-source-range-info.Chris Lattner2009-04-211-0/+1
| | | | | | Temporarily accept both of them, I'll rip out the old one after awhile. llvm-svn: 69662
* Look at the TMP environment variable as well.Daniel Dunbar2009-04-211-0/+2
| | | | llvm-svn: 69638
* Also look at the TEMP environment variable as a place to put temporaryDaniel Dunbar2009-04-201-5/+6
| | | | | | files. llvm-svn: 69622
* If defined, use TMPDIR environment variable as location for temporary files.Daniel Dunbar2009-04-201-1/+6
| | | | llvm-svn: 69609
* Forward f[no-]dollars-in-identifiers to clang, when specified.Daniel Dunbar2009-04-191-2/+12
| | | | llvm-svn: 69549
* Forward -fno-diagnostics-fixit-info to clang-cc.Daniel Dunbar2009-04-191-0/+5
| | | | llvm-svn: 69546
* Preliminary PCH support in the driverDouglas Gregor2009-04-183-17/+53
| | | | llvm-svn: 69410
* Added -print-ivar-layout option. No change in functionalityFariborz Jahanian2009-04-171-0/+1
| | | | | | yet. llvm-svn: 69346
* Driver: Allow using clang as a precompiler, even if it is anDaniel Dunbar2009-04-161-0/+6
| | | | | | unsupported arch. llvm-svn: 69322
* Pass -fdiagnostics-show-option to clang-cc by default.Daniel Dunbar2009-04-161-0/+5
| | | | | | - <rdar://problem/6796848> implement -fdiagnostics-show-option llvm-svn: 69276
* Driver: Forward -W* to clang, it can handle all these itself now.Daniel Dunbar2009-04-161-4/+2
| | | | | | Remove clang_W_Group and clang_ignored_W_Group. llvm-svn: 69261
* Driver: Add --help-hiddenDaniel Dunbar2009-04-151-3/+38
| | | | llvm-svn: 69171
* Driver: For clang, accept -fsigned-bitfields and rejectDaniel Dunbar2009-04-151-0/+7
| | | | | | | | -funsigned-bitfields for now (clang defaults to -fsigned-bitfields). - <rdar://problem/6790309> ER: Support -fsigned-bitfields/-funsigned-bitfields llvm-svn: 69131
* Implement support for GCC's -dD mode, which dumps -E output *and*Chris Lattner2009-04-121-0/+1
| | | | | | macro definitions. llvm-svn: 68884
* Honor MACOSX_DEPLOYMENT_TARGET environment variable.Daniel Dunbar2009-04-101-1/+9
| | | | llvm-svn: 68822
* Driver: Forward -miphoneos-version-min to clang.Daniel Dunbar2009-04-102-1/+13
| | | | llvm-svn: 68816
* Driver: CCC_ADD_ARGS could end up using dangling pointers.Daniel Dunbar2009-04-101-2/+0
| | | | llvm-svn: 68805
* Driver: Split out CPP specific options for clang so that we don't endDaniel Dunbar2009-04-082-246/+264
| | | | | | | | up adding them twice when running with -no-integrated-cpp or -save-temps. - <rdar://problem/6766636> -save-temps falls over with prefix headers llvm-svn: 68660
* More fixes to builtin preprocessor defines.Daniel Dunbar2009-04-081-0/+5
| | | | | | | | | | | | | | | | | | | | | - Add -static-define option driver can use when __STATIC__ should be defined (instead of __DYNAMIC__). - Don't set __OPTIMIZE_SIZE__ on Os, __OPTIMIZE_SIZE__ is tied to Oz. - Set __NO_INLINE__ following GCC 4.2. - Set __GNU_GNU_INLINE__ or __GNU_STDC_INLINE__ following GCC 4.2. - Set __EXCEPTIONS for Objective-C NonFragile ABI. - Set __STRICT_ANSI__ for standard conforming modes. - I added a clang style test case in utils for this, but its not particularly portable and I don't think it belongs in the test suite. llvm-svn: 68621
* Darwin ld: Unconditionally add -lstdc++ if we are pretending to beDaniel Dunbar2009-04-081-0/+5
| | | | | | g++. llvm-svn: 68601
* Make debug info work when using -save-temps.Daniel Dunbar2009-04-081-0/+5
| | | | | | | | | | | | | | | | | | - This is pretty ugly, but the most obvious solution. Chime in if you have a nicer one. - The problem is that with -save-temps, clang-cc has no idea what the name of the original input file is. However, the user expects to be able to set breakpoints based on the input file name. - We support this by providing a new option -main-file-name (similar to -dumpbase used by gcc) which allows the driver to pass in the original file name. - <rdar://problem/6753383> building with clang using --save-temps gets the compile unit name from the .i file... llvm-svn: 68595
* Set __PIC__ (more) correctly.Daniel Dunbar2009-04-081-0/+11
| | | | | | | | | | | - Add -pic-level clang-cc option to specify the value for the define, updated driver to pass this. - Added __pic__ - Added OBJC_ZEROCOST_EXCEPTIONS define while I was here (to match gcc). llvm-svn: 68584
* Driver: Fix forwarding of -fpascal-strings.Daniel Dunbar2009-04-071-14/+11
| | | | llvm-svn: 68570
* Driver: Fix forwarding of -{std,ansi,trigraphs} when there areDaniel Dunbar2009-04-071-2/+17
| | | | | | | | multiple instances of an option. Also, removed direct -ansi support from clang-cc. llvm-svn: 68558
* Driver: Forward remaining -f options to clang manually.Daniel Dunbar2009-04-071-1/+19
| | | | | | | - Groups are really just intended to hold inherent structure of the options, not be abused for individual tool argument translation. llvm-svn: 68554
* Driver: Only forward last instance of -mmacosx-version-min= andDaniel Dunbar2009-04-071-3/+4
| | | | | | | | -isysroot to clang. - Don't forward arbitrary -i* options to clang, just the ones we know about. llvm-svn: 68553
* Driver: Manually translate a number of -f with no- variants options toDaniel Dunbar2009-04-071-0/+26
| | | | | | | | | | | | clang. - We will eventually want some more driver infrastructre for this probably. - For now, the clang-cc interface stays relatively the same, but we don't accept multiple instances anymore, or the [no-] variants directly. llvm-svn: 68550
* Driver: Add default for ArgList::hasFlag and simplify implementation.Daniel Dunbar2009-04-071-6/+2
| | | | llvm-svn: 68549
* Driver: Explicitly warn that -pg isn't supported (even though weDaniel Dunbar2009-04-071-3/+15
| | | | | | aren't failing the compilation). llvm-svn: 68540
* Driver: Add 'q' flag for options which shouldn't be reported as unused.Daniel Dunbar2009-04-073-2/+7
| | | | | | | - <rdar://problem/6756295> warning about '-dynamic' argument unused during compilation seems incorrect llvm-svn: 68535
* Driver: Fix a parsing bug where some options were matchedDaniel Dunbar2009-04-071-8/+15
| | | | | | | | | incorrectly. I'm blanking on the smartest way to write this search, but we should just do the right thing when we move to TableGen. - <rdar://problem/6761194> [driver] -Wextra-tokens isn't parsed correctly llvm-svn: 68525
* Driver: More verbosity reduction.Daniel Dunbar2009-04-071-1/+2
| | | | | | | | | | | | | | - Ignore some more -W options and -[fm] options which we can somewhat safely ignore. - Recognize that -W is an alias for -Wextra W: -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wfour-char-constants -Winit-self -Wmissing-format-attribute -Wno-#warnings -Wno-comment -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wstrict-prototypes -Wunused-parameter f: -fconstant-cfstrings -fdollars-in-identifiers -finline -finline-functions -fno-inline -fno-keep-inline-functions -fno-strict-aliasing -fobjc-atdefs -fobjc-call-cxx-cdtors -fobjc-new-property -fstack-protector m: -mconstant-cfstrings -mfix-and-continue llvm-svn: 68487
* Driver: Handle -dumpversion, this is used by some configurationDaniel Dunbar2009-04-041-0/+8
| | | | | | scripts. llvm-svn: 68418
* Driver: Handle properly calling dsymutil when source input isDaniel Dunbar2009-04-041-2/+12
| | | | | | | | | | | | | | | | preceeded by a linker input flag. - <rdar://problem/6757236> clang should make a dSYM when going straight from source to binary - This still matches gcc, but the right way to solve this would be to detect the situation we care about (we are compiling from source and linking in one step), instead of looking at the suffix of the input file. The Tool doesn't quite have enough information to do this yet, however. - Also, find the suffix correctly. llvm-svn: 68417
* Driver: Automatically suppress warnings for duplicate versions ofDaniel Dunbar2009-04-041-1/+21
| | | | | | flags which were used for something. llvm-svn: 68416
* Driver: Add -Qunused-arguments option to suppress driver "unusedDaniel Dunbar2009-04-031-2/+3
| | | | | | arguments" warning. llvm-svn: 68410
* Driver: Explicitly ignore -fpch-preprocess when using clang, we don'tDaniel Dunbar2009-04-032-0/+17
| | | | | | need to do anything special to support this. llvm-svn: 68403
* Driver: Add missed translation for darwin::Preprocess (gcc), -d*Daniel Dunbar2009-04-031-0/+2
| | | | | | wasn't being forwarded. llvm-svn: 68365
* Add some whitespace to test my commit privileges.Ed Schouten2009-04-021-0/+1
| | | | | | Approved by: ddunbar llvm-svn: 68343
* Driver: Tweak search paths for FreeBSD.Daniel Dunbar2009-04-021-2/+5
| | | | | | - Patch by Pawel Worach! llvm-svn: 68332
* Wire --version to normal -v version text.Daniel Dunbar2009-04-021-0/+5
| | | | llvm-svn: 68316
* Driver: Allow -ccc-gcc-name to specify the name/path to use whenDaniel Dunbar2009-04-012-2/+9
| | | | | | calling gcc in generic configurations. llvm-svn: 68260
* Quick and dirty (!) fix to make sure we use powerpc in triples.Daniel Dunbar2009-04-013-10/+32
| | | | | | | | | - PR3922 - I have a clean solution for this in flight, but it may take a while to come to fruition so we'll take a quick fix for now. llvm-svn: 68241
* Driver: Add freebsd::LinkDaniel Dunbar2009-04-013-3/+125
| | | | | | - Patch by Ed Schouten! llvm-svn: 68233
* Remove a FIXME, use -emit-pth to drive PTH generation.Daniel Dunbar2009-04-011-3/+1
| | | | | | - c.f. r68164 llvm-svn: 68184
* Tweak/cleanup darwin::Link a bit, add several FIXMES, and improve testDaniel Dunbar2009-04-011-41/+42
| | | | | | case. llvm-svn: 68182
* Tweak darwin::Assemble and add a FIXME.Daniel Dunbar2009-04-011-3/+8
| | | | llvm-svn: 68165
* Driver: Implement basic --help text.Daniel Dunbar2009-03-311-0/+72
| | | | | | | | - PR3875. - <rdar://problem/6615249> [driver] ccc should support some form of --help llvm-svn: 68148
* Driver: Add OptTable::getOptionKind.Daniel Dunbar2009-03-311-3/+5
| | | | | | Also, removed default value for getOptionMetaVar. llvm-svn: 68146
* Driver: Forward -Wp, and -Xpreprocessor arguments to clang when usingDaniel Dunbar2009-03-311-0/+12
| | | | | | | | | | | | the preprocessor. - PR3602. - As is inherent in the blanket forwarding options, this will only work if clang-cc happens to accept what the user passed. Users by and large should use driver options to interact with the preprocessor, if at all possible. llvm-svn: 68144
OpenPOWER on IntegriCloud