summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* move a few more symbols to .rodata/.data.rel.roNuno Lopes2009-12-231-1/+1
| | | | llvm-svn: 92012
* Driver: Fix '... -O4 -O0 ...', which was generating bitcode.Daniel Dunbar2009-12-231-2/+5
| | | | llvm-svn: 91962
* Driver: Drop ToolChain::getHost()Daniel Dunbar2009-12-231-1/+1
| | | | llvm-svn: 91960
* Driver: When linking, don't warn about unused arguments which are obviously onlyDaniel Dunbar2009-12-221-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 Dunbar2009-12-211-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 HostInfoDaniel Dunbar2009-12-213-45/+48
| | | | | | object. llvm-svn: 91830
* Remove ';' after method definition. Noticed by clang++, which one would thinkDaniel Dunbar2009-12-191-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 Dunbar2009-12-191-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 Dunbar2009-12-181-2/+2
| | | | | | not alias driver/backend option. llvm-svn: 91671
* Add -dwarf-debug-flags, which provides a way to embed the cc1 level options usedDaniel Dunbar2009-12-183-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 Dunbar2009-12-161-2/+2
| | | | llvm-svn: 91562
* implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵Nuno Lopes2009-12-161-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 Dunbar2009-12-151-1/+11
| | | | | | already found itself. llvm-svn: 91384
* Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gaveJeffrey Yasskin2009-12-121-1/+1
| | | | | | no extra safety anyway. llvm-svn: 91207
* Implement runtime checks for undefined behavior. WIP.Mike Stump2009-12-121-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 Kremenek2009-12-121-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 Dunbar2009-12-111-2/+7
| | | | llvm-svn: 91174
* spread 'const' love to some variables. this considerably reduces the amount ↵Nuno Lopes2009-12-102-3/+3
| | | | | | of dirty data around. llvm-svn: 91002
* Unbreak clang-cc handling of -msoft-float / -mfloat-abi=, which I borked.Daniel Dunbar2009-12-081-3/+6
| | | | llvm-svn: 90873
* Remove several .c_str() to be forward-compatible with StringRef.Jeffrey Yasskin2009-12-081-3/+3
| | | | llvm-svn: 90822
* Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.Ted Kremenek2009-12-071-0/+3
| | | | llvm-svn: 90812
* Shorten the help test for -no-canonical-prefixes, put it behind HelpHidden andRafael Espindola2009-12-072-3/+3
| | | | | | claim it in Driver.cpp instead of Tools.cpp. llvm-svn: 90777
* Unbreak -ccc-cxx and -ccc-clang-cxx defaulting.Daniel Dunbar2009-12-051-2/+3
| | | | llvm-svn: 90629
* Driver: Switch -ccc-* options to using the standard options functionality.Daniel Dunbar2009-12-041-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 willDaniel Dunbar2009-12-041-20/+61
| | | | | | collate the options inside that group. llvm-svn: 90592
* OptParser: Add HelpHidden flag.Daniel Dunbar2009-12-041-1/+5
| | | | llvm-svn: 90591
* Add gcc's -no-canonical-prefixes option to clang.Rafael Espindola2009-12-041-0/+3
| | | | llvm-svn: 90577
* Fix Clang tool translation to forward -fvisibility as separate arguments, theDaniel Dunbar2009-12-031-2/+6
| | | | | | old syntax isn't supported. llvm-svn: 90469
* Add OptTable::PrintHelp.Daniel Dunbar2009-12-032-0/+77
| | | | llvm-svn: 90420
* Driver: Add Command::Creator member variable, which tracks the tool that wasDaniel Dunbar2009-12-022-20/+21
| | | | | | used to create a particular command. llvm-svn: 90287
* clang -cc1: Move CompilerInvocation deserialization into CompilerInvocation.cpp,Daniel Dunbar2009-12-011-672/+1
| | | | | | where it belongs. llvm-svn: 90198
* Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵Daniel Dunbar2009-11-302-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 Dunbar2009-11-301-1/+4
| | | | llvm-svn: 90126
* clang -cc1: Fix -include-pch now that the test code is in clang-cc.Daniel Dunbar2009-11-301-5/+3
| | | | llvm-svn: 90124
* clang -cc1: Initialize LangOptions::{Optimize,NoInline}Daniel Dunbar2009-11-301-2/+12
| | | | llvm-svn: 90123
* Always pass -fmessage-length using separate arguments.Daniel Dunbar2009-11-301-2/+2
| | | | llvm-svn: 90121
* clang -cc1: Initialize LangOptions::DollarIdents correctly.Daniel Dunbar2009-11-301-1/+1
| | | | llvm-svn: 90120
* Don't try to generate common globals for C++ files, instead of depending on ↵Daniel Dunbar2009-11-301-5/+0
| | | | | | the FE to set NoCommon, and simplify CodeGenOptions initialization. llvm-svn: 90119
* Eliminate CodeGenOptions::TimePasses.Daniel Dunbar2009-11-301-1/+0
| | | | llvm-svn: 90118
* Eliminate CodeGenOptions::SimplifyLibCalls.Daniel Dunbar2009-11-301-3/+0
| | | | llvm-svn: 90117
* clang -cc1: Use proper diagnostics for all parsing errors.Daniel Dunbar2009-11-291-64/+65
| | | | llvm-svn: 90100
* Change CompilerInvocation::CreateFromArgs to report errors using a proper ↵Daniel Dunbar2009-11-291-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 Dunbar2009-11-291-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 Dunbar2009-11-292-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 Dunbar2009-11-291-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 Dunbar2009-11-291-5/+3
| | | | | | using separate args. llvm-svn: 90054
* Move MainFileName option variable into CodeGenOptions instead of LangOptions.Daniel Dunbar2009-11-291-0/+2
| | | | llvm-svn: 90051
* Remove header which is bringing libAST in (on MSVC).Daniel Dunbar2009-11-261-1/+0
| | | | llvm-svn: 89946
* Fix thinko (-fno-builtin != -nobuiltininc).Daniel Dunbar2009-11-261-1/+1
| | | | llvm-svn: 89918
* Add clang -cc1 parsing for preprocessor options.Daniel Dunbar2009-11-261-1/+39
| | | | llvm-svn: 89917
OpenPOWER on IntegriCloud