Evgeniy Stepanov
cf02f171a9
[sanitizer] Fix PR17138.
...
strerror_r on OSX returns a positive error code when the errno value is
unknown. Buffer contents are initialized in any case.
llvm-svn: 190295
2013-09-09 08:58:54 +00:00
Stepan Dyatkovskiy
a4a59d7468
Additional fix for PR16752 and for commit 190044:
...
-- For TargetInfo::getRealTypeByWidth also added support for IEEEQuad float type.
llvm-svn: 190294
2013-09-09 07:46:54 +00:00
Richard Smith
4abe0a8d82
C++ modules: fix a bug where loading a declaration with some name would prevent
...
name lookup from lazily deserializing the other declarations with the same
name, by tracking a bit to indicate whether a name in a DeclContext might have
additional external results. This also allows lazier reconciling of the lookup
table if a module import adds decls to a pre-existing DC.
However, this exposes a pre-existing bug, which causes a regression in
test/Modules/decldef.mm: if we have a reference to a declaration, and a
later-imported module adds a redeclaration, nothing causes us to load that
redeclaration when we use or emit the reference (which can manifest as a
reference to an undefined inline function, a use of an incomplete type, and so
on). decldef.mm has been extended with an additional testcase which fails with
or without this change.
llvm-svn: 190293
2013-09-09 07:34:56 +00:00
Evgeniy Stepanov
80cc27857b
[sanitizer] Delete extra whitespace.
...
llvm-svn: 190292
2013-09-09 06:18:07 +00:00
Bill Wendling
5257538df9
Update to the new API interface which requires the MCRegisterInfo object. <rdar://problem/13623355>
...
llvm-svn: 190291
2013-09-09 02:37:56 +00:00
Bill Wendling
58e2d3d856
Generate compact unwind encoding from CFI directives.
...
We used to generate the compact unwind encoding from the machine
instructions. However, this had the problem that if the user used `-save-temps'
or compiled their hand-written `.s' file (with CFI directives), we wouldn't
generate the compact unwind encoding.
Move the algorithm that generates the compact unwind encoding into the
MCAsmBackend. This way we can generate the encoding whether the code is from a
`.ll' or `.s' file.
<rdar://problem/13623355>
llvm-svn: 190290
2013-09-09 02:37:14 +00:00
Jiangning Liu
1bda93a252
Implement aarch64 neon instruction set AdvSIMD (3V Diff), covering the following 26 instructions,
...
SADDL, UADDL, SADDW, UADDW, SSUBL, USUBL, SSUBW, USUBW, ADDHN, RADDHN, SABAL, UABAL, SUBHN, RSUBHN, SABDL, UABDL, SMLAL, UMLAL, SMLSL, UMLSL, SQDMLAL, SQDMLSL, SMULL, UMULL, SQDMULL, PMULL
llvm-svn: 190289
2013-09-09 02:21:08 +00:00
Jiangning Liu
2878dc8fe7
Implement aarch64 neon instruction set AdvSIMD (3V Diff), covering the following 26 instructions,
...
SADDL, UADDL, SADDW, UADDW, SSUBL, USUBL, SSUBW, USUBW, ADDHN, RADDHN, SABAL, UABAL, SUBHN, RSUBHN, SABDL, UABDL, SMLAL, UMLAL, SMLSL, UMLSL, SQDMLAL, SQDMLSL, SMULL, UMULL, SQDMULL, PMULL
llvm-svn: 190288
2013-09-09 02:20:27 +00:00
Ed Maste
101dc713e7
Enable register log for FreeBSD tests
...
llvm-svn: 190287
2013-09-09 01:19:22 +00:00
Ed Maste
a0e4e75b53
Set shared library path on FreeBSD as on Linux for tests
...
llvm-svn: 190286
2013-09-09 01:16:43 +00:00
Ed Maste
e3641c5d1f
Set shared library path on FreeBSD as on Linux for tests
...
llvm-svn: 190285
2013-09-09 00:40:46 +00:00
Manman Ren
7e9448f728
Debug Info Testing: use null instead of an empty string in context field.
...
llvm-svn: 190284
2013-09-09 00:12:17 +00:00
Marshall Clow
cdd01917ff
Remove a tab that snuck in
...
llvm-svn: 190283
2013-09-08 21:13:57 +00:00
Renato Golin
d24899bfc2
Cross-compilation doc
...
llvm-svn: 190282
2013-09-08 20:44:48 +00:00
Renato Golin
f70e35ddc4
Adding cross-compilation instructions to Clang
...
llvm-svn: 190281
2013-09-08 20:44:39 +00:00
Howard Hinnant
224ccb38d3
Fix minor type-o in tests.
...
llvm-svn: 190280
2013-09-08 19:28:51 +00:00
Marshall Clow
fb8297668f
LWG Issue 2210 (Part #2 & #3 ): list and forward_list
...
llvm-svn: 190279
2013-09-08 19:11:51 +00:00
Daniel Jasper
9b246e09ce
clang-format: Keep empty lines and format 1-line nested blocks.
...
Let clang-format consistently keep up to one empty line (configured via
FormatStyle::MaxEmptyLinesToKeep) in nested blocks, e.g. lambdas. Also,
actually format single statements in nested blocks.
Before:
DEBUG({ int i; });
DEBUG({
int i;
// an empty line here would just be removed.
int j;
});
After:
DEBUG({ int i; });
DEBUG({
int i;
int j;
});
llvm-svn: 190278
2013-09-08 14:07:57 +00:00
Alexey Samsonov
77029be19a
[ASan] fix one more memory leak in test case
...
llvm-svn: 190277
2013-09-08 14:01:07 +00:00
Alexey Samsonov
a302a1affc
[Sanitizer] Use generic configs for running sanitizer_common unit tests
...
llvm-svn: 190276
2013-09-08 13:52:07 +00:00
Joerg Sonnenberger
bd25241e0e
Drop the context forceLoadAllArchives() support. Rename the isForceLoad
...
attribute in LinkerInput to isWholeArchive and use that for deciding
whether library archives should be expanded. Implement the -all_load
option of the Darwin linker using this flag and drop the support for it
in GNU mode.
llvm-svn: 190275
2013-09-08 13:30:14 +00:00
Alexey Samsonov
071cc9e89d
[ASan] turn on leak checking for ASan tests and fix a few discovered leaks
...
llvm-svn: 190274
2013-09-08 13:23:29 +00:00
Sylvestre Ledru
65ebb58524
Bring back the build of libprofile_rt on Sparc. It is now working correctly. See:
...
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.3&arch=sparc&ver=1%3A3.3-9&stamp=1378398308
Thanks to Luca Falavigna for the patch
llvm-svn: 190273
2013-09-08 09:15:09 +00:00
Manman Ren
b09878728f
Revert r190269 to fix dragonegg failures.
...
llvm-svn: 190271
2013-09-08 06:02:56 +00:00
Manman Ren
8ddddadb0b
Debug Info: use null instead of "i32 0" in DIBuilder.
...
For context field of subroutine_type and when creating artificial types.
llvm-svn: 190270
2013-09-08 06:00:42 +00:00
Manman Ren
93da987ea4
Debug Info: pass in DIScope instead of DIDescriptor in createMemberType.
...
Improve readability. No functionality change.
llvm-svn: 190269
2013-09-08 04:07:59 +00:00
Manman Ren
2c826dcc20
Debug Info: pass in DIScope instead of DIDescriptor in createFieldType.
...
Improve readability. No functionality change.
llvm-svn: 190268
2013-09-08 03:45:05 +00:00
Manman Ren
f2a88f3622
Debug Info Testing: update context from empty string to null.
...
Context should be either null or MDNode.
llvm-svn: 190267
2013-09-08 03:11:54 +00:00
Craig Topper
adbb9a121f
Add neverHasSideEffects=1 on a couple move instructions.
...
llvm-svn: 190259
2013-09-08 00:50:45 +00:00
Craig Topper
0a63e1da92
Using popcount should check the popcount feature flag not the SSE41 feature flag.
...
llvm-svn: 190258
2013-09-08 00:47:31 +00:00
David Majnemer
37c921e354
Correct typo.
...
llvm-svn: 190257
2013-09-07 20:21:47 +00:00
Adrian Prantl
ee30f63cc1
Auto-detect the architecture of the executable instead of using the arch of
...
the kernel.
llvm-svn: 190256
2013-09-07 20:04:29 +00:00
Joerg Sonnenberger
a82566b86e
Update documentation.
...
llvm-svn: 190255
2013-09-07 18:01:39 +00:00
Joerg Sonnenberger
0310e734c3
Run clang-format.
...
llvm-svn: 190254
2013-09-07 17:56:23 +00:00
Joerg Sonnenberger
5e235de9d3
Change the parseFile argument from MemoryBuffer pointer to LinkerInput
...
reference. Move readFile logic into FileNode::createLinkerInput.
llvm-svn: 190253
2013-09-07 17:55:28 +00:00
Adrian Prantl
002c2a8ece
Set the architecture when creating a target.
...
llvm-svn: 190252
2013-09-07 17:14:37 +00:00
Marshall Clow
630c5e535c
LWG Issue 2210 (Part #1 ): deque
...
llvm-svn: 190251
2013-09-07 16:16:19 +00:00
Bill Wendling
d14f153a7e
Run clang-format on these header files. Part of a WIP.
...
llvm-svn: 190250
2013-09-07 11:55:36 +00:00
Enea Zaffanella
82a65fc828
Fixed bug in call to CXXTemporaryObjectExpr ctor.
...
llvm-svn: 190249
2013-09-07 11:22:02 +00:00
Sylvestre Ledru
525e4444c4
add OCLint to the list of projects based on clang
...
llvm-svn: 190248
2013-09-07 07:59:01 +00:00
Sylvestre Ledru
26a4fff380
add he 'include what you use' project
...
llvm-svn: 190247
2013-09-07 07:56:03 +00:00
Sylvestre Ledru
215707b660
remove the description about clang & llvm in the freebsd section (the reader probably know what are llvm and clang
...
llvm-svn: 190246
2013-09-07 07:52:20 +00:00
Sylvestre Ledru
e1f8a17a9c
about the debian effort to rebuild the archive with clang
...
llvm-svn: 190245
2013-09-07 07:51:23 +00:00
Sylvestre Ledru
901be185d8
Clang event are now part of the llvm events. Add a link to the LLVM events
...
llvm-svn: 190244
2013-09-07 07:39:49 +00:00
Sylvestre Ledru
a07226fff8
Update the link to the current code coverage reports (the previous one has not been updated since february 2010) + remove the spec references, not updated since May 2010
...
llvm-svn: 190243
2013-09-07 07:37:18 +00:00
David Majnemer
5d22e7e4c3
'return' before 'else' is bad style
...
llvm-svn: 190241
2013-09-07 07:11:04 +00:00
David Majnemer
59c0ec2396
AST: __uuidof should leak through templated types
...
Summary:
__uuidof on templated types should exmaine if any of its template
parameters have a uuid declspec. If exactly one does, then take it.
Otherwise, issue an appropriate error.
Reviewers: rsmith, thakis, rnk
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1419
llvm-svn: 190240
2013-09-07 06:59:46 +00:00
Enea Zaffanella
76e98feb57
Fix missing source location in CXXTemporaryObjectExpr nodes.
...
For clarity, renamed (get/set)ParenRange as (get/set)ParenOrBraceRange
in CXXConstructExpr nodes.
Added testcase.
llvm-svn: 190239
2013-09-07 05:49:53 +00:00
Virgile Bello
d87fc157d2
Added some MSVC required functions in Windows.cpp. Moved MSVC specific getopt code inside its own folder.
...
llvm-svn: 190238
2013-09-07 05:05:49 +00:00
Tobias Grosser
3613fd7a35
ScopInfo: Correctly handle true/false conditions
...
This is a modified version of the orignally contributed patch.
Contributed-by: alexandre.isoard@gmail.com
llvm-svn: 190237
2013-09-07 01:54:13 +00:00