summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug when generating Load Upper Immediate microMIPS instruction.Zoran Jovanovic2013-09-145-2/+11
| | | | llvm-svn: 190746
* Support for microMIPS DIV instructions.Zoran Jovanovic2013-09-145-1/+23
| | | | llvm-svn: 190745
* Support for misc microMIPS instructions.Zoran Jovanovic2013-09-146-16/+116
| | | | llvm-svn: 190744
* Parse: Template specializations which aren't dependent needn't have their ↵David Majnemer2013-09-142-4/+23
| | | | | | | | | | | | | | | | parsing be delayed Summary: We should treat a non-dependent template specialization like it wasn't templated at all. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1554 llvm-svn: 190743
* One bit of that last commit wasn't meant to be included.Jason Molenda2013-09-141-4/+0
| | | | llvm-svn: 190742
* Change ProcessMachCore to search for both a user-process dyld binaryJason Molenda2013-09-143-33/+42
| | | | | | | | | | | | | | | | and a mach kernel in all the pages of the core file. If it finds a user-process dyld binary, assume this is a user process that had a copy of the mach kernel in memory when it crashed (e.g. lldb doing kernel debugging) even though we found the kernel binary first. Also, change the error messages about sections extending past the end of the file to be warnings and make the messages sound less severe. Most user process core files have one section that isn't included in the file and there's no reason to worry people about that. <rdar://problem/14473235> llvm-svn: 190741
* Add missing CHECK-LABELMatt Arsenault2013-09-141-0/+1
| | | | llvm-svn: 190740
* Add test for untested path in SimplifyCFGMatt Arsenault2013-09-141-6/+28
| | | | | | This case wasn't checked with a pointer condition. llvm-svn: 190739
* [lit] Add an --output option, for writing results in a machine readable form.Daniel Dunbar2013-09-145-3/+96
| | | | llvm-svn: 190738
* Clean up some Triple usage in clang.Cameron Esfahani2013-09-147-18/+16
| | | | llvm-svn: 190737
* LWG Issue 2210 (Part #7): vector and vector<bool>Marshall Clow2013-09-143-3/+94
| | | | llvm-svn: 190736
* [analyzer] Put more uniqueness in scan-build's temporary directory names.Jordan Rose2013-09-141-3/+11
| | | | | | | | | | | | | | | This is necessary when running two scan-build processes in parallel. The directory naming scheme is now: yyyy-MM-dd-HHmmss-PID-N 2013-09-13-174210-123-1 where "PID" is the scan-build process ID, and "N" is a sequential counter (not likely to be needed now that seconds are mangled in, but just in case). PR17196, using a suggested fix from Greg Czajkowski! llvm-svn: 190735
* This changes how the --source driver argument works. I split this into four ↵Jim Ingham2013-09-142-68/+127
| | | | | | | | | | | | | | | | | arguments: -S : Specifies a command file which will get sourced after the ~/.lldbinit but before file arguments are processed -O : Specifies a single (one-line) command that will get ditto and -s : Specifies a command file which will get sourced after `pwd`/.lldbinit -o : Specifies a command file which ditto I also changed it so that by default these sourced commands will print their command result, but there's a -q option to change that if you wish. llvm-svn: 190734
* Stop closing terminal fd from ProcessMonitor. It is owned by ↵Andrew Kaylor2013-09-142-2/+8
| | | | | | ConnectionFileDescriptor. llvm-svn: 190733
* G M: Make shared_ptr a little more gentle for some compilers. No impact on ↵Howard Hinnant2013-09-131-4/+4
| | | | | | clang. llvm-svn: 190732
* G M: Make valarray a little more forgiving to compilers not quite so ↵Howard Hinnant2013-09-131-1/+1
| | | | | | gifted. This has no impact on clang. llvm-svn: 190731
* Make PrettyStackTraceEntry use ManagedStatic for its ThreadLocal.Filip Pizlo2013-09-132-9/+20
| | | | | | | | | | This was somewhat tricky because ~PrettyStackTraceEntry() may run after llvm_shutdown() has been called. This is rare and only happens for a common idiom used in the main() functions of command-line tools. This works around the idiom by skipping the stack clean-up if the PrettyStackTraceHead ManagedStatic is not constructed (i.e. llvm_shutdown() has been called). llvm-svn: 190730
* Add support for -ggnu-pubnames matching the llvm support.Eric Christopher2013-09-134-0/+13
| | | | llvm-svn: 190729
* Fix a comment.Michael Han2013-09-131-1/+1
| | | | llvm-svn: 190728
* This fixes two issues with the POSIX dynamic loader:Matt Kopec2013-09-132-2/+53
| | | | | | | 1. existing breakpoints weren't being re-resolved after the sections of a library were loaded (ie. through dlopen). 2. loaded sections weren't being removed after a shared library had been unloaded. llvm-svn: 190727
* Lex and ignore Microsoft's #pragma warning(...)Reid Kleckner2013-09-137-1/+257
| | | | | | | | | | | | | | | | | Summary: This fixes PR17145 and avoids unknown pragma warnings. This change does not attempt to map MSVC warning numbers to clang warning flags. Perhaps in the future we will implement a mapping for some common subset of Microsoft warnings, but for now we don't. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1652 llvm-svn: 190726
* Revert "[PECOFF] Allocate storage for .drective in the reader ..."Rui Ueyama2013-09-132-10/+9
| | | | | | This reverts r189881 because that patch caused dangling StringRefs. llvm-svn: 190725
* [PECOFF] Fix alignment bug.Rui Ueyama2013-09-133-6/+62
| | | | | | | | | | | | | | There was a bug that if a section has an alignment requirement and there are multiple symbols at offset 0 in the section, only the last atom at offset 0 would be aligned properly. That bug would move only the last symbol to an alignment boundary, leaving other symbols unaligned, although they should be at the same location. That caused a mysterious SEGV error of the resultant executable. With this patch, we manage all symbols at the same location properly, rather than keeping the last one. llvm-svn: 190724
* [PECOFF] Fix atom default alignment.Rui Ueyama2013-09-131-3/+3
| | | | | | | | Alignment(1) does not mean that the atom should be aligned on a 1 byte boundary but on a 2^1 boundary. So, atoms without any specific alignment requirements should have Alignment(0). llvm-svn: 190723
* Part three of PR15721: if we have an invalid CXXDefaultInitExpr, don't crash ifRichard Smith2013-09-132-2/+24
| | | | | | we try to constant-evaluate it. Patch by Karthik Bhat, test by me. llvm-svn: 190722
* vector_size cannot be applied to Booleans. Updated the semantic checking ↵Aaron Ballman2013-09-132-8/+12
| | | | | | logic, as well as the comment and added a test case. Fixes PR12649 llvm-svn: 190721
* Add missing break statement in PPCISelLoweringHal Finkel2013-09-131-0/+2
| | | | | | As it turns out, not a problem in practice, but it should be there. llvm-svn: 190720
* Switching the WeakRef attribute to using the new checkStringLiteralArgument ↵Aaron Ballman2013-09-132-50/+43
| | | | | | helper function. llvm-svn: 190719
* Update Atom Silvermont (SLM) support by adding enabled features.Preston Gurd2013-09-131-5/+9
| | | | llvm-svn: 190718
* Adds support for Atom Silvermont (SLM) - -march=slmPreston Gurd2013-09-1314-197/+1002
| | | | | | | | | | | Implements Instruction scheduler latencies for Silvermont, using latencies from the Intel Silvermont Optimization Guide. Auto detects SLM. Turns on post RA scheduler when generating code for SLM. llvm-svn: 190717
* DebugInfo: omit debug info for friendsDavid Blaikie2013-09-133-24/+4
| | | | | | | | | GCC ToT doesn't do this & it's worth about 3.2% on Clang's DWO file size with Clang. Some or all of this may be due to things like r190715 which could have source fixes/improvements, but it's not clear that's the case and that doesn't help other source bases. llvm-svn: 190716
* Remove unnecessary inclusion of Sema.hDavid Blaikie2013-09-137-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let me tell you a tale... Within some twisted maze of debug info I've ended up implementing an insane man's Include What You Use device. When the debugger emits debug info it really shouldn't, I find out why & then realize the code could be improved too. In this instance CIndexDiagnostics.cpp had a lot more debug info with Clang than GCC. Upon inspection a major culprit was all the debug info describing clang::Sema. This was emitted because clang::Sema is befriended by DiagnosticEngine which was rightly required, but GCC doesn't emit debug info for friends so it never emitted anything for Clang. Clang does emit debug info for friends (will be fixed/changed to reduce debug info size). But why didn't Clang just emit a declaration of Sema if this entire TU didn't require a definition? 1) Diagnostic.h did the right thing, only using a declaration of Sema and not including Sema.h at all. 2) Some other dependency of CIndexDiagnostics.cpp didn't do the right thing. ASTUnit.h, only needing a declaration, still included Sema.h (hence this commit which removes that include and adds the necessary includes to the cpp files that were relying on this) 3) -flimit-debug-info didn't save us because of EnterExpressionEvaluationContext, defined inline in Sema.h which fires the "requiresCompleteType" check/flag (since it uses nested types from Sema and calls Sema member functions) and thus, if debug info is ever emitted for the type, the whole type is emitted and not just a declaration. Improving -flimit-debug-info to account for this would be... hard. Modifying the code so that's not 'required to be complete' might be possible, but probably only by moving EnterExpressionEvaluationContext either into Sema, or out of Sema.h. That might be a bit too much of a contortion to be bothered with. Also, this is only one of the cases where emitting debug info for friends caused us to emit a lot more debug info (this change reduces Clang's DWO size by 0.93%, dropping friends entirely reduces debug info by 3.2%) - I haven't hunted down the other cases, but I assume they might be similar (Sema or something like it). IWYU or a similar tool might help us reduce build times a bit, but analyzing debug info to find these differences isn't worthwhile. I'll take the 3.2% win, provide this small improvement to the code itself, and move on. llvm-svn: 190715
* Add test case for the not-yet implemented copy relocations.Joerg Sonnenberger2013-09-131-0/+31
| | | | llvm-svn: 190714
* [Peephole] Rewrite copies to avoid cross register banks copies.Quentin Colombet2013-09-131-84/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By definition copies across register banks are not coalescable. Still, it may be possible to get rid of such a copy when the value is available in another register of the same register file. Consider the following example, where capital and lower letters denote different register file: b = copy A <-- cross-bank copy ... C = copy b <-- cross-bank copy This could have been optimized this way: b = copy A <-- cross-bank copy ... C = copy A <-- same-bank copy Note: b and C's definitions may be in different basic blocks. This patch adds a peephole optimization that looks through a chain of copies leading to a cross-bank copy and reuses a source that is on the same register file if available. This solution could also be used to get rid of some copies (e.g., A could have been used instead of C). However, we do not do so because: - It may over constrain the coloring of the source register for coalescing. - The register allocator may not be able to find a nice split point for the longer live-range, leading to more spill. <rdar://problem/14742333> llvm-svn: 190713
* Fix indentation of closing };David Blaikie2013-09-131-1/+1
| | | | llvm-svn: 190711
* Updated the PCS calling convention to use the new checkStringLiteralArgument ↵Aaron Ballman2013-09-133-13/+13
| | | | | | helper function. llvm-svn: 190710
* Skip tests that segfault or are inconsistent on FreeBSDEd Maste2013-09-135-0/+7
| | | | | | | | | | | | | I now see no unexpected failures on FreeBSD on a local run of the test suite. llvm.org/pr17214 llvm.org/pr17225 llvm.org/pr17231 llvm.org/pr17232 llvm.org/pr17233 llvm-svn: 190709
* Add warn_unused_result to empty() on various containers.Benjamin Kramer2013-09-134-5/+9
| | | | | | empty() doesn't actually empty out the container, making this a common typo. llvm-svn: 190708
* Fix link to dynarray issueMarshall Clow2013-09-131-1/+1
| | | | llvm-svn: 190707
* As Aaron pointed out it's simpler to reject wide string availability attr ↵Benjamin Kramer2013-09-134-12/+5
| | | | | | messages in the parser. llvm-svn: 190706
* ASTContext.cpp: Fix a warning in r190684. [-Wcovered-switch-default]NAKAMURA Takumi2013-09-131-1/+2
| | | | llvm-svn: 190705
* Moving Cortex-R cores to armv7r archRenato Golin2013-09-131-3/+1
| | | | llvm-svn: 190704
* Add more Cortex CPUs and testsRenato Golin2013-09-135-9/+43
| | | | llvm-svn: 190703
* Fix Neon detection for Cortex-A class, plus adds some more CPUs to default ↵Renato Golin2013-09-131-5/+8
| | | | | | features llvm-svn: 190702
* Guard availability and thread safety attributes against wide strings.Benjamin Kramer2013-09-133-4/+14
| | | | | | Found by inspection. llvm-svn: 190701
* Update status for <dynarray>Marshall Clow2013-09-131-1/+3
| | | | llvm-svn: 190700
* Unify handling of string literal arguments for attributes and add fixits.Benjamin Kramer2013-09-132-71/+71
| | | | | | | | | | | | | | | | | | | | | | This fixes a couple of latent crashes for invalid attributes and also adds a fixit hint to turn identifiers into string literals if one was expected. It then proceeds recovery as if the identifier was a literal. Diagnostic locations are also changed to point at the literal instead of the attribute if the error concerns the argument. PR17175. For example: hidden.c:1:40: error: 'visibility' attribute requires a string extern int x __attribute__((visibility(hidden))); ^ " " hidden.c:2:29: error: visibility does not match previous declaration extern int x __attribute__((visibility("default"))); ^ hidden.c:1:29: note: previous attribute is here extern int x __attribute__((visibility(hidden))); ^ llvm-svn: 190699
* test: Update FreeBSD failure decoratorsEd Maste2013-09-139-1/+13
| | | | | | | | | | | | | | | llvm.org/pr15261 missing size for static arrays llvm.org/pr15278 expressions generating signals llvm.org/pr15824 thread states aren't properly maintained llvm.org/pr16696 threaded inferior debugging not yet on FreeBSD llvm.org/pr17214 inline stepping fails on FreeBSD llvm.org/pr17225 Clang assertion failure llvm.org/pr17226 frame info lost after failed expression evaluation llvm.org/pr17228 test timeout The first three are existing Linux issues that also affect FreeBSD. llvm-svn: 190698
* Initial implementation of <dynarray>. No allocator support pending ↵Marshall Clow2013-09-1313-0/+1079
| | | | | | resolution of LWG #2235; no stack allocation pending compiler support llvm-svn: 190697
* typo fix: use BUILD_ARCHIVE to build .a libs and not ARCHIVE_LIBRARYNuno Lopes2013-09-131-2/+2
| | | | llvm-svn: 190696
OpenPOWER on IntegriCloud