Rui Ueyama
ad807658ea
Attempt to unbreak little-endian buildbots.
...
llvm-svn: 203023
2014-03-05 23:03:37 +00:00
Richard Smith
a13f8ae84e
DR status page: add link targets for individual DRs, and link duplicates.
...
llvm-svn: 203022
2014-03-05 23:02:47 +00:00
Richard Smith
faf156ad15
Tests for DR370-380.
...
Also promote a couple of Warnings on ill-formed code found by this testing to
ExtWarns.
llvm-svn: 203021
2014-03-05 22:54:58 +00:00
Jack Carter
6b9cf961bd
[Mips] Testcase typo fix. No functionality change.
...
llvm-svn: 203020
2014-03-05 22:54:56 +00:00
Rafael Espindola
9251c42f72
Now that we don't use libtool, we don't need to upgrade it :-)
...
Thanks to Patrik Hägglund H for noticing it!
llvm-svn: 203019
2014-03-05 22:45:14 +00:00
Eric Christopher
a27220fb8c
Add a DIELocList class to handle pointers into the location list.
...
This enables us to figure out where in the debug_loc section our
locations are so that we can eventually hash them. It also helps
remove some special case code in emission. No functional change.
llvm-svn: 203018
2014-03-05 22:41:20 +00:00
Rui Ueyama
3e37326166
Add a document about Windows support.
...
llvm-svn: 203017
2014-03-05 22:35:32 +00:00
Ted Kremenek
3cdbc39a6e
[-Wunreachable-code] generalize configuration value checking to all comparison operators.
...
llvm-svn: 203016
2014-03-05 22:32:39 +00:00
Hal Finkel
6a56b21729
With PPC CR bit registers, handle int_to_fp on older cores
...
On cores without fpcvt support, we cannot promote int_to_fp i1 operations,
because there is nothing to promote them to. The most straightforward
implementation of this uses a select to choose between the two possible
resulting floating-point values (and that's what is done here).
llvm-svn: 203015
2014-03-05 22:14:00 +00:00
Aaron Ballman
4853a10e57
Updating this test case to appease build bots which support ANSI escape sequences (unlike my dev box).
...
llvm-svn: 203014
2014-03-05 21:59:02 +00:00
Matt Arsenault
ca6dcfcf59
Fix typo
...
llvm-svn: 203013
2014-03-05 21:47:22 +00:00
Aaron Ballman
6c8100748f
Capabilities are required to pass a name specifying what type of capability is being annotated. There are currently only two supported names: mutex and role. Adding functionality to check for the capability name and diagnose when it's unexpected.
...
Note that for backwards compatibility, an unnamed capability will default to being a "mutex." This allows the deprecated lockable attribute to continue to function.
llvm-svn: 203012
2014-03-05 21:47:13 +00:00
JF Bastien
d44807ca67
Fix datalayout test that I broke with my previous LinkModules warning improvement.
...
llvm-svn: 203011
2014-03-05 21:37:08 +00:00
Ben Langmuir
9385323747
Attempt to re-enable the VFS unittests on Windows
...
Using a //net/ path to hopefully avoid problems with non-absolute paths
on Windows.
llvm-svn: 203010
2014-03-05 21:32:20 +00:00
JF Bastien
026fc5f6ab
Improve LinkModules warnings
...
Provide triple and data layout as well as module names (or empty string) when there's a mismatch.
Differential Revision: http://llvm-reviews.chandlerc.com/D2971
llvm-svn: 203009
2014-03-05 21:26:42 +00:00
Arnold Schwaighofer
ab12363c02
LoopVectorizer: Preserve fast-math flags
...
Fixes PR19045.
llvm-svn: 203008
2014-03-05 21:10:47 +00:00
Rafael Espindola
191b95125a
Don't produce an alias between destructors with different calling conventions.
...
Fixes pr19007.
llvm-svn: 203007
2014-03-05 21:04:41 +00:00
Richard Smith
7bea1d42d8
When building a module from the command line via -emit-module, add an entry to
...
the module build stack for the module being built, so we can correctly detect
recursive module builds.
llvm-svn: 203006
2014-03-05 20:55:36 +00:00
Richard Smith
8c71eba19f
If a #include finds a file relative to the current file, don't forget to check
...
whether it's part of a module.
llvm-svn: 203005
2014-03-05 20:51:45 +00:00
Rui Ueyama
b63570ecb6
Fix broken link.
...
llvm-svn: 203004
2014-03-05 20:39:57 +00:00
Rui Ueyama
746c915c9d
Visual Studio 11 = VS2012
...
llvm-svn: 203003
2014-03-05 20:36:07 +00:00
Nico Weber
fcf6128c71
Mention clang-cl in MSVCCompatibility.rst
...
llvm-svn: 203002
2014-03-05 20:18:59 +00:00
Rafael Espindola
8377085657
Always print the implicit .text at the start of an asm file.
...
Before llvm-mc would print it, but llc was assuming that it would produce
another section changing directive before one was needed. That assumption is
false with inline asm.
Fixes PR19049.
Another option would be to always create the section, but in the asm printer
avoid printing sections changes during initialization. That would work, but
* We do use the fact that llvm-mc prints it in testing. The tests can be changed
if needed.
* A quick poll on IRC suggest that most developers prefer the implicit .text to
be printed.
llvm-svn: 203001
2014-03-05 20:09:15 +00:00
Rafael Espindola
1368f8ac96
Update for llvm change.
...
llvm-svn: 203000
2014-03-05 20:08:57 +00:00
Ben Langmuir
8d11639612
Fix an inconsistency in treatment of trailing / in path::const_iterator
...
When using a //net/ path, we were transforming the trailing / into a '.'
when the path was just the root path and we were iterating backwards.
Forwards iteration and other kinds of root path (C:\, /) were already
correct.
llvm-svn: 202999
2014-03-05 19:56:30 +00:00
Rui Ueyama
d6ad741e5e
Add "override" to member functions where appropriate.
...
llvm-svn: 202998
2014-03-05 19:50:03 +00:00
Benjamin Kramer
061d147f74
ConstantFolding: Also fold the vector overloads of our math intrinsics.
...
llvm-svn: 202997
2014-03-05 19:41:48 +00:00
Cameron McInally
791ae9927c
Lower AVX v4i64->v4i32 truncate to one shuffle.
...
llvm-svn: 202996
2014-03-05 19:41:16 +00:00
Argyrios Kyrtzidis
f8d46fb6eb
[code-completion] Add a couple of test cases suggested by Jordan, and a FIXME.
...
llvm-svn: 202995
2014-03-05 19:10:31 +00:00
Marshall Clow
78a87e8a68
Implement LWG 2193. Default constructors for standard library containers are explicit. Note that libc++ already did this for string/deque/forward_list/list/vector and the unordered containers; implement it for set/multiset/map/multimap. Add tests for all the containers. Two drive-by fixes as well: add a missing explicit in <deque>, and remove a tab that snuck into a container test. This issue is also LLVM bug 15724, and resolves it.
...
llvm-svn: 202994
2014-03-05 19:06:20 +00:00
David Majnemer
f27217ffaf
AST: Remove layering violation with Sema
...
Scope lives in Sema and cannot be used in AST. Shuffle things around.
llvm-svn: 202993
2014-03-05 18:55:38 +00:00
David Blaikie
7f4a52eaee
Fix clang -Werror build break due to mismatched sign comparison.
...
Originally committed in r202985.
llvm-svn: 202992
2014-03-05 18:53:36 +00:00
Marshall Clow
28eded3845
Mark is_final as a C++14 feature.
...
llvm-svn: 202991
2014-03-05 17:58:48 +00:00
Marshall Clow
f2c10e1340
Remove definition of std::fmaf from libc++. Fixes bug #18910 . This function should come from the C standard library. As a drive-by fix, update the tests to remove a warning from -Wabsolute-value
...
llvm-svn: 202990
2014-03-05 17:09:51 +00:00
Aaron Ballman
8f1439bd0c
[C++11] Using std::unique_ptr to ensure that Argument objects do not leak (since clang-tblgen isn't long-lived, the old leak is probably acceptable, but it offended my senses nonetheless).
...
llvm-svn: 202989
2014-03-05 16:49:55 +00:00
Hans Wennborg
928fb264a5
Work around MSVC bug in IntrusiveRefCntPtr.h
...
The build was failing with:
error C2664: 'std::atomic_int::atomic_int(const std::atomic_int &)' : cannot convert argument 1 from 'int' to 'const std::atomic_int &'
Apparently "std::atomic_int x(0)" doesn't work, but "std::atomic<int> x(0)"
does.
llvm-svn: 202988
2014-03-05 16:26:04 +00:00
Alexander Kornienko
9de3a98c4e
Fixed a crash when handling diagnostics without a valid file location, e.g. 'error reading <file>'.
...
llvm-svn: 202987
2014-03-05 15:44:36 +00:00
Ben Langmuir
53145df884
Use ThreadSafeRefCountedBase for vfs::FileSystem
...
Allow trivial read-only filesystems such as RealFileSystem to be shared
between threads.
llvm-svn: 202986
2014-03-05 15:25:59 +00:00
Oliver Stannard
d55e115b58
ARM: Correctly align arguments after a byval struct is passed on the stack
...
llvm-svn: 202985
2014-03-05 15:25:27 +00:00
Ben Langmuir
7590be3cfa
Add a ThreadSafeRefCountedBase
...
A version of RefCountedBase that uses std::atomic_int to store its
reference count.
llvm-svn: 202984
2014-03-05 15:24:33 +00:00
Alexey Samsonov
921f5a529e
asan_symbolize.py: use llvm-symbolizer results even if it returned function name w/o file/line info
...
llvm-svn: 202983
2014-03-05 15:18:50 +00:00
Alexey Samsonov
8ad7a05bb4
Improve llvm-symbolizer discovery in asan_symbolize.py
...
llvm-svn: 202982
2014-03-05 15:00:36 +00:00
Alexey Samsonov
e062e4c7eb
Enable memrchr interceptor only on Linux
...
llvm-svn: 202981
2014-03-05 14:07:19 +00:00
Ed Maste
32aa12b86c
Build JITLoader on FreeBSD also
...
llvm-svn: 202980
2014-03-05 13:57:24 +00:00
Dmitry Vyukov
792d4b1559
tsan: add missing header file to sanitizer_common cmake file
...
llvm-svn: 202979
2014-03-05 13:55:32 +00:00
Timur Iskhodzhanov
77764b6d4c
Style fix: replace "1 entries" with "1 entry" in the vftable layout dumping code
...
llvm-svn: 202978
2014-03-05 13:54:07 +00:00
Dmitry Vyukov
e73e0a04d7
tsan: fix deadlock detector build for SANITIZER_DEADLOCK_DETECTOR_VERSION=2
...
llvm-svn: 202977
2014-03-05 13:53:29 +00:00
Ed Maste
29150c1731
Put "jit" in alpha order in log category list
...
llvm-svn: 202976
2014-03-05 13:43:23 +00:00
Dmitry Vyukov
9b410fb627
tsan: implement new version of standalong deadlock detector
...
intercept pthread_cond (it is required to properly track state of mutexes)
detect cycles in mutex graph
llvm-svn: 202975
2014-03-05 13:41:21 +00:00
Dmitry Vyukov
cd3583a4c7
tsan: include what you use
...
VPrintf uses common_flags()
llvm-svn: 202974
2014-03-05 13:40:05 +00:00