Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement support for -nostdc++. Fixes PR6446. | Douglas Gregor | 2010-03-24 | 1 | -0/+3 |
| | | | | llvm-svn: 99417 | ||||
* | C++: Add support for -fno-use-cxa-atexit. | Daniel Dunbar | 2010-03-20 | 1 | -3/+6 |
| | | | | | | | | - So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039 | ||||
* | clang -cc1: Kill off -empty-input only, and replace with -init-only which is an | Daniel Dunbar | 2010-03-19 | 1 | -3/+3 |
| | | | | | | | | actual action. - This is easier to use, and more reliable for timing the thing this was actually meant to be useful for. llvm-svn: 98978 | ||||
* | Optionally store a PreprocessingRecord in the preprocessor itself, and | Douglas Gregor | 2010-03-19 | 1 | -1/+3 |
| | | | | | | tie its creation to a CC1 flag -detailed-preprocessing-record. llvm-svn: 98963 | ||||
* | Add support for -Wwrite-strings. Patch by Mike M! Fixes PR 4804. | John McCall | 2010-03-15 | 1 | -0/+3 |
| | | | | llvm-svn: 98541 | ||||
* | Re-introduce the ctor/dtor alias optimization, this time hidden behind a | John McCall | 2010-02-19 | 1 | -0/+3 |
| | | | | | | command-line option which defaults off. llvm-svn: 96649 | ||||
* | Raise the responsibility for passing -disable-llvm-verifier in NDEBUG builds | John McCall | 2010-02-13 | 1 | -6/+2 |
| | | | | | | | to the driver, and support it in CodeGenOptsToArgs(). Note that this changes the default behavior of clang -cc1 to always run the verifier. llvm-svn: 96077 | ||||
* | Add an option to disable the LLVM verifier pass (which is still always | John McCall | 2010-02-12 | 1 | -1/+1 |
| | | | | | | | disabled in NDEBUG builds). The option applies only to -cc1 invocations and is: -disable_llvm_verifier llvm-svn: 96046 | ||||
* | Check in the beginnings of my new vtable layout builder idea. | Anders Carlsson | 2010-02-11 | 1 | -1/+2 |
| | | | | | | | | Right now, it's off by default but can be tested by passing -fdump-vtable-layouts to clang -cc1. This option will cause all vtables that will normally be emitted as part of codegen to also be dumped using the new layout code. I've also added a very simple new vtable layout test case. llvm-svn: 95865 | ||||
* | clang -cc1: Add -fsjlj-exceptions, which requires far too much button pushing. | Daniel Dunbar | 2010-02-10 | 1 | -0/+3 |
| | | | | llvm-svn: 95785 | ||||
* | Implement synthesizing properties by default. | Fariborz Jahanian | 2010-02-09 | 1 | -0/+5 |
| | | | | | | | | | This is a non-fragile-abi feature only. Since it breaks existing code, it is currently placed under -fobjc-nonfragile-abi2 option for test purposes only until further notice. WIP. llvm-svn: 95685 | ||||
* | Introduce a testbed for merging multiple ASTs into a single AST | Douglas Gregor | 2010-02-09 | 1 | -0/+5 |
| | | | | | | | context with the AST importer. WIP, still useless but at least it has a test. llvm-svn: 95683 | ||||
* | Add support for threadsafe statics, and make them the default (matching gcc). | Anders Carlsson | 2010-02-06 | 1 | -3/+5 |
| | | | | | | Daniel, I'd appreciate a review of the driver/cc1 parts. llvm-svn: 95508 | ||||
* | clang -cc1: Wire up -emit-obj, for emitting object files. | Daniel Dunbar | 2010-02-03 | 1 | -0/+3 |
| | | | | llvm-svn: 95182 | ||||
* | Driver/Frontend: Add support for -fobjc-legacy-dispatch, not yet used. | Daniel Dunbar | 2010-02-01 | 1 | -0/+3 |
| | | | | llvm-svn: 95004 | ||||
* | Introduce serialization and deserialization of diagnostic information | Douglas Gregor | 2010-01-28 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies both when performing code completion and when using ASTs as an intermediary for clang_createTranslationUnitFromSourceFile(). The serialized format is not perfect at the moment, because it does not encapsulate macro-instantiation information. Instead, it maps all source locations back to the instantiation location. However, it does maintain source-range and fix-it information. To get perfect fidelity from the serialized format would require serializing a large chunk of the source manager; at present, it isn't clear if this code will live long enough for that to matter. llvm-svn: 94740 | ||||
* | diagnose invalid values of -ftabstop, patch by Christian Adaker! | Chris Lattner | 2010-01-13 | 1 | -2/+8 |
| | | | | llvm-svn: 93288 | ||||
* | implement -ftabstop=width, patch by Christian Adåker | Chris Lattner | 2010-01-09 | 1 | -0/+5 |
| | | | | llvm-svn: 93078 | ||||
* | Use -fno-math-errno by default, and remove the IsMathErrnoDefault | Dan Gohman | 2010-01-08 | 1 | -3/+3 |
| | | | | | | targethook, which is no longer being used. This fixes PR5971. llvm-svn: 92987 | ||||
* | Remove RewriteBlocks. It has been superseded by RewriteObjC | Kovarththanan Rajaratnam | 2009-12-23 | 1 | -3/+0 |
| | | | | llvm-svn: 92014 | ||||
* | clang -cc1: Rename -mcpu to -target-cpu to match other target options and ↵ | Daniel Dunbar | 2009-12-18 | 1 | -2/+2 |
| | | | | | | not alias driver/backend option. llvm-svn: 91671 | ||||
* | Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used | Daniel Dunbar | 2009-12-18 | 1 | -0/+5 |
| | | | | | | | | to compile a translation unit into the debug info for that file. - Used by parts of Darwin build process to check compiler flags, etc. - <rdar://problem/7256886> clang does not emit AT_APPLE_flags llvm-svn: 91661 | ||||
* | Fix -fdollars-in-identifiers Clang translation. | Daniel Dunbar | 2009-12-16 | 1 | -5/+4 |
| | | | | llvm-svn: 91562 | ||||
* | implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵ | Nuno Lopes | 2009-12-16 | 1 | -0/+3 |
| | | | | | | | | default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument llvm-svn: 91543 | ||||
* | Add -resource-dir to clang -cc1, this allows the base directory for compiler | Daniel Dunbar | 2009-12-15 | 1 | -9/+6 |
| | | | | | | | resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of computed. llvm-svn: 91370 | ||||
* | CompilerInvocation: Move builtin-include-path logic out of ↵ | Daniel Dunbar | 2009-12-13 | 1 | -11/+8 |
| | | | | | | CompilerInvocation::CreateFromArgs. llvm-svn: 91237 | ||||
* | Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gave | Jeffrey Yasskin | 2009-12-12 | 1 | -7/+7 |
| | | | | | | no extra safety anyway. llvm-svn: 91207 | ||||
* | Implement runtime checks for undefined behavior. WIP. | Mike Stump | 2009-12-12 | 1 | -0/+3 |
| | | | | | | | | | | | | | This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. llvm-svn: 91198 | ||||
* | Add clang-cc option '-analyzer-opt-analyze-nested-blocks' to treat block ↵ | Ted Kremenek | 2009-12-07 | 1 | -1/+5 |
| | | | | | | literals as an entry point for analyzer checks. llvm-svn: 90810 | ||||
* | Switch PCHReader::getOriginalSourceFile to use proper diagnostics. | Daniel Dunbar | 2009-12-03 | 1 | -4/+2 |
| | | | | llvm-svn: 90434 | ||||
* | clang-cc: Honor -help and -version when using new style option parsing. | Daniel Dunbar | 2009-12-03 | 1 | -0/+6 |
| | | | | llvm-svn: 90422 | ||||
* | Add clang -cc1 support for -remap-file. | Daniel Dunbar | 2009-12-03 | 1 | -2/+21 |
| | | | | llvm-svn: 90414 | ||||
* | Add clang -cc1 -load option. | Daniel Dunbar | 2009-12-03 | 1 | -0/+5 |
| | | | | llvm-svn: 90413 | ||||
* | Change rtti/Rtti to RTTI, as it is an acronym. | Mike Stump | 2009-12-02 | 1 | -2/+2 |
| | | | | llvm-svn: 90334 | ||||
* | clang -cc1: Move CompilerInvocation deserialization into CompilerInvocation.cpp, | Daniel Dunbar | 2009-12-01 | 1 | -0/+680 |
| | | | | | | where it belongs. llvm-svn: 90198 | ||||
* | Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵ | Daniel Dunbar | 2009-11-30 | 1 | -0/+6 |
| | | | | | | many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127 | ||||
* | Move LLVM backend options to explicit clang-cc / clang -cc1 options, which ↵ | Daniel Dunbar | 2009-11-29 | 1 | -0/+25 |
| | | | | | | we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine. llvm-svn: 90063 | ||||
* | Add clang -cc1 parsing for LangOptions. | Daniel Dunbar | 2009-11-29 | 1 | -2/+2 |
| | | | | | | - This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059 | ||||
* | Change LangOptions::ObjCConstantStringClass to an std::string to avoid ↵ | Daniel Dunbar | 2009-11-29 | 1 | -13/+13 |
| | | | | | | worrying about the lifetime. llvm-svn: 90052 | ||||
* | Move MainFileName option variable into CodeGenOptions instead of LangOptions. | Daniel Dunbar | 2009-11-29 | 1 | -4/+4 |
| | | | | llvm-svn: 90051 | ||||
* | Add clang -cc1 parsing for preprocessor options. | Daniel Dunbar | 2009-11-26 | 1 | -6/+12 |
| | | | | llvm-svn: 89917 | ||||
* | Add clang -cc1 parsing for header search options. | Daniel Dunbar | 2009-11-26 | 1 | -2/+2 |
| | | | | llvm-svn: 89916 | ||||
* | Add clang -cc1 parsing for frontend options. | Daniel Dunbar | 2009-11-25 | 1 | -1/+1 |
| | | | | llvm-svn: 89856 | ||||
* | Add clang -cc1 parsing of diagnostic options. | Daniel Dunbar | 2009-11-23 | 1 | -1/+1 |
| | | | | llvm-svn: 89716 | ||||
* | Add clang -cc1 parsing of analyzer options. | Daniel Dunbar | 2009-11-22 | 1 | -2/+2 |
| | | | | llvm-svn: 89629 | ||||
* | Add clang -cc1 parsing of CodeGenOptions. | Daniel Dunbar | 2009-11-20 | 1 | -1/+2 |
| | | | | llvm-svn: 89464 | ||||
* | Fix some default in the option classes, and some CompilerInvocation argification | Daniel Dunbar | 2009-11-19 | 1 | -15/+12 |
| | | | | | | errors. llvm-svn: 89388 | ||||
* | Sketch some 'clang -cc1' support, for testing parts of CompilerInvocation. | Daniel Dunbar | 2009-11-19 | 1 | -1/+0 |
| | | | | llvm-svn: 89333 | ||||
* | clang-cc: Remove some more llvm::cl::init arguments, by only setting values when | Daniel Dunbar | 2009-11-19 | 1 | -1/+1 |
| | | | | | | | | the argument is given. Also, tweak Opt.Sysroot defaulting. llvm-svn: 89318 | ||||
* | Change -code-completion-debug-printer to -no-code-completion-debug-printer. | Daniel Dunbar | 2009-11-19 | 1 | -6/+6 |
| | | | | | | Also, tweak a few help strings and update CompilerInvocation serialization for prev change. llvm-svn: 89317 |