Eli Bendersky
309e77fbe2
Remove outdated & incorrect part of comment.
...
This comment was copied over from another class in r34170, where it made sense.
llvm-svn: 200697
2014-02-03 14:33:51 +00:00
Evgeniy Stepanov
756e1c1e4b
[asan] Reinitialize allocator quarantine on activation.
...
This is covered by AddressSanitizer.UAF_* tests in asan_test
with start_deactivated=1.
llvm-svn: 200696
2014-02-03 14:19:08 +00:00
Evgeniy Stepanov
c7b7e2569c
Don't use -ffunction-sections if -fno-function-sections is not supported in the compiler.
...
This will disable -ffunction-sections in older versions of Clang where it
breaks build of sanitizer runtime library.
llvm-svn: 200695
2014-02-03 13:57:09 +00:00
Chandler Carruth
784de75ca8
Introduce SmallPtrSetImpl<T *> which allows insert, erase, count, and
...
iteration. This alows the majority of operations to be performed without
encoding a specific small size. It follows the model of
SmallVectorImpl<T>.
llvm-svn: 200688
2014-02-03 11:24:21 +00:00
Chandler Carruth
173bd7ed2e
Rename the non-templated base class of SmallPtrSet to
...
'SmallPtrSetImplBase'. This more closely matches the organization of
SmallVector and should allow introducing a SmallPtrSetImpl which serves
the same purpose as SmallVectorImpl: isolating the element type from the
particular small size chosen. This in turn allows a lot of
simplification of APIs by not coding them against a specific small size
which is rarely needed.
llvm-svn: 200687
2014-02-03 11:24:18 +00:00
Evgeniy Stepanov
bd2b3177da
[sanitizer] Resubmit r200683: disable -ffunction-sections.
...
llvm-svn: 200686
2014-02-03 11:16:41 +00:00
Evgeniy Stepanov
9e7cb33b17
Fix handling of -fno-function-sections, -fno-data-sections in clang driver.
...
llvm-svn: 200685
2014-02-03 11:11:37 +00:00
Evgeniy Stepanov
fe437f0a8f
Revert r200683.
...
-fno-function-sections is broken in Clang.
llvm-svn: 200684
2014-02-03 10:52:53 +00:00
Evgeniy Stepanov
aa0d7dee77
[sanitizer] Disable -ffunction-sections.
...
It breaks when a binary is linked with --gc-sections: parts of sanitizer
interface get thrown away and inaccessible from dlopen-ed libs.
llvm-svn: 200683
2014-02-03 10:15:08 +00:00
Evgeniy Stepanov
04e841c047
[msan] Fix a typo.
...
Spotted by Keno Fischer.
llvm-svn: 200682
2014-02-03 07:27:01 +00:00
Richard Smith
2eaf206455
Fix typo 'uusal'.
...
llvm-svn: 200681
2014-02-03 07:04:10 +00:00
Richard Smith
5e34db94bb
Fix typo in CSS class name.
...
llvm-svn: 200680
2014-02-03 07:02:19 +00:00
Richard Smith
7fe896251d
Clang 3.4 was released, make the boxes green.
...
llvm-svn: 200679
2014-02-03 06:58:08 +00:00
Richard Smith
c94410bc8d
Tests for DR331-350.
...
llvm-svn: 200678
2014-02-03 06:34:23 +00:00
Craig Topper
e7a9ee5c4a
Remove unnecessary include of AArch64GenInstrInfo.inc from AArch64Disassembler.cpp. None of the GET_ defines were set that would make the include do anything.
...
llvm-svn: 200677
2014-02-03 06:33:17 +00:00
Shankar Easwaran
6e0e1bc859
[ELF] change LayoutBefore Reference to InGroup Reference
...
This makes it a lot easier for Section Group design.
llvm-svn: 200675
2014-02-03 04:01:14 +00:00
Richard Smith
209bbb7774
Update C++ DR page now 3.4 has been released.
...
llvm-svn: 200674
2014-02-03 02:40:25 +00:00
Richard Smith
91dfaacd38
Implement DR329. We already did the right thing here in C++98 mode, but r104014
...
(which implemented the DR) was disabled in C++11.
llvm-svn: 200673
2014-02-03 02:37:59 +00:00
Richard Smith
9f38709193
Tests for DR321-330.
...
llvm-svn: 200672
2014-02-03 02:13:49 +00:00
Richard Smith
6938adbd16
Tests for DR301-320.
...
llvm-svn: 200671
2014-02-03 01:23:27 +00:00
David Majnemer
04606bda08
MS ABI: Fix some layout tests
...
Some lines intended to be used for testing x86_64 ABI compatibility were
not firing because lines were annotated with the wrong FileCheck prefix:
X64 vs x64
N.B. Changes beyond just changing x64 to X64 were made, presumably
because other parts of the layout engine have changed. I've verified
the changes to make sure that MSVC creates a compatible layout.
llvm-svn: 200670
2014-02-03 00:29:57 +00:00
Joerg Sonnenberger
e7f9759fd9
Handle O32/N64 ABIs for NetBSD/MIPS64. From Matt Thomas.
...
llvm-svn: 200668
2014-02-02 22:59:16 +00:00
Joerg Sonnenberger
d68c650489
Replace hasMipsN32ABIArg with hasMipsABIArg in preparation of o32/n64
...
support.
llvm-svn: 200667
2014-02-02 22:54:18 +00:00
Joerg Sonnenberger
6cd7deb9fe
Use a switch for the emulation handling.
...
llvm-svn: 200666
2014-02-02 22:50:34 +00:00
Joerg Sonnenberger
25de31d472
Handle compat support for EABI/old APCS compatibility on NetBSD/ARM.
...
llvm-svn: 200665
2014-02-02 22:47:37 +00:00
Duncan P. N. Exon Smith
1ff08e389f
Lower llvm.expect intrinsic correctly for i1
...
LowerExpectIntrinsic previously only understood the idiom of an expect
intrinsic followed by a comparison with zero. For llvm.expect.i1, the
comparison would be stripped by the early-cse pass.
Patch by Daniel Micay.
llvm-svn: 200664
2014-02-02 22:43:55 +00:00
Joerg Sonnenberger
d11c478ac3
Replace hasMipsN32ABIArg by hasMipsABIArg to make it easier to add
...
support for o32 and n64.
llvm-svn: 200662
2014-02-02 22:40:33 +00:00
Joerg Sonnenberger
dc7a23c660
Pass down -mcpu for external assembler in thumb mode, too. From Matt Thomas.
...
llvm-svn: 200661
2014-02-02 22:37:14 +00:00
Joerg Sonnenberger
1e205ef7cf
Minor formatting improvement.
...
llvm-svn: 200659
2014-02-02 22:36:13 +00:00
Joerg Sonnenberger
ec39cc6165
Test pre-defined macros of aarch64-netbsd.
...
llvm-svn: 200656
2014-02-02 21:55:32 +00:00
Joerg Sonnenberger
9864bd5858
NetBSD uses signed wchar_t on AArch64. It also wants __LITTLE_ENDIAN__ /
...
__BIG_ENDIAN__ as on other architectures.
llvm-svn: 200655
2014-02-02 21:55:10 +00:00
Joerg Sonnenberger
4455ffc4d0
Unaligned access is supported on ARMv6 and ARMv7 for the NetBSD target.
...
Patch from Matt Thomas.
llvm-svn: 200654
2014-02-02 21:18:36 +00:00
Nico Weber
514ecc8ce8
clang-format: Let chromium style inherit google style's javascript tweaks.
...
llvm-svn: 200652
2014-02-02 20:50:45 +00:00
Joey Gouly
cf466800b7
[MachO] Add undefined atoms.
...
llvm-svn: 200649
2014-02-02 19:34:55 +00:00
Ed Maste
cc8068f2ac
Remove failure decorators for FreeBSD bug
...
The issue described in llvm.org/pr18065 is actually due to FreeBSD bug
theads/186309 [1], which is now fixed in FreeBSD SVN r261354 [2] and will
be merged to release branches shortly.
Diagnosed and fixed by John Wolfe.
[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=186309
[2] http://svnweb.freebsd.org/base?view=revision&revision=261354
llvm-svn: 200648
2014-02-02 19:29:50 +00:00
Ed Maste
10c82017b6
Update header comment to match filename
...
llvm-svn: 200647
2014-02-02 19:25:11 +00:00
Ed Maste
dbd5950b63
Use libc++ on FreeBSD as on Darwin
...
This could use some refinement still, but the previous behaviour of adding
-stdlib=libstc++ on FreeBSD w/ Clang is the least likely case to work.
llvm.org/pr17910
llvm-svn: 200646
2014-02-02 19:24:15 +00:00
NAKAMURA Takumi
85d65ff49b
[CMake] Move cmake_minimum_required(2.8.8) at the top.
...
Suggested by Stephen Kelly.
llvm-svn: 200645
2014-02-02 16:59:36 +00:00
NAKAMURA Takumi
7829337172
[CMake] Untabify.
...
llvm-svn: 200644
2014-02-02 16:46:35 +00:00
NAKAMURA Takumi
6b13975d40
clang/CMakeLists.txt: Untabify.
...
llvm-svn: 200643
2014-02-02 16:46:07 +00:00
NAKAMURA Takumi
549d510c0b
clang/lib/ASTMatchers/Dynamic/CMakeLists.txt: redundant
...
llvm-svn: 200642
2014-02-02 16:46:03 +00:00
Benjamin Kramer
35e6fee3e9
Sema: Reject templates in all extern "C" contexts.
...
Otherwise we'd accept them if the LinkageDecl was not the direct
parent DeclContext. PR17968.
llvm-svn: 200641
2014-02-02 16:35:43 +00:00
Benjamin Kramer
3a7cc81d52
Report a correct end location for nameless parameters.
...
Ranges before:
void test(void (*)(int), int, float);
~~~~~~~~~~~~~ ~~~~ ~~~~~~
Ranges after:
void test(void (*)(int), int, float);
~~~~~~~~~~~~~ ~~~ ~~~~~
This does not change the actual location of the ParmVarDecl, it still
points to the location where the name would be. PR17970.
llvm-svn: 200640
2014-02-02 15:28:46 +00:00
Jean-Daniel Dupas
59999a32b3
Remove commented includes
...
llvm-svn: 200637
2014-02-02 14:06:07 +00:00
Simon Atanasyan
e6f6f06c91
[ELF] Customize dynamic table tag used for .got.plt section referencing.
...
The patch reviewed by Shankar Easwaran and Rui Ueyama.
llvm-svn: 200630
2014-02-02 12:19:29 +00:00
Simon Atanasyan
8379ad056d
[Mips] Cleanup assembler code in the test.
...
llvm-svn: 200629
2014-02-02 12:19:20 +00:00
NAKAMURA Takumi
d8dd194f03
TableGen/X86RecognizableInstr.h: Prune out-of-date "@param isSSE". [-Wdocumentation]
...
llvm-svn: 200628
2014-02-02 10:53:36 +00:00
Evgeniy Stepanov
78901bd09e
Revert r200555, r200545.
...
These changes make it impossible to use ARM EHABI for stack unwinding without
enabling exceptions and break AddressSanitizer on ARM.
llvm-svn: 200627
2014-02-02 10:39:45 +00:00
Craig Topper
fa6298a162
Merge x86 HasOpSizePrefix/HasOpSize16Prefix into a 2-bit OpSize field with 0 meaning no 0x66 prefix in any mode. Rename Opsize16->OpSize32 and OpSize->OpSize16. The classes now refer to their operand size rather than the mode in which they need a 0x66 prefix. Hopefully can merge REX_W into this as OpSize64.
...
llvm-svn: 200626
2014-02-02 09:25:09 +00:00
Craig Topper
8e92e85ac7
Simplify some code since VEX and EVEX instructions never have HasOpSizePrefix.
...
llvm-svn: 200625
2014-02-02 07:46:05 +00:00