summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Introduce module attributes into the module map grammar, along with aDouglas Gregor2012-01-2717-42/+189
| | | | | | | | | | | | | single attribute ("system") that allows us to mark a module as being a "system" module. Each of the headers that makes up a system module is considered to be a system header, so that we (for example) suppress warnings there. If a module is being inferred for a framework, and that framework directory is within a system frameworks directory, infer it as a system framework. llvm-svn: 149143
* Intel Syntax: Parse mem operand with seg reg. QWORD PTR FS:[320]Devang Patel2012-01-272-3/+7
| | | | llvm-svn: 149142
* Disable the ConnectionFileDescriptor mutex for now as it is deadlocking ourGreg Clayton2012-01-272-8/+7
| | | | | | test suite and I need to investigate this. llvm-svn: 149141
* Fix typo.Johnny Chen2012-01-271-1/+1
| | | | llvm-svn: 149140
* Emit the message about putting ' -- ' between the end of command options and ↵Johnny Chen2012-01-271-2/+4
| | | | | | | | the raw input conditionally, that is, only if the command object does not want completion. An example is the "settings set" command. llvm-svn: 149139
* Added a ModuleList::Destroy() method which will reclaim the std::vectorGreg Clayton2012-01-274-24/+68
| | | | | | | | | | memory by doing a swap. Also added a few utilty functions that can be enabled for debugging issues with modules staying around too long when external clients still have references to them. llvm-svn: 149138
* Fix typo.Jim Grosbach2012-01-271-1/+1
| | | | llvm-svn: 149137
* NULL out the "ptr_" member of shared pointers for debug and releaseGreg Clayton2012-01-271-0/+9
| | | | | | | | builds (not build and integration builds) to help catch when a shared pointer that might be in a collection class is used after the collection has been freed. llvm-svn: 149136
* Enable extra error checking for debug builds in our mutexes byGreg Clayton2012-01-271-0/+36
| | | | | | | | | | watching for errors from pthread_mutex_destroy () (usually "Resource busy" errors for when you have a mutex locked and try to destroy it), and pthread_mutex_lock, and pthread_mutex_unlock (usually for trying to lock an invalid mutex that might have possible already been freed). llvm-svn: 149135
* There is no need to hold onto an ExecutionContext as a member variable. Greg Clayton2012-01-272-7/+4
| | | | | | | ExecutionContext objects have shared pointers to Target, Process, Thread and Frame objects and they can end up being held onto for too long. llvm-svn: 149133
* Fixed a location where we would never end up unlocking our mutex inGreg Clayton2012-01-271-11/+13
| | | | | | the ClusterManager. Also switched to using Mutex::Locker where we can. llvm-svn: 149132
* Fixed an issue that could happen during global object destruction in ourGreg Clayton2012-01-273-7/+14
| | | | | | | map that tracks all live Module classes. We must leak our mutex for our collection class as it might be destroyed in an order we can't control. llvm-svn: 149131
* Make compiler-rt/trunk/lib/asan compileable with Visual Studio 2008 on Windows.Alexander Potapenko2012-01-277-6/+100
| | | | | | | | | | | | | | Patch by Timur Iskhodzhanov (timurrrr@google.com) To test: $ cl /c *.c* in the asan directory. The code fails to link if you omit the "/c" part but that's one of the next steps, as well as a few TODO's I've put into the Windows-specific code. llvm-svn: 149130
* Make compiler-rt/trunk/lib/asan compileable with g++.Alexander Potapenko2012-01-272-3/+9
| | | | | | | | | | | | | | Patch by Timur Iskhodzhanov (timurrrr@google.com) The double-extern thing is http://llvm.org/bugs/show_bug.cgi?id=11869 And the #include <string[s].h> are only needed on Mac (see comments in the original code) and also including them might make strchr/index conflict with the g++ system headers (which don't follow the man pages, ouch!) llvm-svn: 149129
* Added source location for the template keyword in AST template-id expressions.Abramo Bagnara2012-01-2736-536/+833
| | | | llvm-svn: 149127
* Remove redundant checks.Jean-Daniel Dupas2012-01-271-2/+1
| | | | llvm-svn: 149125
* Avoid redundant NNS qualification in constructor/destructor names.Abramo Bagnara2012-01-277-26/+43
| | | | llvm-svn: 149124
* Add test for -Wno-everything.Argyrios Kyrtzidis2012-01-271-0/+7
| | | | llvm-svn: 149123
* Move some patterns back near their instructions and use AddedComplexity to ↵Craig Topper2012-01-271-49/+41
| | | | | | fix priority. Merge some patterns into their instruction definition. llvm-svn: 149122
* Due to a bug, -Wno-everything works like -Weverything. Fix the bug by havingArgyrios Kyrtzidis2012-01-275-2/+37
| | | | | | | | | -Wno-everything remap all warnings to ignored. We can now use "-Wno-everything -W<warning>" to ignore all warnings except specific ones. llvm-svn: 149121
* In FixItRecompile::BeginInvocation() reset the diagnostics before executingArgyrios Kyrtzidis2012-01-271-0/+1
| | | | | | the original action. llvm-svn: 149120
* Physreg dead defs should be handled too.Lang Hames2012-01-271-1/+1
| | | | llvm-svn: 149118
* smallvectorize.Chris Lattner2012-01-271-6/+6
| | | | llvm-svn: 149117
* continue making the world safe for ConstantDataVector. At this point,Chris Lattner2012-01-2710-75/+108
| | | | | | | we should (theoretically optimize and codegen ConstantDataVector as well as ConstantVector. llvm-svn: 149116
* Unix line endingsMatt Beaumont-Gay2012-01-271-19/+19
| | | | llvm-svn: 149115
* Place the GEP instructions nearer to the instructions which use them.Bill Wendling2012-01-271-37/+36
| | | | | | | | | | | GEP instructions are there for the compiler and shouldn't really output much code (if any at all). When a GEP is stored in the entry block, Fast ISel (for one) will not know that it could fold it into further uses. For instance, inside of the EH handling code. This results in a lot of unnecessary spills and loads which bloat code and slows down pretty much everything. <rdar://problem/10694814> llvm-svn: 149114
* make sure the file's matching header is #include'd first.Chris Lattner2012-01-271-3/+1
| | | | llvm-svn: 149113
* Reimplement (de-)serialization of Objective-C categories to eliminateDouglas Gregor2012-01-2713-209/+329
| | | | | | | | | | | | | | the direct serialization of the linked-list structure. Instead, use a scheme similar to how we handle redeclarations, with redeclaration lists on the side. This addresses several issues: - In cases involving mixing and matching of many categories across many modules, the linked-list structure would not be consistent across different modules, and categories would get lost. - If a module is loaded after the class definition and its other categories have already been loaded, we wouldn't see any categories in the newly-loaded module. llvm-svn: 149112
* Rewrite CanShareConstantPoolEntry to be implemented in terms of theChris Lattner2012-01-271-26/+26
| | | | | | | | mid-level constant folding APIs instead of doing its own analysis. This makes it more general (e.g. can now share a <2 x i64> with a <4 x i32>) and avoid duplicating a bunch of logic. llvm-svn: 149111
* enhance constant folding to be able to constant fold bitcast of Chris Lattner2012-01-273-2/+51
| | | | | | ConstantVector's to integer type. llvm-svn: 149110
* Be sure to emit delayed diagnostics after parsing the declarationJohn McCall2012-01-272-0/+11
| | | | | | of a for-range variable. Fixes PR11793. llvm-svn: 149109
* constexpr: Implement the [dcl.constexpr]p5 check for whether a constexprRichard Smith2012-01-279-115/+343
| | | | | | | function definition can produce a constant expression. This also provides the last few checks for [dcl.constexpr]p3 and [dcl.constexpr]p4. llvm-svn: 149108
* In FixItRecompile::BeginInvocation(), check the return value of ↵Argyrios Kyrtzidis2012-01-271-18/+20
| | | | | | BeginSourceFile(). llvm-svn: 149107
* Keep source location information for X86 MCFixup's.Jim Grosbach2012-01-272-18/+23
| | | | llvm-svn: 149106
* Source information in 'expected relocatable expression' diagnostic.Jim Grosbach2012-01-271-1/+1
| | | | llvm-svn: 149105
* Placate gcc's -Wreturn-typeMatt Beaumont-Gay2012-01-271-0/+1
| | | | llvm-svn: 149104
* <rdar://problem/10760649>Greg Clayton2012-01-272-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed another double file descriptor close issue that could occur when destroying a ProcessGDBRemote() object. There was a race which was detected by our fd_interposing library: error: /Applications/Xcode.app/Contents/MacOS/Xcode (pid=55222): close (fd=60) resulted in EBADF: 0 libFDInterposing.dylib 0x00000001082be8ca close$__interposed__ + 666 1 LLDB 0x00000001194fde91 lldb_private::ConnectionFileDescriptor::Close(int&, lldb_private::Error*) + 97 2 LLDB 0x00000001194fddcd lldb_private::ConnectionFileDescriptor::Disconnect(lldb_private::Error*) + 143 3 LLDB 0x00000001194fe249 lldb_private::ConnectionFileDescriptor::Read(void*, unsigned long, unsigned int, lldb::ConnectionStatus&, lldb_private::Error*) + 835 4 LLDB 0x00000001194fc320 lldb_private::Communication::Read(void*, unsigned long, unsigned int, lldb::ConnectionStatus&, lldb_private::Error*) + 634 5 LLDB 0x000000011959c7f4 GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote&, unsigned int) + 228 6 LLDB 0x000000011959c6b5 GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSeconds(StringExtractorGDBRemote&, unsigned int) + 49 7 LLDB 0x0000000119629a71 GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse(ProcessGDBRemote*, char const*, unsigned long, StringExtractorGDBRemote&) + 509 8 LLDB 0x00000001195a4076 ProcessGDBRemote::AsyncThread(void*) + 514 9 LLDB 0x0000000119568094 ThreadCreateTrampoline(void*) + 91 10 libsystem_c.dylib 0x00007fff8ca028bf _pthread_start + 335 11 libsystem_c.dylib 0x00007fff8ca05b75 thread_start + 13 fd=60 was previously closed with this event: pid=55222: close (fd=60) => 0 0 libFDInterposing.dylib 0x00000001082be870 close$__interposed__ + 576 1 LLDB 0x00000001194fde91 lldb_private::ConnectionFileDescriptor::Close(int&, lldb_private::Error*) + 97 2 LLDB 0x00000001194fddcd lldb_private::ConnectionFileDescriptor::Disconnect(lldb_private::Error*) + 143 3 LLDB 0x00000001194fbf00 lldb_private::Communication::Disconnect(lldb_private::Error*) + 92 4 LLDB 0x00000001195a2a77 ProcessGDBRemote::StopAsyncThread() + 89 5 LLDB 0x00000001195a2bf6 ProcessGDBRemote::DoDestroy() + 310 6 LLDB 0x00000001195f938d lldb_private::Process::Destroy() + 85 7 LLDB 0x0000000118819b48 lldb::SBProcess::Kill() + 72 8 DebuggerLLDB 0x0000000117264358 DBGLLDBSessionThread(void*) + 4450 9 LLDB 0x0000000119568094 ThreadCreateTrampoline(void*) + 91 10 libsystem_c.dylib 0x00007fff8ca028bf _pthread_start + 335 11 libsystem_c.dylib 0x00007fff8ca05b75 thread_start + 13 fd=60 was created with this event: pid=55222: socket (domain = 2, type = 1, protocol = 6) => fd=60 0 libFDInterposing.dylib 0x00000001082bc968 socket$__interposed__ + 600 1 LLDB 0x00000001194fd75f lldb_private::ConnectionFileDescriptor::ConnectTCP(char const*, lldb_private::Error*) + 179 ..... llvm-svn: 149103
* Better user diagnostics for more ARM MachO relocation errors.Jim Grosbach2012-01-271-4/+8
| | | | llvm-svn: 149102
* Better diagnostic for malformed .org assembly directive.Jim Grosbach2012-01-279-19/+26
| | | | | | Provide source line number information. llvm-svn: 149101
* test/Driver/prefixed-tools.c: Disable this on win32 hosts, msvc and mingw.NAKAMURA Takumi2012-01-271-0/+4
| | | | | | | It had failed on Win32 due to inability of executing shell scripts. Still it fails even with mingw MSYS bash. llvm-svn: 149100
* test/Driver/prefixed-tools.c: Fix newline at end-of-file.NAKAMURA Takumi2012-01-271-1/+1
| | | | llvm-svn: 149099
* <rdar://problem/10750012>Greg Clayton2012-01-276-95/+5
| | | | | | | | Remove a pseudo terminal master open and slave file descriptor that was being used for pythong stdin. It was not hooked up correctly and was causing file descriptor leaks. llvm-svn: 149098
* Rewrite instruction operands in AdjustCopiesBackFrom. Fixes PR11861.Lang Hames2012-01-272-4/+27
| | | | llvm-svn: 149097
* Tidy up.Jim Grosbach2012-01-261-1/+1
| | | | llvm-svn: 149096
* Turn off implicit truncation warning for compound assignment to bitfields; ↵Eli Friedman2012-01-262-2/+4
| | | | | | | | it might be reasonable in some cases, but it clearly doesn't make sense in some cases, like the included testcase. <rdar://problem/10238797>, part 2. llvm-svn: 149095
* Teach ccc-analyzer about -fobjc-abi-version.Ted Kremenek2012-01-261-1/+2
| | | | llvm-svn: 149094
* Keep source information, if available, around for ARM Fixups.Jim Grosbach2012-01-263-9/+15
| | | | | | | | | | | | | | | | | Adjust an example MachObjectWriter diagnostic to use the information to issue a better message. Before: LLVM ERROR: unknown ARM fixup kind! After: x.s:6:5: error: unsupported relocation on symbol beq bar ^ rdar://9800182 llvm-svn: 149093
* Add simple support for keeping MCFixup source information.Jim Grosbach2012-01-264-2/+38
| | | | | | | Can be used to issue more user friendly diagnostics for faulty relocation constructs and such. llvm-svn: 149092
* llvm-mc pass through SourceMgr to MCContext.Jim Grosbach2012-01-261-1/+1
| | | | llvm-svn: 149091
* Add SourceMgr to MCContext for backend diagnostics.Jim Grosbach2012-01-262-3/+7
| | | | llvm-svn: 149090
OpenPOWER on IntegriCloud