summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* don't dump .ll file in this dir.Chris Lattner2009-04-181-1/+1
| | | | llvm-svn: 69426
* __builtin_prefetch should be declared as "void __builtin_prefetch(const void ↵Chris Lattner2009-04-182-2/+7
| | | | | | | | *)", not "const void __builtin_prefetch(void *)". This fixes PR3912. llvm-svn: 69425
* rename testChris Lattner2009-04-181-0/+0
| | | | llvm-svn: 69424
* fix PR3927 by being more careful about the pp test for identifier.Chris Lattner2009-04-182-3/+12
| | | | llvm-svn: 69423
* second half of PR3940: #line requires simple digit sequence.Chris Lattner2009-04-183-1/+7
| | | | llvm-svn: 69422
* Store the type ID for __builtin_va_list in the PCH file, so that theDouglas Gregor2009-04-185-5/+41
| | | | | | | | AST context's __builtin_va_list type will be set when the PCH file is loaded. This fixes the crash when CodeGen'ing a va_arg expression pulled in from a PCH file. llvm-svn: 69421
* Fixed a few 64 bit cases in X86InstrInfo::commuteInstructionMon P Wang2009-04-181-3/+3
| | | | llvm-svn: 69417
* this is really just a recommendation, not a requirement.Chris Lattner2009-04-182-2/+2
| | | | llvm-svn: 69416
* enforce requirements imposed by C90 6.8 TC1, fixing PR3919.Chris Lattner2009-04-183-11/+41
| | | | llvm-svn: 69415
* Adjust XFAIL syntax, maybe that will help. The otherDale Johannesen2009-04-181-1/+2
| | | | | | way worked for me... llvm-svn: 69414
* Fix PR3938 by taking into account C99 6.10p4.Chris Lattner2009-04-182-1/+8
| | | | llvm-svn: 69413
* convert test to -verify style.Chris Lattner2009-04-181-3/+4
| | | | llvm-svn: 69412
* Substantially restructure function-like macro argument parsing.Chris Lattner2009-04-182-36/+83
| | | | | | | | | Highlights: PP::isNextPPTokenLParen() no longer eats the ( when present. We now simplify slightly the logic parsing macro arguments. We now handle PR3937 and other related cases correctly. llvm-svn: 69411
* Preliminary PCH support in the driverDouglas Gregor2009-04-184-17/+58
| | | | llvm-svn: 69410
* patch 69408 breaks this by removing the opportunityDale Johannesen2009-04-181-0/+1
| | | | | | | | | for the optimization it's testing to kick in (although it improves the code, getting rid of all spills). I don't understand the optimization well enough to rescue the test, so XFAILing. llvm-svn: 69409
* Inline asm's were still introducing bogus dependencies;Dale Johannesen2009-04-181-1/+7
| | | | | | my earlier patch to this code only fixed half of it. llvm-svn: 69408
* Lazy deserialization of function bodies for PCH files. For the CarbonDouglas Gregor2009-04-185-7/+98
| | | | | | | | | | "Hello, World!", this takes us from deserializing 6469 statements/expressions down to deserializing 1 statement/expression. It only translated into a 1% improvement on the Carbon-prefixed 403.gcc, but (a) it's the right thing to do, and (b) we expect this to matter more once we lazily deserialize identifiers. llvm-svn: 69407
* FunctionDecl::getBody() is getting an ASTContext argument for use inDouglas Gregor2009-04-1830-64/+107
| | | | | | | | lazy PCH deserialization. Propagate that argument wherever it needs to be. No functionality change, except that I've tightened up a few PCH tests in preparation. llvm-svn: 69406
* remove dead diagnostic.Chris Lattner2009-04-171-1/+0
| | | | llvm-svn: 69405
* Fix two problems from PR3916, and one problem I noticed while hackingChris Lattner2009-04-173-8/+24
| | | | | | on the code. llvm-svn: 69404
* implement PR3940: #line numbers not fully checkedChris Lattner2009-04-173-0/+9
| | | | llvm-svn: 69403
* remove trailing whitespaceJim Grosbach2009-04-171-50/+50
| | | | llvm-svn: 69402
* #line is allowed to have macros that expand to nothing after them.Chris Lattner2009-04-173-9/+24
| | | | llvm-svn: 69401
* Recommit r69335 and r69336. These were not causing problems.Bill Wendling2009-04-171-3/+5
| | | | llvm-svn: 69394
* Keep track of the number of statements/expressions written to and readDouglas Gregor2009-04-175-4/+36
| | | | | | | from a PCH file. It turns out that "Hello, World!" is bringing in 19% of all of the statements in Carbon.h, so we need to be lazy. llvm-svn: 69393
* fix a crash compiling code with its own definition of objc_assign_weak.Chris Lattner2009-04-172-5/+16
| | | | | | rdar://6800430 llvm-svn: 69392
* tweak redefinition of a typedef a bit to fix a couple of problems:Chris Lattner2009-04-174-23/+19
| | | | | | | | | | | | | | | | | | | | | | | 1. We had logic in sema to decide whether or not to emit the error based on manually checking whether in a system header file. 2. we were allowing redefinitions of typedefs in class scope in C++ if in header file. 3. there was no way to force typedef redefinitions to be accepted by the C compiler, which annoys me when stripping linemarkers out of .i files. The fix is to split the C++ class typedef redefinition path from the C path, and change the C path to be a warning that normally maps to error. This causes it to properly be ignored in system headers, etc. and gives us a way to control it. Passing -Wtypedef-redefinition now turns the error into a warning. One behavior change is that we now diagnose cases where you redefine a typedef in your .c file that was defined in a header file. This seems like reasonable behavior, and the diagnostic now indicates that it can be controlled with -Wtypedef-redefinition. llvm-svn: 69391
* Fix two embarrassing PCH bugs:Douglas Gregor2009-04-174-2/+26
| | | | | | | | | 1) Accidentally used delete [] on an array of statements that was allocated with ASTContext's allocator 2) Deserialization of names with multiple declarations (e.g., a struct and a function) used the wrong mangling constant, causing it to view declaration IDs as Decl*s. 403.gcc builds and links properly. llvm-svn: 69390
* Use PresumedLoc to record line number in debug info entries.Devang Patel2009-04-171-11/+22
| | | | llvm-svn: 69389
* Don't put msgrefs in used globals (in particular, we don't wantDaniel Dunbar2009-04-171-1/+0
| | | | | | no-dead-strip set on them). llvm-svn: 69388
* Appropriately set file name and directory name in debug info compile units.Devang Patel2009-04-172-27/+31
| | | | llvm-svn: 69387
* implement a new clang-cc option -dump-build-information=filename which ↵Chris Lattner2009-04-171-2/+90
| | | | | | | | | | | | | | causes the compiler to dump random stuff from the build into the file. Right now this amounts to dumping command line arguments and diagnostics to the file. The idea is that you can set an envvar, do a world build of an OS, then grep through all the logs for interesting things or something. Daniel, please wire the driver up to do something with this. llvm-svn: 69386
* PCH support for inline assembly statements.Douglas Gregor2009-04-178-9/+146
| | | | | | | This completes support for all of C (+ extensions). We can (again) build a PCH file for Carbon.h. llvm-svn: 69385
* Move the AddLiveIn function definition closer to its uses.Bob Wilson2009-04-171-11/+11
| | | | llvm-svn: 69382
* Rearrange code to reduce indentation.Bob Wilson2009-04-171-41/+38
| | | | llvm-svn: 69381
* Rename file to have the correct suffix.Bob Wilson2009-04-171-0/+0
| | | | llvm-svn: 69380
* refactor htmldiags to be created up front like the other diag clients.Chris Lattner2009-04-174-45/+33
| | | | llvm-svn: 69379
* Clean up formatting, remove trailing whitespace, fix comment typos andBob Wilson2009-04-174-50/+37
| | | | | | punctuation. No functional changes. llvm-svn: 69378
* add a virtual method to DiagnosticClient to get rid of some fragileChris Lattner2009-04-173-8/+13
| | | | | | casting in clang-cc. llvm-svn: 69377
* PCH tests for va_arg expressions. Verified that the blocks test does create ↵Douglas Gregor2009-04-173-2/+20
| | | | | | a BlockDeclRefExpr llvm-svn: 69376
* Delete an unused field.Dan Gohman2009-04-171-1/+0
| | | | llvm-svn: 69375
* fix a crash on invalid by making ActOnDeclarator create decl withChris Lattner2009-04-172-0/+10
| | | | | | | a dummy *function* type when it is recovering and knows it needs a function. rdar://6802350 - clang crash on invalid input llvm-svn: 69374
* PCH support for blocksDouglas Gregor2009-04-177-6/+60
| | | | llvm-svn: 69373
* wire up comment diagnostics to -Wcomment, add it to -Wall. NowChris Lattner2009-04-172-6/+10
| | | | | | | you can silence these with -Wno-all or -Wno-comment, but they still default to on. llvm-svn: 69372
* Use CallConvLower.h and TableGen descriptions of the calling conventionsBob Wilson2009-04-1727-309/+748
| | | | | | for ARM. Patch by Sandeep Patel. llvm-svn: 69371
* PCH support for GNU statement expressionsDouglas Gregor2009-04-176-3/+39
| | | | llvm-svn: 69370
* PCH support for indirect gotos and address-of-label expressions.Douglas Gregor2009-04-178-3/+127
| | | | llvm-svn: 69369
* adjust for the new -Wvector-conversions optionChris Lattner2009-04-172-2/+10
| | | | llvm-svn: 69366
* move a vector conversion warning to be diabled by default (like gcc),Chris Lattner2009-04-172-1/+4
| | | | | | | but add it to -Wall (unlike gcc) and give it a controlling group (-Wvector-conversions). llvm-svn: 69365
* PCH support for labels and goto.Douglas Gregor2009-04-177-2/+152
| | | | llvm-svn: 69364
OpenPOWER on IntegriCloud