summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clean up CMake dependenciesDouglas Gregor2010-09-0911-22/+22
| | | | llvm-svn: 113489
* Add an elf-dumper utility.Benjamin Kramer2010-09-093-0/+342
| | | | | | | | - Output format and some of the code stolen from macho-dump. - Somewhat incomplete and probably buggy. - Comes with a very basic test. llvm-svn: 113488
* Yonggang Luo fixed gcc version checking for type_traits support.Howard Hinnant2010-09-091-38/+40
| | | | llvm-svn: 113487
* lib/System/Host.cpp: 7bit-ize. Eliminate "TM" and "(R)" in comments.NAKAMURA Takumi2010-09-091-16/+16
| | | | llvm-svn: 113486
* Get rid of the last use of -m64 in FrontendC. This solutionDuncan Sands2010-09-091-2/+2
| | | | | | | of checking for either 4 or 8 is not very satisfactory, but it would catch the original problem (an alignment of 1). llvm-svn: 113485
* Another test that uses -m64. Here too it looks like it can beDuncan Sands2010-09-091-10/+4
| | | | | | | removed. Not that the XTARGET wasn't doing anything since it does nothing without an accompanying XFAIL. llvm-svn: 113484
* On i386, llvm-gcc cannot be assumed to support -m64. Since theseDuncan Sands2010-09-092-3/+3
| | | | | | | tests pass here (i686-linux and x86-64-linux) without -m64, simply remove the -m64. llvm-svn: 113483
* Remove unused variable.Benjamin Kramer2010-09-091-1/+0
| | | | llvm-svn: 113482
* Fix C++ PCH issue.Argyrios Kyrtzidis2010-09-094-24/+50
| | | | | | | | | Another beating by boost in this test case: http://llvm.org/PR8117 A function specialization wasn't properly initialized if it wasn't canonical. I wish there was a nice little test case but this was boost. llvm-svn: 113481
* do not bind temporaries to non-const referencesGabor Greif2010-09-093-3/+3
| | | | | | | | | | | this fixes all analyser test failures in my gcc34-based environment how the cast result could bind to the non-const ref is somewhat mysterious and remains to be investigated; to avoid similar miscompilations (by gcc34 only?) llvm-svn: 113480
* This script is executable.Duncan Sands2010-09-091-0/+0
| | | | llvm-svn: 113479
* Silence compiler warning.Kalle Raiskila2010-09-091-1/+1
| | | | llvm-svn: 113478
* Rename GRState::getSVal() -> getRawSVal() and getSimplifiedSVal() -> getSVal().Ted Kremenek2010-09-098-28/+782
| | | | | | | | | | | | | | | | | The end result is now we eagarly constant-fold symbols in the analyzer that are perfectly constrained to be a constant value. This allows us to recover some path-sensitivity in some cases by lowering the required level of reasoning power needed to evaluate some expressions. The net win from this change is that the false positive in PR 8015 is fixed, and we also find more idempotent operations bugs. We do, however, regress with the BugReporterVisitors, which need to be modified to understand this constant folding (and look past it). This causes some diagnostic regressions in plist-output.m which will get addressed in a future patch. plist-output.m is now marked XFAIL, while plist-output-alternate.m now tests that the plist output is working, but with the suboptimal diagnostics. This second test file will eventually be removed. llvm-svn: 113477
* Fix indentation.Ted Kremenek2010-09-091-28/+28
| | | | llvm-svn: 113476
* Got the ARM version of debugserver up to date. Greg Clayton2010-09-0912-195/+740
| | | | | | | | | Renamed the "dispatchqaddr" setting that was coming back for stop reply packets to be named "qaddr" so that gdb doesn't thing it is a register number. gdb was checking the first character and assuming "di" was a hex register number because 'd' is a hex digit. It has been shortened so gdb can safely ignore it. llvm-svn: 113475
* Make all debugger-level user settable variables into instance variables.Caroline Tice2010-09-0915-70/+175
| | | | | | | Make get/set variable at the debugger level always set the particular debugger's instance variables rather than the default variables. llvm-svn: 113474
* Fix NEON VLD pseudo instruction itineraries that were incorrectly copied fromBob Wilson2010-09-092-6/+6
| | | | | | | the VST pseudos. The VLD/VST scheduling still needs work (see pr6722), but at least we shouldn't confuse the loads with the stores. llvm-svn: 113473
* Check format strings when a called function has more than one FormatAttr ↵Ted Kremenek2010-09-092-8/+20
| | | | | | (one for 'scanf' and one for 'printf'). Fixes <rdar://problem/8409437>. llvm-svn: 113472
* It appears that technically a null format string is not warned under ↵Ted Kremenek2010-09-092-0/+14
| | | | | | | | -Wformat-nonliteral, as the function processing the format string can decided whether or not to accept a null format string (e.g., asl_log). Fixes <rdar://problem/8269537>. llvm-svn: 113469
* Avoid redundant recursive calls in SemaCheckStringLiteral by just updating ↵Ted Kremenek2010-09-091-7/+5
| | | | | | | | the expression and trying again. llvm-svn: 113468
* Remove tabs I accidentally introduced.Ted Kremenek2010-09-091-29/+29
| | | | llvm-svn: 113467
* Remove stray ';' and convert tabs to spaces.Ted Kremenek2010-09-092-9/+9
| | | | llvm-svn: 113466
* Simplified reachability checking in IdempotentOperationChecker and added a ↵Tom Care2010-09-091-72/+155
| | | | | | | | | | helper function for path display. - Created private class CFGReachabilityAnalysis, which provides cached reachability lookups in the CFG - Simplified PathWasCompletelyAnalyzed to use the new reachability class - Added getLastRelevantNodes function for future use with path displaying in BugReporter llvm-svn: 113465
* Relax __attribute_((nonnull)) checking to allow the attribute on functions ↵Ted Kremenek2010-09-093-8/+5
| | | | | | | | with no pointer arguments. GCC doesn't warn in this case, and the attribute is trivially satisfied (and benign). Fixes <rdar://problem/8364828>. llvm-svn: 113464
* Nuke whitespace and fix some indenting.Eric Christopher2010-09-091-60/+60
| | | | llvm-svn: 113463
* Move most MMX instructions (defined as anything thatDale Johannesen2010-09-092-121/+136
| | | | | | | uses MMX, even if it also uses other things) from InstrSSE into InstrMMX. No (intended) functional change. llvm-svn: 113462
* Handle 64-bit floating point binops as well.Eric Christopher2010-09-091-10/+12
| | | | llvm-svn: 113461
* Added GetStackFrames(thread) utility function.Johnny Chen2010-09-091-0/+10
| | | | llvm-svn: 113460
* Basic 32-bit FP operations.Eric Christopher2010-09-091-0/+45
| | | | llvm-svn: 113459
* Include test case for <rdar://problem/5880430>.Ted Kremenek2010-09-091-0/+27
| | | | llvm-svn: 113458
* Static analyzer fix: <rdar://problem/5880430> Switch on enum should not ↵Ted Kremenek2010-09-093-3/+26
| | | | | | consider default case live if all enum values are covered llvm-svn: 113457
* For double-spaced VLD3/VLD4 instructions, copy the explicit super-register useBob Wilson2010-09-091-5/+9
| | | | | | | operand from the pseudo instruction to the new instruction as an implicit use. This will preserve any other flags (e.g., kill) on the operand. llvm-svn: 113456
* Handle float->double extension.Eric Christopher2010-09-091-0/+23
| | | | llvm-svn: 113455
* Block ivar layout must assume that the 'isa'Fariborz Jahanian2010-09-092-5/+8
| | | | | | | | field of the block descriptor is GC'able (scanned) as this what the runtime expects (one can send it messages). Radar 8394947. llvm-svn: 113454
* Rewrite TargetMaterializeConstant splitting it out into two functionsEric Christopher2010-09-091-21/+45
| | | | | | | for integer and fp constants. Implement todo to use vfp3 instructions to materialize easy constants if we can. llvm-svn: 113453
* Simplify copying over operands from pseudo NEON load/store instructions.Bob Wilson2010-09-091-30/+19
| | | | | | | | For VLD3/VLD4 with double-spaced registers, add the implicit use of the super register for both the instruction loading the even registers and the instruction loading the odd registers. llvm-svn: 113452
* Enhance -Wunreachable-code to not consider the 'default:' branch of a switch ↵Ted Kremenek2010-09-092-5/+27
| | | | | | | | statement live if a switch on an enum value has explicit 'case:' statements for each enum value. llvm-svn: 113451
* Enhance -Wreturn-type to not warn when control-flow is most likely limited ↵Ted Kremenek2010-09-092-5/+22
| | | | | | | | by a switch statement explicitly covering all the cases for an enum value. llvm-svn: 113450
* Add 'filtered_pred_iterator' and 'filtered_succ_iterator' to CFGBlock. This ↵Ted Kremenek2010-09-092-0/+76
| | | | | | | | | allows a client to selectively walk successors/predecessors based on commonly used filters. For starters, add a filter to ignore 'default:' cases for SwitchStmts when all enum values are covered by CaseStmts. llvm-svn: 113449
* Initialize 'AllEnumCasesCovered' in SwitchStmt's constructor.Ted Kremenek2010-09-091-1/+1
| | | | llvm-svn: 113448
* When building SwitchStmts in Sema, record whether all the enum values of a ↵Ted Kremenek2010-09-094-35/+69
| | | | | | | | | | switch(enum) where covered by individual case statements. Flow-based analyses may wish to consult this information, and recording this in the AST allows us to obviate reconstructing this information later when we build the CFG. llvm-svn: 113447
* Push the range associated with a nested-name-specifier further throughDouglas Gregor2010-09-081-12/+21
| | | | | | | | TreeTransform, since we were getting an empty source range where we shouldn't. Sadly, the test case is Boost.Proto, and isn't worth reducing. llvm-svn: 113446
* Rearrange for better alignment and less paddingJakob Stoklund Olesen2010-09-081-3/+4
| | | | llvm-svn: 113445
* Fix warnings caused by new CXXUuidofExprClass enumerator.Francois Pichet2010-09-084-1/+5
| | | | llvm-svn: 113444
* Add another missing CMake dependency.Daniel Dunbar2010-09-081-0/+1
| | | | llvm-svn: 113443
* Clean up a comment.Bob Wilson2010-09-081-2/+2
| | | | llvm-svn: 113442
* Fix a few minor issues with parsing and semantic analysis of C++Douglas Gregor2010-09-084-18/+25
| | | | | | | | typeid expressions: - make sure we have a proper source location for the closing ')' - cache the declaration of std::type_info once we've found it llvm-svn: 113441
* Very basic compare support.Eric Christopher2010-09-081-0/+48
| | | | llvm-svn: 113440
* Relax the "don't unroll loops containing calls" rule. Instead, when a loop ↵Owen Anderson2010-09-082-2/+55
| | | | | | | | | contains a call, lower the unrolling threshold to the optimize-for-size threshold. Basically, for loops containing calls, unrolling can still be profitable as long as the loop is REALLY small. llvm-svn: 113439
* eliminate some clang warnings.Chris Lattner2010-09-084-3/+4
| | | | llvm-svn: 113438
OpenPOWER on IntegriCloud