Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move a few more symbols to .rodata/.data.rel.ro | Nuno Lopes | 2009-12-23 | 1 | -1/+1 |
| | | | | llvm-svn: 92012 | ||||
* | Driver: Fix '... -O4 -O0 ...', which was generating bitcode. | Daniel Dunbar | 2009-12-23 | 1 | -2/+5 |
| | | | | llvm-svn: 91962 | ||||
* | Driver: Drop ToolChain::getHost() | Daniel Dunbar | 2009-12-23 | 1 | -1/+1 |
| | | | | llvm-svn: 91960 | ||||
* | Driver: When linking, don't warn about unused arguments which are obviously only | Daniel Dunbar | 2009-12-22 | 1 | -0/+5 |
| | | | | | | | | used during compilation. - There is no easy way to define this group properly, unfortunately, and maybe this is a losing strategy. For now this is unambiguous more friendly, though. llvm-svn: 91940 | ||||
* | ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly". | Daniel Dunbar | 2009-12-21 | 1 | -0/+29 |
| | | | | | | | | - Correctly is in quotes, because we are following what I interpreted as GCC's intent (which diverges from practice, naturally). - Also, fix the arch define for arm1136jf-s. llvm-svn: 91855 | ||||
* | Add ToolChain::getDriver() and use it instead of going through the HostInfo | Daniel Dunbar | 2009-12-21 | 3 | -45/+48 |
| | | | | | | object. llvm-svn: 91830 | ||||
* | Remove ';' after method definition. Noticed by clang++, which one would think | Daniel Dunbar | 2009-12-19 | 1 | -1/+1 |
| | | | | | | | would have a higher respect for its own code. This is getting old, is this warning really adding value? llvm-svn: 91779 | ||||
* | ARM: Use front-end specific target features "soft-float" and ↵ | Daniel Dunbar | 2009-12-19 | 1 | -1/+19 |
| | | | | | | "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. llvm-svn: 91755 | ||||
* | 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 | 3 | -0/+22 |
| | | | | | | | | 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 | -2/+2 |
| | | | | llvm-svn: 91562 | ||||
* | implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵ | Nuno Lopes | 2009-12-16 | 1 | -0/+4 |
| | | | | | | | | 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 | ||||
* | Driver: Pass -resource-dir to clang -cc1, since the driver presumably ↵ | Daniel Dunbar | 2009-12-15 | 1 | -1/+11 |
| | | | | | | already found itself. llvm-svn: 91384 | ||||
* | Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gave | Jeffrey Yasskin | 2009-12-12 | 1 | -1/+1 |
| | | | | | | no extra safety anyway. llvm-svn: 91207 | ||||
* | Implement runtime checks for undefined behavior. WIP. | Mike Stump | 2009-12-12 | 1 | -0/+1 |
| | | | | | | | | | | | | | 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 | ||||
* | Make using '-fshort-enums' an error until it is actually implemented ↵ | Ted Kremenek | 2009-12-12 | 1 | -1/+2 |
| | | | | | | (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>. llvm-svn: 91191 | ||||
* | Driver: Switch to using "clang" "-cc1" instead of "clang-cc". | Daniel Dunbar | 2009-12-11 | 1 | -2/+7 |
| | | | | llvm-svn: 91174 | ||||
* | spread 'const' love to some variables. this considerably reduces the amount ↵ | Nuno Lopes | 2009-12-10 | 2 | -3/+3 |
| | | | | | | of dirty data around. llvm-svn: 91002 | ||||
* | Unbreak clang-cc handling of -msoft-float / -mfloat-abi=, which I borked. | Daniel Dunbar | 2009-12-08 | 1 | -3/+6 |
| | | | | llvm-svn: 90873 | ||||
* | Remove several .c_str() to be forward-compatible with StringRef. | Jeffrey Yasskin | 2009-12-08 | 1 | -3/+3 |
| | | | | llvm-svn: 90822 | ||||
* | Enable '-analyzer-opt-analyze-nested-blocks' by default for testing. | Ted Kremenek | 2009-12-07 | 1 | -0/+3 |
| | | | | llvm-svn: 90812 | ||||
* | Shorten the help test for -no-canonical-prefixes, put it behind HelpHidden and | Rafael Espindola | 2009-12-07 | 2 | -3/+3 |
| | | | | | | claim it in Driver.cpp instead of Tools.cpp. llvm-svn: 90777 | ||||
* | Unbreak -ccc-cxx and -ccc-clang-cxx defaulting. | Daniel Dunbar | 2009-12-05 | 1 | -2/+3 |
| | | | | llvm-svn: 90629 | ||||
* | Driver: Switch -ccc-* options to using the standard options functionality. | Daniel Dunbar | 2009-12-04 | 1 | -167/+38 |
| | | | | | | - I still want to get rid of them, but manually handling them isn't adding value. llvm-svn: 90602 | ||||
* | OptTable: Allow option groups to be used to define "help groups", which will | Daniel Dunbar | 2009-12-04 | 1 | -20/+61 |
| | | | | | | collate the options inside that group. llvm-svn: 90592 | ||||
* | OptParser: Add HelpHidden flag. | Daniel Dunbar | 2009-12-04 | 1 | -1/+5 |
| | | | | llvm-svn: 90591 | ||||
* | Add gcc's -no-canonical-prefixes option to clang. | Rafael Espindola | 2009-12-04 | 1 | -0/+3 |
| | | | | llvm-svn: 90577 | ||||
* | Fix Clang tool translation to forward -fvisibility as separate arguments, the | Daniel Dunbar | 2009-12-03 | 1 | -2/+6 |
| | | | | | | old syntax isn't supported. llvm-svn: 90469 | ||||
* | Add OptTable::PrintHelp. | Daniel Dunbar | 2009-12-03 | 2 | -0/+77 |
| | | | | llvm-svn: 90420 | ||||
* | Driver: Add Command::Creator member variable, which tracks the tool that was | Daniel Dunbar | 2009-12-02 | 2 | -20/+21 |
| | | | | | | used to create a particular command. llvm-svn: 90287 | ||||
* | clang -cc1: Move CompilerInvocation deserialization into CompilerInvocation.cpp, | Daniel Dunbar | 2009-12-01 | 1 | -672/+1 |
| | | | | | | where it belongs. llvm-svn: 90198 | ||||
* | Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵ | Daniel Dunbar | 2009-11-30 | 2 | -4/+6 |
| | | | | | | many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127 | ||||
* | clang -cc1: Fix initialization of PreprocessorOptions::TokenCache. | Daniel Dunbar | 2009-11-30 | 1 | -1/+4 |
| | | | | llvm-svn: 90126 | ||||
* | clang -cc1: Fix -include-pch now that the test code is in clang-cc. | Daniel Dunbar | 2009-11-30 | 1 | -5/+3 |
| | | | | llvm-svn: 90124 | ||||
* | clang -cc1: Initialize LangOptions::{Optimize,NoInline} | Daniel Dunbar | 2009-11-30 | 1 | -2/+12 |
| | | | | llvm-svn: 90123 | ||||
* | Always pass -fmessage-length using separate arguments. | Daniel Dunbar | 2009-11-30 | 1 | -2/+2 |
| | | | | llvm-svn: 90121 | ||||
* | clang -cc1: Initialize LangOptions::DollarIdents correctly. | Daniel Dunbar | 2009-11-30 | 1 | -1/+1 |
| | | | | llvm-svn: 90120 | ||||
* | Don't try to generate common globals for C++ files, instead of depending on ↵ | Daniel Dunbar | 2009-11-30 | 1 | -5/+0 |
| | | | | | | the FE to set NoCommon, and simplify CodeGenOptions initialization. llvm-svn: 90119 | ||||
* | Eliminate CodeGenOptions::TimePasses. | Daniel Dunbar | 2009-11-30 | 1 | -1/+0 |
| | | | | llvm-svn: 90118 | ||||
* | Eliminate CodeGenOptions::SimplifyLibCalls. | Daniel Dunbar | 2009-11-30 | 1 | -3/+0 |
| | | | | llvm-svn: 90117 | ||||
* | clang -cc1: Use proper diagnostics for all parsing errors. | Daniel Dunbar | 2009-11-29 | 1 | -64/+65 |
| | | | | llvm-svn: 90100 | ||||
* | Change CompilerInvocation::CreateFromArgs to report errors using a proper ↵ | Daniel Dunbar | 2009-11-29 | 1 | -1/+11 |
| | | | | | | | | diagnostic engine. - Clients that care about having the diagnostics output honor the user-controllable diagnostic options can buffer the diagnostics and issue them later. llvm-svn: 90092 | ||||
* | Change CompilerInvocation::CreateFromArgs to take Argv0 and the address of ↵ | Daniel Dunbar | 2009-11-29 | 1 | -4/+29 |
| | | | | | | main (or something in the main executable) so it can find the builtin compiler files. llvm-svn: 90090 | ||||
* | Move LLVM backend options to explicit clang-cc / clang -cc1 options, which ↵ | Daniel Dunbar | 2009-11-29 | 2 | -25/+37 |
| | | | | | | 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 | -5/+168 |
| | | | | | | - This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059 | ||||
* | clang-cc: Change -fsigned-char=0 to -fno-unsigned-char and pass -pic-level ↵ | Daniel Dunbar | 2009-11-29 | 1 | -5/+3 |
| | | | | | | using separate args. llvm-svn: 90054 | ||||
* | Move MainFileName option variable into CodeGenOptions instead of LangOptions. | Daniel Dunbar | 2009-11-29 | 1 | -0/+2 |
| | | | | llvm-svn: 90051 | ||||
* | Remove header which is bringing libAST in (on MSVC). | Daniel Dunbar | 2009-11-26 | 1 | -1/+0 |
| | | | | llvm-svn: 89946 | ||||
* | Fix thinko (-fno-builtin != -nobuiltininc). | Daniel Dunbar | 2009-11-26 | 1 | -1/+1 |
| | | | | llvm-svn: 89918 | ||||
* | Add clang -cc1 parsing for preprocessor options. | Daniel Dunbar | 2009-11-26 | 1 | -1/+39 |
| | | | | llvm-svn: 89917 |