summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sema: Restrict alignment to 2**28.David Majnemer2014-02-123-10/+9
| | | | | | | | Allowing alignment past this point causes wrap around within clang. N.B. GCC has the same restriction. llvm-svn: 201254
* Debug info: Bugfix for r201190: DW_OP_piece takes bytes, not bits.Adrian Prantl2014-02-124-5/+7
| | | | | | rdar://problem/16015314 llvm-svn: 201253
* [sanitizer] Intercept capget()/capset().Sergey Matveev2014-02-123-10/+39
| | | | | | Also, fix incorrect syscall hooks for the corresponding syscalls. llvm-svn: 201252
* Attributes: Avoid a big useless copy in the emitterReid Kleckner2014-02-121-1/+2
| | | | llvm-svn: 201251
* relax testcase and make ppc64 buildbots happy.Adrian Prantl2014-02-121-4/+4
| | | | llvm-svn: 201250
* libclang: report error code for bad PCH filesDmitri Gribenko2014-02-129-157/+410
| | | | | | | | | | | | | | | | | | | This commit improves libclang to report the error condition when CXTranslationUnit can not be created because of a stale PCH file. This allows the caller, for example, to rebuild the PCH file and retry the request. There two are APIs in libclang that return a CXTranslationUnit and don't support reporting detailed errors (the only error condition is a NULL result). For these APIs, a second, superior, version is introduced -- clang_createTranslationUnit2 and clang_parseTranslationUnit2. These functions return a CXTranslationUnit indirectly and also return an error code. Old functions are still supported and are nothing more than convenience wrappers that ignore extended error codes. As a cleanup, this commit also categorizes some libclang errors in the functions I had to modify anyway. llvm-svn: 201249
* Document and improve the debug-property-synth.m test based on theAdrian Prantl2014-02-121-6/+22
| | | | | | information provided in the referenced radar. llvm-svn: 201248
* Revert "Remove bad debug info test."Adrian Prantl2014-02-121-0/+20
| | | | | | | | This reverts commit r201183. The test, albeit undocumented and badly written is still testing something useful. It will be updated in a subsequent commit. llvm-svn: 201247
* Attributes: Emit enumerators in td file declaration orderReid Kleckner2014-02-121-9/+18
| | | | llvm-svn: 201246
* Pass edges weights to MachineBasicBlock::addSuccessor in TailDuplicatePass toAkira Hatanaka2014-02-122-2/+66
| | | | | | | | preserve branch probability information. <rdar://problem/15893208> llvm-svn: 201245
* Change TestAbbreviations test to expected failure on Linux.Todd Fiala2014-02-121-0/+1
| | | | | | | See http://llvm.org/bugs/show_bug.cgi?id=18816. Likely the same issue as http://llvm.org/bugs/show_bug.cgi?id=18805. llvm-svn: 201244
* PC-rel implemented in AArch64, test now passRenato Golin2014-02-121-1/+1
| | | | llvm-svn: 201243
* Move more self-contained functionality away from tools/opt/opt.cppEli Bendersky2014-02-124-61/+110
| | | | | | BreakpointPrinter moves to its own module. llvm-svn: 201242
* Revert r201237+r201238: Demote EmitRawText call in ↵Daniel Sanders2014-02-1284-181/+90
| | | | | | | | AsmPrinter::EmitInlineAsm() and remove hasRawTextSupport() call It introduced multiple test failures in the buildbots. llvm-svn: 201241
* [asan] Handle OpenFile errors in CovDump.Evgeniy Stepanov2014-02-121-3/+7
| | | | llvm-svn: 201240
* Revert "Enforce python2 for systems that use python3 as their default."Tom Stellard2014-02-121-1/+1
| | | | | | | | | This reverts commit r200413. This was breaking the build on systems where the python 2.x executable was called python. llvm-svn: 201239
* Arcanist failed to commit the two clang test corrections that should have ↵Daniel Sanders2014-02-122-5/+6
| | | | | | been in r201237. llvm-svn: 201238
* Demote EmitRawText call in AsmPrinter::EmitInlineAsm() and remove ↵Daniel Sanders2014-02-1282-85/+175
| | | | | | | | | | | | | | | | | | | | | hasRawTextSupport() call Summary: AsmPrinter::EmitInlineAsm() will no longer use the EmitRawText() call for targets with mature MC support. Such targets will always parse the inline assembly (even when emitting assembly). Targets without mature MC support continue to use EmitRawText() for assembly output. The hasRawTextSupport() check in AsmPrinter::EmitInlineAsm() has been replaced with MCAsmInfo::UseIntegratedAs which when true, causes the integrated assembler to parse inline assembly (even when emitting assembly output). UseIntegratedAs is set to true for targets that consider any failure to parse valid assembly to be a bug. Target specific subclasses generally enable the integrated assembler in their constructor. The default value can be overridden with -no-integrated-as. All tests that rely on inline assembly supporting invalid assembly (for example, those that use mnemonics such as 'foo' or 'hello world') have been updated to disable the integrated assembler. Reviewers: rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2686 llvm-svn: 201237
* libclang: fix a crash in clang_disposeDiagnosticSet when it is passed a NULL ↵Dmitri Gribenko2014-02-121-3/+4
| | | | | | argument llvm-svn: 201236
* [sanitizer] Fix wait4 interceptor on Android.Evgeniy Stepanov2014-02-123-10/+49
| | | | | | It's called __wait4 there. llvm-svn: 201235
* Whitespace cleanup (mostly stray tabs, a few not-quite-empty lines).Tim Northover2014-02-121-15/+15
| | | | llvm-svn: 201234
* ARM & NEON: add test for r101232Tim Northover2014-02-121-0/+217
| | | | | | rdar://problem/16035743 llvm-svn: 201233
* ARM NEON: fix range checking on immediates.Tim Northover2014-02-123-4/+20
| | | | | | | | | | Previously, range checking on the __builtin_neon_XYZ_v Clang intrinsics didn't take account of the type actually passed to the call, which meant a request like "vext_s16(a, b, 7)" was allowed through (TableGen was conservative and allowed 0-7 for all types). This caused an assert in the backend because the lane doesn't make sense. llvm-svn: 201232
* Don't use find | xargs in ↵Dmitri Gribenko2014-02-121-3/+3
| | | | | | | | test/Modules/fmodules-validate-once-per-build-session.c With -fdisable-module-hash, we can implement this with a simple 'cp'. llvm-svn: 201231
* Windows/Path.inc: Move <shlobj.h> after "Windows.h" for some API available.NAKAMURA Takumi2014-02-121-2/+3
| | | | | | | | | | | | | | | I found that swapping the order of some header files helped fix a build issue that we're seeing on mingw32. Without the swap, windows.h was being included before _WIN32_WINNT was being defined and the CreateHardLinkW function was #ifdef'd out. It looks like the header is mainly used to get the SHGetFolderPathW function, so I don't think that there'll be much fallout from the switch. Suggested by Alex Crichton. Thanks! llvm-svn: 201230
* Teach tablegen() macro to check needed variablesNAKAMURA Takumi2014-02-121-0/+11
| | | | | | | | | | | This macro depends on several variables to be set in the calling context. Check them and report an error if they are not set. Without this, custom commands may be silently specified that will fail at build time. Patch by Brad King. llvm-svn: 201229
* clang/test/Modules/fmodules-validate-once-per-build-session.c: Tweak for ↵NAKAMURA Takumi2014-02-121-3/+3
| | | | | | | | gnuwin32 with %/t (instead of %t). xargs didn't handle dosish paths, while find foo\bar\ emits dosish paths. llvm-svn: 201228
* clang/lib/Driver/Multilib.cpp: Rewrite normalizePathSegment() to be tolerant ↵NAKAMURA Takumi2014-02-121-5/+20
| | | | | | | dosish pathsep. FIXME: It could be more simple... llvm-svn: 201227
* [sanitizer] added class BVGraph, to be used in a deadlock detector; added ↵Kostya Serebryany2014-02-126-19/+277
| | | | | | more methods to the bit vectors llvm-svn: 201226
* 'svn add' files I forgot for r201224 (Add an option to allow Clang verifyDmitri Gribenko2014-02-123-0/+111
| | | | | | source files for a module only once during) llvm-svn: 201225
* Add an option to allow Clang verify source files for a module only once duringDmitri Gribenko2014-02-1215-25/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the build When Clang loads the module, it verifies the user source files that the module was built from. If any file was changed, the module is rebuilt. There are two problems with this: 1. correctness: we don't verify system files (there are too many of them, and stat'ing all of them would take a lot of time); 2. performance: the same module file is verified again and again during a single build. This change allows the build system to optimize source file verification. The idea is based on the fact that while the project is being built, the source files don't change. This allows us to verify the module only once during a single build session. The build system passes a flag, -fbuild-session-timestamp=, to inform Clang of the time when the build started. The build system also requests to enable this feature by passing -fmodules-validate-once-per-build-session. If these flags are not passed, the behavior is not changed. When Clang verifies the module the first time, it writes out a timestamp file. Then, when Clang loads the module the second time, it finds a timestamp file, so it can compare the verification timestamp of the module with the time when the build started. If the verification timestamp is too old, the module is verified again, and the timestamp file is updated. llvm-svn: 201224
* [ARM] Fix NEON wrongly being enabled with soft-float when targeting ↵Amara Emerson2014-02-122-2/+10
| | | | | | | | armv8/Cortex-A53/A57. This was caused by r200708 which enabled the crypto feature for these cores. llvm-svn: 201223
* R600: Always implement both versions of isTruncateFree and add a sanity check.Benjamin Kramer2014-02-122-5/+12
| | | | llvm-svn: 201222
* Consume checker names from clang static analyzer.Alexander Kornienko2014-02-122-3/+13
| | | | | | | | | | | | | | Summary: This patch depends on patches D2556 and D2557. Reviewers: klimek Reviewed By: klimek CC: cfe-commits, jordan_rose, krememek Differential Revision: http://llvm-reviews.chandlerc.com/D2620 llvm-svn: 201221
* Fix memory leak introduced by r201010.Daniel Jasper2014-02-121-0/+1
| | | | llvm-svn: 201220
* [TSan] Kill tsan_symbolize_addr2line_linux.ccAlexey Samsonov2014-02-124-204/+1
| | | | llvm-svn: 201219
* [Sanitizer] Teach external symbolizer to work with addr2line if ↵Alexey Samsonov2014-02-125-16/+120
| | | | | | llvm-symbolizer is unavailable. Allow this mode in TSan. llvm-svn: 201218
* [UBSan] Parse common runtime flags before using a symbolizerAlexey Samsonov2014-02-121-0/+19
| | | | llvm-svn: 201217
* Remove special case filtering for instructions with lock prefix as they are ↵Craig Topper2014-02-122-8/+0
| | | | | | all marked with isCodeGenOnly already. llvm-svn: 201216
* Mark XACQUIRE_PREFIX/XRELEASE_PREFIX as isAsmParserOnly so they'll disappear ↵Craig Topper2014-02-122-7/+2
| | | | | | from the disassembler table build without custom filtering code. llvm-svn: 201215
* Fix elf core file VMA-contiguous region collapsing.Todd Fiala2014-02-121-3/+8
| | | | | | | | | | | | | | | Elf core files were collapsing core segments when the virtual memory addresses were contiguous without checking if the core-file-backed memory region was the same size as the segment's VMA region. Without this extra check, any time regions were collapsed but the core-backed region was smaller (and thus had a zero-filled hole at the end), the collapse operation would break VMA to core file lookups for subsequent collapsed regions. This change fixes the following bug: http://llvm.org/bugs/show_bug.cgi?id=18769 llvm-svn: 201214
* [Sanitizer] Build sanitizer_common with -Wframe-larger-than=512 flagAlexey Samsonov2014-02-123-3/+9
| | | | llvm-svn: 201213
* [Sanitizer] Reduce stack frame size of SlowUnwindStackWithContextAlexey Samsonov2014-02-121-4/+4
| | | | llvm-svn: 201212
* [PR18809] Mark DebugInfo/empty.ll as XFAIL:cygming.NAKAMURA Takumi2014-02-121-0/+3
| | | | llvm-svn: 201211
* [sanitizer] added a bit vector class to be used in a deadlock detectorKostya Serebryany2014-02-124-0/+236
| | | | llvm-svn: 201210
* Fix r201205's use-after-free bug caught by sanitizer botJonathan Roelofs2014-02-121-8/+6
| | | | llvm-svn: 201209
* [libcxxabi] Fix broken codesourcery.com links in commentsJonathan Roelofs2014-02-127-7/+7
| | | | | review: http://llvm-reviews.chandlerc.com/D2718 llvm-svn: 201208
* Test case I forgot to 'add' for r201126.Craig Topper2014-02-121-0/+53
| | | | llvm-svn: 201207
* Avoid leaking namebuf in case of an early exitEnrico Granata2014-02-121-7/+5
| | | | llvm-svn: 201206
* Add Multilib selection machineryJonathan Roelofs2014-02-1214-247/+1348
| | | | | | | | | | | | This patch improves the support for picking Multilibs from gcc installations. It also provides a better approximation for the flags '-print-multi-directory' and '-print-multi-lib'. This reverts r201203 (i.e. re-applying r201202 with small fixes in unittests/CMakeLists.txtto make the build bots happy). review: http://llvm-reviews.chandlerc.com/D2538 llvm-svn: 201205
OpenPOWER on IntegriCloud