summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a -fno-elide-constructors option to clang-cc.Anders Carlsson2009-08-221-0/+7
| | | | llvm-svn: 79782
* Take 2 on AltiVec-style vector initializers. Nate Begeman2009-08-101-0/+7
| | | | | | | | | | | | Fixes PR4704 problems Addresses Eli's patch feedback re: ugly cast code Updates all postfix operators to remove ParenListExprs. While this is awful, no better solution (say, in the parser) is obvious to me. Better solutions welcome. llvm-svn: 78621
* Use LLVM's new error handler API to report back end errors using Diagnostic.Daniel Dunbar2009-08-101-0/+15
| | | | | | | | | | | | | | | | | | | | | | For example, -- ddunbar@giles:Frontend$ clang -c backend-errors.c fatal error: error in backend: Global variable 'a' has an invalid section specifier 'I AM, not, legal': mach-o section specifier uses an unknown section type. -- compare to: -- ddunbar@giles:Frontend$ gcc -c backend-errors.c /var/folders/DQ/DQ8GT3++HESEzT1obWBynE+++TI/-Tmp-//cc45w2pq.s:2:Expected comma after segment-name /var/folders/DQ/DQ8GT3++HESEzT1obWBynE+++TI/-Tmp-//cc45w2pq.s:2:Rest of line ignored. 1st junk character valued 77 (M). -- Yay! I am not tied to my wording choice, we could also go with "uncoverable error" for the prefix, or just leave it off entirely. llvm-svn: 78554
* Revert r78535, it is causing a number of failures to build projects.Daniel Dunbar2009-08-101-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | --- Reverse-merging r78535 into '.': D test/Sema/altivec-init.c U include/clang/Basic/DiagnosticSemaKinds.td U include/clang/AST/Expr.h U include/clang/AST/StmtNodes.def U include/clang/Parse/Parser.h U include/clang/Parse/Action.h U tools/clang-cc/clang-cc.cpp U lib/Frontend/PrintParserCallbacks.cpp U lib/CodeGen/CGExprScalar.cpp U lib/Sema/SemaInit.cpp U lib/Sema/Sema.h U lib/Sema/SemaExpr.cpp U lib/Sema/SemaTemplateInstantiateExpr.cpp U lib/AST/StmtProfile.cpp U lib/AST/Expr.cpp U lib/AST/StmtPrinter.cpp U lib/Parse/ParseExpr.cpp U lib/Parse/ParseExprCXX.cpp llvm-svn: 78551
* AltiVec-style vector initializer syntax, vec4 a = (vec4)(a, b, c, d);Nate Begeman2009-08-091-0/+7
| | | | | | | | In addition to being defined by the AltiVec PIM, this is also the vector initializer syntax used by OpenCL, so that vector literals are compatible with macro arguments. llvm-svn: 78535
* Remove duplicated colon.Benjamin Kramer2009-08-021-1/+1
| | | | llvm-svn: 77891
* Add beginnigs of rtti generation, wire up more of -fno-exceptions.Mike Stump2009-07-311-0/+5
| | | | llvm-svn: 77751
* Destroy the ASTConsumer prior to the Context, HTMLPrinter for example wants toDaniel Dunbar2009-07-291-5/+7
| | | | | | | do a significant amount of work in its destructor, which may access the context. (PR4642). llvm-svn: 77423
* Update for LLVM API change.Owen Anderson2009-07-161-1/+1
| | | | llvm-svn: 75869
* Update for raw_fd_ostream API changes. raw_fd_ostream now has aDan Gohman2009-07-151-3/+5
| | | | | | | Force flag to control whether the case of opening an existing file is considered an error. llvm-svn: 75802
* Introduce the notion of "Relocatable" precompiled headers, which are builtDouglas Gregor2009-07-071-2/+20
| | | | | | | | | | | | with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. llvm-svn: 74885
* Update for changes in LLVM. Hopefully this is the last one for a while.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74657
* Hold the LLVMContext by reference instead of by pointer.Owen Anderson2009-07-011-2/+2
| | | | llvm-svn: 74642
* Update for LLVMContext+Module change.Owen Anderson2009-07-011-4/+7
| | | | llvm-svn: 74615
* Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions.Chris Lattner2009-06-301-0/+3
| | | | | | | | | | | | This is simple enough, but then I thought it would be nice to make PrintingPolicy get a LangOptions so that various things can key off "bool" and "C++" independently. This spiraled out of control. There are many fixme's, but I think things are slightly better than they were before. One thing that can be improved: CFG should probably have an ASTContext pointer in it, which would simplify its clients. llvm-svn: 74493
* Make the StackProtector bitfield use enums instead of obscure numbers.Bill Wendling2009-06-281-3/+8
| | | | llvm-svn: 74414
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-281-0/+9
| | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
* OpenCL 1.0 patch 2/N: Language options & file extensionNate Begeman2009-06-251-2/+15
| | | | llvm-svn: 74217
* Make sure install Clang headers when building clang-ccDouglas Gregor2009-06-251-0/+1
| | | | llvm-svn: 74163
* Move the command line source location parsing from clang-cc.cpp into ↵Argyrios Kyrtzidis2009-06-231-74/+9
| | | | | | "include/Frontend/CommandLineSourceLoc.h". llvm-svn: 74012
* Tiny correction on the command-line source location parser.Argyrios Kyrtzidis2009-06-191-1/+1
| | | | llvm-svn: 73758
* link in targetsChris Lattner2009-06-171-0/+4
| | | | llvm-svn: 73619
* Remove old #includesChris Lattner2009-06-171-2/+0
| | | | llvm-svn: 73618
* Update Clang to include the InitializeAllTargets andDouglas Gregor2009-06-161-0/+2
| | | | | | | InitializeAllAsmPrinters LLVM headers. Also includes some minor fixes for the CMake-based build with Xcode. llvm-svn: 73544
* my refactoring of builtins changed target-specific builtins to only beChris Lattner2009-06-161-1/+0
| | | | | | | | | registered when PCH wasn't being used. We should always install (in BuiltinInfo) information about target-specific builtins, but we shouldn't register any builtin identifier infos. This fixes the build of apps that use PCH and target specific builtins together. llvm-svn: 73492
* Sink the BuiltinInfo object from ASTContext into theChris Lattner2009-06-141-5/+12
| | | | | | | | preprocessor and initialize it early in clang-cc. This ensures that __has_builtin works in all modes, not just when ASTContext is around. llvm-svn: 73319
* Misc minor fixes for clang for the Windows target.Eli Friedman2009-06-081-1/+2
| | | | llvm-svn: 73050
* Set function Attribute::NoImplicitFloat appropriately.Devang Patel2009-06-051-0/+6
| | | | llvm-svn: 72961
* Add -fsigned-char option to clang-cc.Eli Friedman2009-06-051-0/+5
| | | | llvm-svn: 72929
* Set function attribute llvm::Attribute::NoRedZone appropriately.Devang Patel2009-06-041-0/+8
| | | | llvm-svn: 72902
* forward -fno-color-diagnostics to clang-cc.Torok Edwin2009-06-041-1/+1
| | | | llvm-svn: 72856
* Add ANSI color support for clang.Torok Edwin2009-06-041-1/+11
| | | | llvm-svn: 72855
* Add clang-cc support for -disable-llvm-optzns.Daniel Dunbar2009-06-021-6/+20
| | | | | | | - Avoids running any LLVM optimizations, even at -O2, etc., while still keeping any language changes these optimizations imply. llvm-svn: 72742
* Refactor and clean up the AST printer, so that it uses a DeclVisitor,Douglas Gregor2009-05-301-10/+2
| | | | | | | | | walks through DeclContexts properly, and prints more of the information available in the AST. The functionality is still available via -ast-print, -ast-dump, etc., and also via the new member functions Decl::dump() and Decl::print(). llvm-svn: 72597
* Move clang-cc's -v output to the start (vs. end) of compilation, and changeDaniel Dunbar2009-05-281-5/+5
| | | | | | clang -> clang-cc to be less confusing. llvm-svn: 72527
* This patch adds support for sender-aware dispatch in Objective-C for the GNU ↵Fariborz Jahanian2009-05-221-0/+6
| | | | | | | | | | runtime, when compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object planes, and a few other things. Patch by David Chisnall. llvm-svn: 72275
* AST XML dump, from Olaf Krzikalla!Douglas Gregor2009-05-211-0/+8
| | | | llvm-svn: 72224
* Move AnalysisConsumer.h and Analyses.def from tools/clang-cc to Eli Friedman2009-05-195-821/+5
| | | | | | | include/clang/Frontend, and move AnalysisConsumer.cpp from tools/clang-cc to lib/Frontend. llvm-svn: 72135
* Remove the -arch option from clang-cc: for all practical purposes, it's Eli Friedman2009-05-191-27/+0
| | | | | | redundant with -triple. llvm-svn: 72108
* Move analysis command-line options out of AnalysisConsumer.cpp into Eli Friedman2009-05-193-120/+133
| | | | | | | | | clang-cc.cpp. With this commit, all of the clang-cc command-line options are defined in clang-cc.cpp. llvm-svn: 72107
* CMake updates for r72099; untested, so please tell me if there are any Eli Friedman2009-05-191-8/+0
| | | | | | issues. llvm-svn: 72100
* Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp Eli Friedman2009-05-1910-2867/+1
| | | | | | files to lib/Frontend. llvm-svn: 72099
* Move CreateAnalysisConsumer into a separate header AnalysisConsumer.h. Eli Friedman2009-05-194-38/+80
| | | | | | | Start moving things around in the direction of refactoring the command-line options out of AnalysisConsumer.cpp. llvm-svn: 72097
* Move the options for dependency file generation from DependencyFile.cpp Eli Friedman2009-05-193-59/+67
| | | | | | | | to clang-cc.cpp. Also, rename CreateDependencyFileGen to AttachDependencyFileGen, and make it take a raw_ostream rather than opening a file itself. llvm-svn: 72096
* Move options for -E mode from PrintPreprocessedOutput.cpp to Eli Friedman2009-05-193-27/+41
| | | | | | clang-cc.cpp. llvm-svn: 72095
* Refactor -dM mode out of the main routine for -E handling.Eli Friedman2009-05-192-53/+56
| | | | llvm-svn: 72090
* Move the warning options from Warnings.cpp to clang-cc.cpp.Eli Friedman2009-05-193-18/+29
| | | | llvm-svn: 72089
* Switch some utilities in clang-cc to take a stream instead of a Eli Friedman2009-05-197-191/+165
| | | | | | filename (or unconditionally using stdout). llvm-svn: 72085
* Attempted CMake build fixes for r72060; this is untested, so please tell Eli Friedman2009-05-181-7/+1
| | | | | | me if there are any issues. llvm-svn: 72063
* Build fixes for r72060; sorry for any inconvenience.Eli Friedman2009-05-183-5/+4
| | | | llvm-svn: 72062
OpenPOWER on IntegriCloud