Rafael Espindola [Tue, 30 Jul 2013 21:05:56 +0000 (21:05 +0000)]
Revert "cpp11-migrate: Write header replacements to disk"
This reverts commit 187428. It broke the windows bots.
http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/3450
llvm-svn: 187447
Howard Hinnant [Tue, 30 Jul 2013 21:04:42 +0000 (21:04 +0000)]
Debug mode for unordered_multimap. Some mods were done for unordered_map as well to keep all the tests passing. However unordered_map is at the very least still missing tests, if not functionality (if it isn't tested, it probably isn't working).
llvm-svn: 187446
David Majnemer [Tue, 30 Jul 2013 21:01:36 +0000 (21:01 +0000)]
isKnownToBeAPowerOfTwo: Strengthen isKnownToBeAPowerOfTwo's analysis on add instructions
Call into ComputeMaskedBits to figure out which bits are set on both add
operands and determine if the value is a power-of-two-or-zero or not.
llvm-svn: 187445
Matt Arsenault [Tue, 30 Jul 2013 20:45:05 +0000 (20:45 +0000)]
Change behavior of calling bitcasted alias functions.
It will now only convert the arguments / return value and call
the underlying function if the types are able to be bitcasted.
This avoids using fp<->int conversions that would occur before.
llvm-svn: 187444
Akira Hatanaka [Tue, 30 Jul 2013 20:42:19 +0000 (20:42 +0000)]
[mips] Delete instruction format for "bal".
llvm-svn: 187443
Andrew Trick [Tue, 30 Jul 2013 20:34:59 +0000 (20:34 +0000)]
This test may have been sensitive to the ARM ABI...
llvm-svn: 187442
Rafael Espindola [Tue, 30 Jul 2013 20:25:53 +0000 (20:25 +0000)]
Implement getUniqueID for directories on windows.
llvm-svn: 187441
Akira Hatanaka [Tue, 30 Jul 2013 20:24:24 +0000 (20:24 +0000)]
[mips] Define "bal" as a pseudo instruction. Also, fix bug in the InstAlias that
turns "bal" into "bgezal".
llvm-svn: 187440
Rafael Espindola [Tue, 30 Jul 2013 20:02:18 +0000 (20:02 +0000)]
Remove dead code.
llvm-svn: 187439
Andrew Trick [Tue, 30 Jul 2013 19:59:19 +0000 (19:59 +0000)]
Down-scale slot index distance to save bits.
llvm-svn: 187438
Andrew Trick [Tue, 30 Jul 2013 19:59:15 +0000 (19:59 +0000)]
whitespace
llvm-svn: 187437
Andrew Trick [Tue, 30 Jul 2013 19:59:12 +0000 (19:59 +0000)]
MI Sched: Track live-thru registers.
When registers must be live throughout the scheduling region, increase
the limit for the register class. Once we exceed the original limit,
they will be spilled, and there's no point further reducing pressure.
This isn't a perfect heuristics but avoids a situation where the
scheduler could become trapped by trying to achieve the impossible.
llvm-svn: 187436
Andrew Trick [Tue, 30 Jul 2013 19:59:08 +0000 (19:59 +0000)]
MI Sched fix: assert "Disconnected LRG within the scheduling region."
llvm-svn: 187435
Sean Callanan [Tue, 30 Jul 2013 19:54:09 +0000 (19:54 +0000)]
Send a stop event when an expression stops at a breakpoint
in an expression and doesn't ignore the stop.
Patch by Jim Ingham.
<rdar://problem/
14583884>
llvm-svn: 187434
Venkatraman Govindaraju [Tue, 30 Jul 2013 19:53:10 +0000 (19:53 +0000)]
[Sparc] Rewrite MBB's live-in registers for leaf functions. Also, add
register i7 as a live-in if current function's return address is taken.
This revision fixes PR16269.
llvm-svn: 187433
Stefanus Du Toit [Tue, 30 Jul 2013 19:19:55 +0000 (19:19 +0000)]
Add missing -Xlinker to order test.
Both the parameter itself and the argument to the parameter must be prefixed
with -Xlinker so that they are passed properly.
llvm-svn: 187432
Stefanus Du Toit [Tue, 30 Jul 2013 19:19:49 +0000 (19:19 +0000)]
Use -Wl to specify -rpath correctly.
llvm-svn: 187431
Rui Ueyama [Tue, 30 Jul 2013 19:03:20 +0000 (19:03 +0000)]
Implement TokenizeWindowsCommandLine.
This is a follow up patch for r187390 to implement the parser for the
Windows-style command line. This should follow the rule as described
at http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx
Differential Revision: http://llvm-reviews.chandlerc.com/D1235
llvm-svn: 187430
Howard Hinnant [Tue, 30 Jul 2013 19:00:45 +0000 (19:00 +0000)]
tip-of-trunk clang has corrected some access checks for special members in a virtual inheritance hierarchy. Change a few private inheritances to protected. This change will not impact what the test was testing. This fixes llvm.org/bugs/show_bug.cgi?id=16753.
llvm-svn: 187429
Tareq A. Siraj [Tue, 30 Jul 2013 18:18:02 +0000 (18:18 +0000)]
cpp11-migrate: Write header replacements to disk
Committing r187204 with fixes for darwin. Note that one of the lit tests are
disabled on windows due to a bug in writing header replacements to file.
Header replacements are now written to disk in YAML format for an external tool
to merge. A unique file will be created in the same directory as the header
with all replacements that came from a source file that included the header
file. The YAML file will have:
- Name of the file
- Transform ID that generated the replacement
- Offset
- Length
- Replacement text
Any tool reading these replacements should read them using the
TransformDocument struct.
llvm-svn: 187428
Chandler Carruth [Tue, 30 Jul 2013 17:57:09 +0000 (17:57 +0000)]
Start keeping track of what work was done to detect a GCC installation
on the system, and report it when running the driver in verbose mode.
Without this it is essentially impossible to understand why a particular
GCC toolchain is used by Clang for libstdc++, libgcc, etc.
This also required threading a hook through the toolchain layers for
a specific toolchain implementation to print custom information under
'clang -v'. The naming here isn't spectacular. Suggestions welcome.
llvm-svn: 187427
Stefanus Du Toit [Tue, 30 Jul 2013 17:33:30 +0000 (17:33 +0000)]
Use the correct compiler to compute dependencies.
This uses $(CXX) instead of $(CC) to generate the .d files for tests built
with Makefiles.
llvm-svn: 187426
Michael Sartain [Tue, 30 Jul 2013 16:44:36 +0000 (16:44 +0000)]
Add format specifiers to various format ids so we can print thread ids in decimal on Linux and FreeBSD.
CC: emaste
Differential Revision: http://llvm-reviews.chandlerc.com/D1234
llvm-svn: 187425
Daniel Malea [Tue, 30 Jul 2013 16:16:11 +0000 (16:16 +0000)]
Fix parameter ordering bug in createDebugIRPass()
- Thanks to Ilia Filippov for pointing out the inconsistency!
llvm-svn: 187424
Ashok Thirumurthi [Tue, 30 Jul 2013 14:58:39 +0000 (14:58 +0000)]
Updates the DW_AT_data_member_location handlers for the LLDB DWARF plugin
to handle the case of an integer constant (DWARF 3 and later).
- Fixes tests that assert in RecordLayoutBuilder::updateExternalFieldOffset
because LLDB was providing an external AST source with missing member offsets.
llvm-svn: 187423
Ed Maste [Tue, 30 Jul 2013 14:40:59 +0000 (14:40 +0000)]
Run-time reg context selection for POSIX targets
Instantiate RegisterContext... based on getOS() instead of with
compile-time #ifdef-ery.
The assert() here is unfortunate, but better than crashing with no
explanation.
This change is equivalent to r186865 for elf-core.
llvm-svn: 187422
Tom Stellard [Tue, 30 Jul 2013 14:31:03 +0000 (14:31 +0000)]
R600/SI: Expand vector fp <-> int conversions
llvm-svn: 187421
Aaron Ballman [Tue, 30 Jul 2013 14:29:12 +0000 (14:29 +0000)]
err_attribute_missing_parameter_name has been replaced by err_attribute_argument_type.
llvm-svn: 187420
Aaron Ballman [Tue, 30 Jul 2013 14:10:17 +0000 (14:10 +0000)]
Replacing err_attribute_argument_not_int with err_attribute_not_type_attr
llvm-svn: 187419
Ed Maste [Tue, 30 Jul 2013 13:25:27 +0000 (13:25 +0000)]
tests: process connect needs "-p gdb-remote" on FreeBSD as on Linux
llvm-svn: 187418
Evgeniy Stepanov [Tue, 30 Jul 2013 13:16:52 +0000 (13:16 +0000)]
[sanitizer] Tweak read syscall handler signature for consistency.
llvm-svn: 187417
Ed Maste [Tue, 30 Jul 2013 13:12:58 +0000 (13:12 +0000)]
tests: Mark expected FreeBSD failures due to pr14424
These tests fail on FreeBSD due to missing build support, the same reason
they fail on Linux.
llvm-svn: 187416
Ed Maste [Tue, 30 Jul 2013 13:08:24 +0000 (13:08 +0000)]
tests: Mark expected FreeBSD failures due to pr16697
llvm-svn: 187415
Evgeniy Stepanov [Tue, 30 Jul 2013 13:04:43 +0000 (13:04 +0000)]
[sanitizer] read() syscall hook.
llvm-svn: 187414
Evgeniy Stepanov [Tue, 30 Jul 2013 12:54:34 +0000 (12:54 +0000)]
[msan] Intercept pthread_join.
llvm-svn: 187413
Evgeniy Stepanov [Tue, 30 Jul 2013 12:46:59 +0000 (12:46 +0000)]
[msan] Intercept confstr.
llvm-svn: 187412
Evgeniy Stepanov [Tue, 30 Jul 2013 11:50:26 +0000 (11:50 +0000)]
[asan] Limit fake stack size to a reasonable value when running with unlimited stack.
llvm-svn: 187411
Vladimir Medic [Tue, 30 Jul 2013 10:12:14 +0000 (10:12 +0000)]
This patch implements parsing of mips FCC register operands. The example instructions have been added to test files.
llvm-svn: 187410
Timur Iskhodzhanov [Tue, 30 Jul 2013 09:46:19 +0000 (09:46 +0000)]
Add MicrosoftVFTableContext to AST
llvm-svn: 187409
Evgeniy Stepanov [Tue, 30 Jul 2013 09:01:18 +0000 (09:01 +0000)]
[asan] Raise thread stack size limit.
It's a sanity check, mostly, and we've seen threads with >256Mb stack.
llvm-svn: 187408
Evgeniy Stepanov [Tue, 30 Jul 2013 08:39:16 +0000 (08:39 +0000)]
[sanitizer] Disable ForEachMappedRegion on Android.
It needs interface that is missing from the NDK, and it is not used on Android anyway.
llvm-svn: 187407
Bill Wendling [Tue, 30 Jul 2013 08:26:24 +0000 (08:26 +0000)]
Fix underscore to be the proper length.
llvm-svn: 187406
NAKAMURA Takumi [Tue, 30 Jul 2013 07:47:58 +0000 (07:47 +0000)]
clang/test/Driver/qa_override.c: Resurrect a part of r187376. It still requires the feature 'clang-driver' for cygming.
llvm-svn: 187405
Saleem Abdulrasool [Tue, 30 Jul 2013 04:43:08 +0000 (04:43 +0000)]
[ARM] check bitwidth in PerformORCombine
When simplifying a (or (and B A) (and C ~A)) to a (VBSL A B C) ensure that the
bitwidth of the second operands to both ands match before comparing the negation
of the values.
Split the check of the value of the second operands to the ands. Move the cast
and variable declaration slightly higher to make it slightly easier to follow.
Bug-Id: 16700
Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
llvm-svn: 187404
Rafael Espindola [Tue, 30 Jul 2013 04:06:06 +0000 (04:06 +0000)]
Remove more dead documentation.
llvm-svn: 187403
Venkatraman Govindaraju [Tue, 30 Jul 2013 02:26:29 +0000 (02:26 +0000)]
[Sparc] Use call's debugloc for the unimp instruction.
llvm-svn: 187402
Aaron Ballman [Tue, 30 Jul 2013 01:44:15 +0000 (01:44 +0000)]
Added the notion of Type and TargetSpecific attributes to the clang tablegen. In turn, this fixes a mistake with Ptr32, Ptr64, UPtr and SPtr attribtues generating AST nodes that are never actually used.
llvm-svn: 187401
Aaron Ballman [Tue, 30 Jul 2013 01:31:03 +0000 (01:31 +0000)]
err_attribute_not_string has been subsumed by err_attribute_argument_type.
llvm-svn: 187400
Bill Schmidt [Tue, 30 Jul 2013 00:50:39 +0000 (00:50 +0000)]
[PowerPC] Skeletal FastISel support for 64-bit PowerPC ELF.
This is the first of many upcoming patches for PowerPC fast
instruction selection support. This patch implements the minimum
necessary for a functional (but extremely limited) FastISel pass. It
allows the table-generated portions of the selector to be created and
used, but in most cases selection will fall back to the DAG selector.
None of the block terminator instructions are implemented yet, and
most interesting instructions require some special handling.
Therefore there aren't any new test cases with this patch. There will
be quite a few tests coming with future patches.
This patch adds the make/CMake support for the new code (including
tablegen -gen-fast-isel) and creates the FastISel object for PPC64 ELF
only. It instantiates the necessary virtual functions
(TargetSelectInstruction, TargetMaterializeConstant,
TargetMaterializeAlloca, tryToFoldLoadIntoMI, and FastLowerArguments),
but of these, only TargetMaterializeConstant contains any useful
implementation. This is present since the table-generated code
requires the ability to materialize integer constants for some
instructions.
This patch has been tested by building and running the
projects/test-suite code with -O0. All tests passed with the
exception of a couple of long-running tests that time out using -O0
code generation.
llvm-svn: 187399
Aaron Ballman [Tue, 30 Jul 2013 00:48:57 +0000 (00:48 +0000)]
Refactor some attributes to use checkFunctionOrMethodArgumentIndex instead of using custom logic. No functional changes intended.
llvm-svn: 187398
Quentin Colombet [Tue, 30 Jul 2013 00:27:16 +0000 (00:27 +0000)]
[R600] Replicate old DAGCombiner behavior in target specific DAG combine.
build_vector is lowered to REG_SEQUENCE, which is something the register
allocator does a good job at optimizing.
llvm-svn: 187397
Quentin Colombet [Tue, 30 Jul 2013 00:24:09 +0000 (00:24 +0000)]
[DAGCombiner] insert_vector_elt: Avoid building a vector twice.
This patch prevents the following combine when the input vector is used more
than once.
insert_vector_elt (build_vector elt0, ..., eltN), NewEltIdx, idx
=>
build_vector elt0, ..., NewEltIdx, ..., eltN
The reasons are:
- Building a vector may be expensive, so try to reuse the existing part of a
vector instead of creating a new one (think big vectors).
- elt0 to eltN now have two users instead of one. This may prevent some other
optimizations.
llvm-svn: 187396
Greg Clayton [Tue, 30 Jul 2013 00:23:06 +0000 (00:23 +0000)]
<rdar://problem/
14526890>
Fixed a crasher when using memory threads where a thread is sticking around too long and was causing problems when it didn't have a thread plan.
llvm-svn: 187395
Eric Christopher [Tue, 30 Jul 2013 00:20:06 +0000 (00:20 +0000)]
Move file to X86 and add a triple to fix darwin bots for now.
The problem is due to the section name being explicitly mentioned in
the IR and differing between the two platforms.
llvm-svn: 187394
Eric Christopher [Mon, 29 Jul 2013 23:53:08 +0000 (23:53 +0000)]
Fix a truly egregious thinko in anonymous namespace check,
update testcase to make sure we generate debug info for walrus
by adding a non-trivial constructor and verify that we don't
emit an ODR signature for the type.
llvm-svn: 187393
Eric Christopher [Mon, 29 Jul 2013 23:53:05 +0000 (23:53 +0000)]
Make sure we don't emit an ODR hash for types with no name and make
sure the comments for each testcase are a bit easier to distinguish.
llvm-svn: 187392
Eric Christopher [Mon, 29 Jul 2013 23:53:01 +0000 (23:53 +0000)]
Clarify comments for types contained in anonymous namespaces and
odr hashes.
llvm-svn: 187391
Rui Ueyama [Mon, 29 Jul 2013 23:32:22 +0000 (23:32 +0000)]
[PECOFF][Driver] Remove quotes from command line arguments.
The command line option in .drectve section may be quoted by double
quotes, and if that's the case we have to remove them.
llvm-svn: 187390
Daniel Malea [Mon, 29 Jul 2013 23:13:08 +0000 (23:13 +0000)]
Fix TestConcurrentEvents to behave nicely with GCC 4.8
- newer gcc generates additional debuginfo for function exit (stack object desctruction) which was causing tests to fail
- work-around consists of not declaring any stack objects in main()
llvm-svn: 187389
Rui Ueyama [Mon, 29 Jul 2013 22:55:39 +0000 (22:55 +0000)]
[PECOFF] Process Import Name/Type field in the import library.
This patch removes hacky mangle() function, which strips all decorations
uncondtitionally. LLD now interprets Import Name/Type field in the import
library properly as described in the Microsoft PE/COFF Spec.
llvm-svn: 187388
David Blaikie [Mon, 29 Jul 2013 22:37:42 +0000 (22:37 +0000)]
Remove assert header dependency in test
llvm-svn: 187387
Alexander Kornienko [Mon, 29 Jul 2013 22:26:10 +0000 (22:26 +0000)]
Simplified SourceManager::translateLineCol a bit.
Reviewers: rsmith
Reviewed By: rsmith
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1183
llvm-svn: 187386
Eric Christopher [Mon, 29 Jul 2013 22:24:32 +0000 (22:24 +0000)]
Elaborate a bit on the type unit and ODR conditional code.
llvm-svn: 187385
John Thompson [Mon, 29 Jul 2013 21:59:41 +0000 (21:59 +0000)]
Fixed comment typo.
llvm-svn: 187384
Rafael Espindola [Mon, 29 Jul 2013 21:55:38 +0000 (21:55 +0000)]
Make file_status::getUniqueID const.
llvm-svn: 187383
Rui Ueyama [Mon, 29 Jul 2013 21:54:43 +0000 (21:54 +0000)]
[PECOFF] Replace the magic number with sizeof().
llvm-svn: 187382
Rui Ueyama [Mon, 29 Jul 2013 21:50:33 +0000 (21:50 +0000)]
Fix test failure introduced in r187271 by enabling pipefail.
llvm-svn: 187381
Rafael Espindola [Mon, 29 Jul 2013 21:35:48 +0000 (21:35 +0000)]
Delete documentation for deleted options.
llvm-svn: 187380
Rafael Espindola [Mon, 29 Jul 2013 21:26:52 +0000 (21:26 +0000)]
Update for llvm api change.
llvm-svn: 187379
Rafael Espindola [Mon, 29 Jul 2013 21:26:49 +0000 (21:26 +0000)]
Include st_dev to make the result of getUniqueID actually unique.
This will let us use getUniqueID instead of st_dev directly on clang.
llvm-svn: 187378
Ed Maste [Mon, 29 Jul 2013 20:58:06 +0000 (20:58 +0000)]
Use flag instead of rwlock state to track process running state
LLDB requires that the inferior process be stopped before, and remain
stopped during, certain accesses to process state.
Previously this was achieved with a POSIX rwlock which had a write lock
taken for the duration that the process was running, and released when
the process was stopped. Any access to process state was performed with
a read lock held.
However, POSIX requires that pthread_rwlock_unlock() be called from the
same thread as pthread_rwlock_wrlock(), and lldb needs to stop and start
the process from different threads. Violating this constraint is
technically undefined behaviour, although as it happens Linux and Darwin
result in the unlock proceeding in this case. FreeBSD follows POSIX
more strictly, and the unlock would fail, resulting in a hang later upon
the next attempt to take the lock.
All read lock consumers use ReadTryLock() and handle failure to obtain
the lock (typically by logging an error "process is running"). Thus,
instead of using the lock state itself to track the running state, this
change adds an explicit m_running flag. ReadTryLock tests the flag, and
if the process is not running it returns with the read lock held.
WriteLock and WriteTryLock are renamed to SetRunning and TrySetRunning,
and (if successful) they set m_running with the lock held. This way,
read consumers can determine if the process is running and act
appropriately, and write consumers are still held off from starting the
process if read consumers are active.
Note that with this change there are still some curious access patterns,
such as calling WriteUnlock / SetStopped twice in a row, and there's no
protection from multiple threads trying to simultaneously start the
process. In practice this does not seem to be a problem, and was
exposing other undefined POSIX behaviour prior to this change.
llvm-svn: 187377
Chandler Carruth [Mon, 29 Jul 2013 20:29:53 +0000 (20:29 +0000)]
Make this test not try to write on object file and test all of the
output rather than just part of it.
Also, remove the frighteningly ancient comment about not working with
the gcc-driver. (!!!)
llvm-svn: 187376
Manman Ren [Mon, 29 Jul 2013 20:18:19 +0000 (20:18 +0000)]
Debug Info: enable verifier for testing cases.
llvm-svn: 187375
Richard Smith [Mon, 29 Jul 2013 20:14:16 +0000 (20:14 +0000)]
PR16715: Fix assert in verifier: only mark call to 'operator new' as 'builtin' if
corresponding 'operator new' was actually emitted as a function marked 'nobuiltin'.
llvm-svn: 187374
Peter Collingbourne [Mon, 29 Jul 2013 20:13:41 +0000 (20:13 +0000)]
Fix warning.
llvm-svn: 187373
Peter Collingbourne [Mon, 29 Jul 2013 19:09:49 +0000 (19:09 +0000)]
Move UnpoisonMappedDSO to sanitizer_common.
This is so DFSan will be able to use it.
Differential Revision: http://llvm-reviews.chandlerc.com/D1206
llvm-svn: 187372
Akira Hatanaka [Mon, 29 Jul 2013 19:08:34 +0000 (19:08 +0000)]
[mips] Add comment and simplify function.
llvm-svn: 187371
John Thompson [Mon, 29 Jul 2013 19:07:00 +0000 (19:07 +0000)]
Fixed comment issues (non-ASCII chars, typos) per review, expanded some comments.
llvm-svn: 187370
Howard Hinnant [Mon, 29 Jul 2013 19:05:47 +0000 (19:05 +0000)]
Debug mode for unordered_multiset. The exercise spotted a few places I had missed on unordered_set, so I picked those up as well.
There are actually two debug modes:
1. -D_LIBCPP_DEBUG2 or -D_LIBCPP_DEBUG2=1
This is a relatively expensive debug mode, but very thorough. This is normally what you want to debug with, but may turn O(1) operations into O(N) operations.
2. -D_LIBCPP_DEBUG2=0
This is "debug lite." Only preconditions that can be checked with O(1) expense are checked. For example range checking on an indexing operation. But not iterator validity.
llvm-svn: 187369
Nadav Rotem [Mon, 29 Jul 2013 18:47:36 +0000 (18:47 +0000)]
Add the C source code to the test to make it easier to update when debug info changes.
Thanks Eric.
llvm-svn: 187368
Rafael Espindola [Mon, 29 Jul 2013 18:43:40 +0000 (18:43 +0000)]
Convert a use of status with llvm::sys::fs::getUniqueID.
llvm-svn: 187367
Hans Wennborg [Mon, 29 Jul 2013 18:40:38 +0000 (18:40 +0000)]
test/Driver/cl.c, remove quotes around /help
The quotes (from r187330) didn't really help here, the trick was to disable
the test on MSYS builds. This removes those quotes, changes back the comment
to explain why /? has to be quoted specifically, and moves the REQUIRES
line to the top of the file because that's important.
llvm-svn: 187366
David Blaikie [Mon, 29 Jul 2013 18:24:03 +0000 (18:24 +0000)]
Support for Thread Safety Analysis in C
Patch by Ethan Jackson.
llvm-svn: 187365
Rafael Espindola [Mon, 29 Jul 2013 18:22:23 +0000 (18:22 +0000)]
Convert a use of stat with sys::fs::status.
llvm-svn: 187364
Nadav Rotem [Mon, 29 Jul 2013 18:18:46 +0000 (18:18 +0000)]
SLPVectorier: update the debug location for the new instructions.
llvm-svn: 187363
Manman Ren [Mon, 29 Jul 2013 18:12:58 +0000 (18:12 +0000)]
Debug Info: update testing cases to pass verifier.
llvm-svn: 187362
Ashok Thirumurthi [Mon, 29 Jul 2013 16:05:11 +0000 (16:05 +0000)]
Adds a DW_OP_call_frame_cfa handler when evaluating DWARF 3/4 expressions
in LLDB that load the canonical frame address rather than a location list.
- Handles the simple case where a CFA can be pulled from the current stack frame.
- Fixes more than one hundred failing tests with gcc 4.8!
TODO: Use UnwindPlan::GetRowForFunctionOffset if the DWARFExpression needs
to be evaluated in a context analogous to a virtual unwind (perhaps using RegisterContextLLDB).
- Also adds some comments to DWARFCallFrameInfo whenever I got confused.
llvm-svn: 187361
Guillaume Papin [Mon, 29 Jul 2013 15:58:47 +0000 (15:58 +0000)]
cpp11-migrate: Add -for-compilers command line switch.
This change add a new option command line option -for-compilers that allows the
user to enable multiple transforms automatically.
Another difference is that now all transforms are enabled by default.
llvm-svn: 187360
Rafael Espindola [Mon, 29 Jul 2013 15:47:24 +0000 (15:47 +0000)]
Fix handling of "clang c:foo"
On windows, c:foo is a valid file path, but stat fails on just "c:". This
causes a problem for clang since its file manager wants to cache data about
the parent directory.
There are refactorings to be done in here, but this gives clang the correct
behavior and testing first.
Patch by Yunzhong Gao!
llvm-svn: 187359
Howard Hinnant [Mon, 29 Jul 2013 14:43:42 +0000 (14:43 +0000)]
Add operator new[] to test. Partial fix for valgrind warning in llvm.org/bugs/show_bug.cgi?id=16703.
llvm-svn: 187358
Marshall Clow [Mon, 29 Jul 2013 14:21:53 +0000 (14:21 +0000)]
Implement N3421; comparison predicates<void>
llvm-svn: 187357
Nico Rieck [Mon, 29 Jul 2013 13:58:39 +0000 (13:58 +0000)]
Use proper section suffix for COFF weak symbols
32-bit symbols have "_" as global prefix, but when forming the name of
COMDAT sections this prefix is ignored. The current behavior assumes that
this prefix is always present which is not the case for 64-bit and names
are truncated.
llvm-svn: 187356
Nico Rieck [Mon, 29 Jul 2013 13:07:06 +0000 (13:07 +0000)]
Proper va_arg/va_copy lowering on win64
Win64 uses CharPtrBuiltinVaList instead of X86_64ABIBuiltinVaList like
other 64-bit targets.
llvm-svn: 187355
Aaron Ballman [Mon, 29 Jul 2013 13:02:08 +0000 (13:02 +0000)]
Re-application of 187310. Re-enabling warning C4275 for MSVC 11 and up, but not MSVC 10 since it is still required there.
llvm-svn: 187354
Rafael Espindola [Mon, 29 Jul 2013 12:40:31 +0000 (12:40 +0000)]
Add support for the 's' operation to llvm-ar.
If no other operation is specified, 's' becomes an operation instead of an
modifier. The s operation just creates a symbol table. It is the same as
running ranlib.
We assume the archive was created by a sane ar (like llvm-ar or gnu ar) and
if the symbol table is present, then it is current. We use that to optimize
the most common case: a broken build system that thinks it has to run ranlib.
llvm-svn: 187353
Nico Rieck [Mon, 29 Jul 2013 12:30:12 +0000 (12:30 +0000)]
MC: Support larger COFF string tables
Single-slash encoded entries do not require a terminating null. This bumps
the maximum table size from ~1MB to ~9.5MB.
llvm-svn: 187352
NAKAMURA Takumi [Mon, 29 Jul 2013 11:03:50 +0000 (11:03 +0000)]
ExceptionDemo.cpp: Tweak a @param. [-Wdocumentation]
llvm-svn: 187351
Benjamin Kramer [Mon, 29 Jul 2013 11:02:08 +0000 (11:02 +0000)]
Some Intel Penryn CPUs come with SSE4 disabled. Detect them as core 2.
PR16721.
llvm-svn: 187350
Silviu Baranga [Mon, 29 Jul 2013 09:25:50 +0000 (09:25 +0000)]
Allow generation of vmla.f32 instructions when targeting Cortex-A15. The patch also adds the VFP4 feature to Cortex-A15 and fixes the DontUseFusedMAC predicate so that we can still generate vmla.f32 instructions on non-darwin targets with VFP4.
llvm-svn: 187349
Robert Lytton [Mon, 29 Jul 2013 09:23:13 +0000 (09:23 +0000)]
test commit
llvm-svn: 187348