summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Use -frewrite-includes for crash reports.David Blaikie2012-06-291-1/+5
| | | | | | | | | | | In future changes we should: * use __builtin_trap rather than derefing 'random' volatile pointers. * avoid dumping temporary files into /tmp when running tests, instead preferring a location that is properly cleaned up by lit. Review by Chandler Carruth. llvm-svn: 159469
* Add -ftls-model command-line flag.Hans Wennborg2012-06-281-0/+2
| | | | | | This allows for setting the default TLS model. (PR9788) llvm-svn: 159336
* Enable -mcpu=native and -march=native for arm targets.Benjamin Kramer2012-06-261-34/+53
| | | | | | This is only implemented on linux at the moment. llvm-svn: 159232
* Add template type diffing to Clang. This feature will provide a betterRichard Trieu2012-06-261-0/+2
| | | | | | | | | | | | comparison between two templated types when they both appear in a diagnostic. Type elision will remove indentical template arguments, which can be disabled with -fno-elide-type. Cyan highlighting is applied to the differing types. For more formatting, -fdiagnostic-show-template-tree will output the template type as an indented text tree, with differences appearing inline. Template tree works with or without type elision. llvm-svn: 159216
* Adjust this code so that it strictly honorsJohn McCall2012-06-211-4/+6
| | | | | | | | TargetSimulatroVersionFromDefines if present; this also makes it easier to chain things correctly. Noted by an internal review. llvm-svn: 158926
* Improve support for -g options accepted by Clang:Alexey Samsonov2012-06-211-7/+5
| | | | | | | | 1. Accept flags -g[0-3], -ggdb[0-3], -gdwarf-[2-4] and collapse them to simple -g (except -g0/-ggdb0). 2. Produce driver error on unsupported formats (-gcoff, -gstabs, -gvms) and options (-gtoggle). 3. Recognize and ignore flags -g[no-]strict-dwarf, -g[no-]record-gcc-switches. llvm-svn: 158906
* Remove a goofy CMake hack and use the standard CMake facilities toChandler Carruth2012-06-211-4/+9
| | | | | | | | | express library-level dependencies within Clang. This is no more verbose really, and plays nicer with the rest of the CMake facilities. It should also have no change in functionality. llvm-svn: 158888
* Revert "Provide a -no-pedantic to cancel out -pedantic." This needs to be ↵Ted Kremenek2012-06-201-2/+1
| | | | | | | | designed a bit further. We may wish to just have -Wno flags to silence warnings, and not have a -no-pedantic. llvm-svn: 158796
* Restructure how the driver communicates information about theJohn McCall2012-06-205-189/+185
| | | | | | | | | | | | | | | | | | | | | | | | target Objective-C runtime down to the frontend: break this down into a single target runtime kind and version, and compute all the relevant information from that. This makes it relatively painless to add support for new runtimes to the compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z, available at the driver level as a better and more general alternative to -fgnu-runtime and -fnext-runtime. This new concept of an Objective-C runtime also encompasses what we were previously separating out as the "Objective-C ABI", so fragile vs. non-fragile runtimes are now really modelled as different kinds of runtime, paving the way for better overall differentiation. As a sort of special case, continue to accept the -cc1 flag -fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak. I won't go so far as to say "no functionality change", even ignoring the new driver flag, but subtle changes in driver semantics are almost certainly not intended. llvm-svn: 158793
* [driver] Per Bob's suggestion, emphasize the file dumps.Chad Rosier2012-06-191-7/+8
| | | | | | rdar://11684107 llvm-svn: 158734
* [driver] Print the compiler version before the diagnostic messages.Chad Rosier2012-06-191-3/+3
| | | | llvm-svn: 158729
* [driver] Make the crash diagnostic message more visable. Bug reports are beingChad Rosier2012-06-191-2/+5
| | | | | | | filed, but still missing the preprocessed source and associated run script. rdar://11684107 llvm-svn: 158727
* Add a -fuse-init-array option to cc1 and map to the UseInitArray targetRafael Espindola2012-06-194-2/+14
| | | | | | | | | option. On the driver, check if we are using libraries from gcc 4.7 or newer and if so pass -fuse-init-array to the frontend. The crtbegin*.o files in gcc 4.7 no longer call the constructors listed in .ctors, so we have to use .init_array. llvm-svn: 158694
* [VS Toolchain] Correctly forward -l linker inputs to link.exe.Michael J. Spencer2012-06-181-1/+8
| | | | | | Patch by Nikola Smiljanic! llvm-svn: 158664
* Support -f[no-]rewrite-includes from the driver.David Blaikie2012-06-141-0/+4
| | | | | | Review by Chandler Carruth. llvm-svn: 158463
* Provide a -no-pedantic to cancel out -pedantic.John McCall2012-06-131-1/+2
| | | | llvm-svn: 158416
* Add PPC support for translating gcc-style -mcpu options into LLVM ↵Hal Finkel2012-06-112-0/+72
| | | | | | | | | | | | | | -target-cpu options. This functionality is based on what is done on ARM, and enables selecting PPC CPUs in a way compatible with gcc's driver. Also, mirroring gcc (and what is done on x86), -mcpu=native support was added. This uses the host cpu detection from LLVM (which will also soon be updated by refactoring code currently in backend). In order for this to work, the target needs a list of valid CPUs -- we now accept all CPUs accepted by LLVM. A few preprocessor defines for common CPU types have been added. llvm-svn: 158334
* Zap the /Za compiler switch from MSVC projects, the option is considered ↵Francois Pichet2012-06-061-7/+0
| | | | | | | | harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed. Only 1 minor code change was necessary: can't use cdecl as variable name anymore. llvm-svn: 158063
* Remove AST and Parse from Driver's dependencies.Jordan Rose2012-06-041-1/+1
| | | | llvm-svn: 157933
* Require -pie when linking with ASan on Android.Evgeniy Stepanov2012-06-041-0/+2
| | | | llvm-svn: 157923
* MIPS: Factor out code selects the float ABI as determined by -msoft-float,Simon Atanasyan2012-06-021-15/+22
| | | | | | | -mhard-float, and -mfloat-abi= to the new function getMipsFloatABI. That simplifies reuse of this code. llvm-svn: 157888
* MIPS: Pass -KPIC argument to MIPS assembler if necessary.Simon Atanasyan2012-05-291-0/+12
| | | | llvm-svn: 157635
* Factor out the code retrieves the last PIC related argument fromSimon Atanasyan2012-05-292-16/+67
| | | | | | | the Clang::ConstructJob() to the new ArgList::getLastArg() routine with eight argument. That simplifies reusing of this code. llvm-svn: 157633
* Make Clang driver pass the last option from -g group to the compiler.Alexey Samsonov2012-05-291-6/+13
| | | | | | Leave a better fixme for different debug info flags llvm-svn: 157602
* [driver] Have the crash diagnostics print the clang version information.Chad Rosier2012-05-231-0/+3
| | | | | | rdar://11518308 llvm-svn: 157346
* [driver] When creating the compiler invocation out of command-lineArgyrios Kyrtzidis2012-05-212-8/+12
| | | | | | | | arguments, force use of clang frontend for the driver. Fixes rdar://11356765. llvm-svn: 157205
* Tell the driver that CUDA is a C++-like language, so that we get C++Peter Collingbourne2012-05-201-0/+1
| | | | | | header searches with CUDA. llvm-svn: 157172
* [driver] Remove obsolete support for -A link option. The standard -A option isChad Rosier2012-05-161-5/+2
| | | | | | | | | | | | used by the preprocessor. Apple's GCC also supported a -A option for linking. The ld man page has the following: -A basefile - Obsolete incremental load format. This option is obsolete. Nick Kledzik confirms this option is no longer needed/supported. rdar://11455614 llvm-svn: 156965
* Rename the driver option to -mno-implicit-float, per Eli's suggestion.Chad Rosier2012-05-161-1/+1
| | | | llvm-svn: 156950
* Pulls diagnostics for temp file handling into the common diagnostic kinds.Manuel Klimek2012-05-161-1/+1
| | | | llvm-svn: 156947
* [driver] Allow the driver to directly accept the -no-implicit-float option, ↵Chad Rosier2012-05-161-0/+3
| | | | | | | | | so that the generation of implicit floating point instructions can be disable for ARM. rdar://11409142 llvm-svn: 156942
* [tsan] add ThreadSanitizer linker flags on Linux and also copy the tsan-rt ↵Kostya Serebryany2012-05-161-0/+22
| | | | | | into the appropriate place at build time llvm-svn: 156906
* Add the Objective-C runtime linking arguments after user-specifiedDouglas Gregor2012-05-151-2/+2
| | | | | | linker arguments. Fixes <rdar://problem/11417441>. llvm-svn: 156853
* Do not link with Objective-C libraries with -nostdlib or -nodefaultlibs.Bob Wilson2012-05-151-1/+3
| | | | | | <rdar://problem/11433499> llvm-svn: 156841
* add embedded linux variants that occur in the fieldGabor Greif2012-05-151-2/+4
| | | | llvm-svn: 156813
* Teach the driver on Linux to respect -nodefaultlibs.Chandler Carruth2012-05-141-13/+16
| | | | | | Patch from Andrew C. Morrow. llvm-svn: 156771
* Hexagon V5 FP support.Sirish Pande2012-05-101-1/+7
| | | | llvm-svn: 156567
* Roll logic into a single if statement, per David's suggestion.Chad Rosier2012-05-091-3/+2
| | | | llvm-svn: 156502
* Use the triple directly, rather then getTriple().Chad Rosier2012-05-091-1/+1
| | | | llvm-svn: 156501
* Now the proper fix for r156497. Sorry for the churn.Chad Rosier2012-05-091-4/+5
| | | | llvm-svn: 156498
* Move the iOSVersionMin string to a header so as to avoid a dangling pointer.Chad Rosier2012-05-092-1/+4
| | | | llvm-svn: 156497
* [driver] Use the iOS target triple to infer the deployment target.Chad Rosier2012-05-091-2/+8
| | | | | | rdar://11409204 llvm-svn: 156489
* Ignore a "generic" return value from getHostCPUName. <rdar://problem/11314502>Bob Wilson2012-05-091-1/+1
| | | | llvm-svn: 156487
* add -fbounds-checking option.Nuno Lopes2012-05-081-0/+9
| | | | | | | | When enabled, clang generates bounds checks for array and pointers dereferences. Work to follow in LLVM's backend. OK'ed by Chad; thanks for the review. llvm-svn: 156431
* StringRefize code because we're good even when we crash.Chad Rosier2012-05-041-6/+6
| | | | | | Patch by Jordy Rose. llvm-svn: 156172
* Fix -Wlarge-by-value-copy option handling in the driver.Jean-Daniel Dupas2012-05-041-5/+5
| | | | | | CC1 supports only the joined format. llvm-svn: 156161
* This patch adds a new Clang compiler flag "-gline-tables-only".Alexey Samsonov2012-05-041-0/+2
| | | | | | | | | | | | | | It reduces the amount of emitted debug information: 1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram, DW_TAG_inlined_subroutine (for opt builds) and DW_TAG_lexical_block only. 2) .debug_str contains only function names. 3) No debug data for types/namespaces/variables is emitted. 4) The data in .debug_line is enough to produce valid stack traces with function names and line numbers. Reviewed by Eric Christopher. llvm-svn: 156160
* Remove obsolete code for finding a fallback iOS SDK. <rdar://problem/11378535>Bob Wilson2012-05-041-3/+0
| | | | llvm-svn: 156149
* [driver - crash diagnostics] Convert the flags back to an array of strings ↵Chad Rosier2012-05-031-1/+13
| | | | | | | | | and use array_lengthof. Also, append the new filename with correct preprocessed suffix. Last part of rdar://11285725 llvm-svn: 156117
* Use array_lengthof instead of sizeof trickery.Chad Rosier2012-05-031-2/+1
| | | | llvm-svn: 156104
OpenPOWER on IntegriCloud