summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] use the slow CFI-based unwinder when reporting an error. Still use ↵Kostya Serebryany2013-01-141-1/+1
| | | | | | the fast unwinder for malloc/free. Linux-x86-only for now. llvm-svn: 172397
* Adds some more tests for * and &.Manuel Klimek2013-01-141-0/+6
| | | | | | | While reviewing r172303 I noticed that I wasn't sure whether we still format those correctly and didn't see any tests. llvm-svn: 172396
* asan/tsan: mmap shadow memory before allocating memory (otherwise other ↵Dmitry Vyukov2013-01-141-16/+18
| | | | | | threads can access non yet allocated shadow) llvm-svn: 172395
* ASan: Disable alloc/dealloc-mismatch checker on Mac for now (it produces ↵Alexey Samsonov2013-01-142-4/+8
| | | | | | weird false positives on googletest) llvm-svn: 172394
* tsan: describe stack and TLS addressesDmitry Vyukov2013-01-1411-14/+139
| | | | llvm-svn: 172393
* asan: enable allocator version 1 by defaultDmitry Vyukov2013-01-141-2/+2
| | | | llvm-svn: 172392
* Add extra tests for [[gnu::...]] attributes, missed from r172382.Richard Smith2013-01-141-0/+45
| | | | llvm-svn: 172391
* asan/tsan: fix memory allocator statisticsDmitry Vyukov2013-01-142-3/+3
| | | | llvm-svn: 172390
* asan: fix Android buildDmitry Vyukov2013-01-141-2/+2
| | | | llvm-svn: 172389
* asan/tsan: faster memory allocatorDmitry Vyukov2013-01-143-26/+105
| | | | | | | | 1. Increase size classes from 32k to 128k 2. Use lock-free stack in central cache 3. Use blocking mutex when allocate new memory with mmap llvm-svn: 172388
* tsan: fix cmake warning (unused private field)Dmitry Vyukov2013-01-141-0/+1
| | | | llvm-svn: 172387
* tsan: add the FIXMEDmitry Vyukov2013-01-142-0/+4
| | | | llvm-svn: 172386
* asan: fix compilation errors in mutexDmitry Vyukov2013-01-143-4/+3
| | | | llvm-svn: 172385
* Fix regression in r172376. Don't try to detect missing 'constexpr' specifiersRichard Smith2013-01-142-2/+5
| | | | | | | on redeclarations, since that makes us pick wrong prior declarations under some circumstances. llvm-svn: 172384
* [asan] add more frames to standalone_malloc_testKostya Serebryany2013-01-141-1/+25
| | | | llvm-svn: 172383
* Accept [[gnu::*]] for all __attribute__((*))s which are:Richard Smith2013-01-144-58/+94
| | | | | | | | | | | 1) Supported by Clang, and 2) Supported by GCC, and 3) Documented in GCC's manual. g++ allows its C++11-style attributes to appertain only to the entity being declared, and never to a type (even for a type attribute), so we do the same. llvm-svn: 172382
* asan: add missing fileDmitry Vyukov2013-01-141-0/+128
| | | | llvm-svn: 172381
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-1418-158/+133
| | | | llvm-svn: 172380
* Simplify nested strconcats in X86 td files since strconcat can take more ↵Craig Topper2013-01-142-32/+32
| | | | | | than 2 arguments. llvm-svn: 172379
* Create a single multiclass for SSE and AVX version of MOVL/MOVH. Prevents ↵Craig Topper2013-01-141-23/+24
| | | | | | needing to specify everything twice. No functional change intended llvm-svn: 172378
* Formatter: Add a test for bitfields.Nico Weber2013-01-141-0/+7
| | | | | | | | They work fine, but this fifth use of colons (after labels, in ?:, in initalizer lists in constructors, in objc method expressions, and in bitfields) wasn't covered by tests yet. llvm-svn: 172377
* PR12008: defer adding the implicit 'const' to a constexpr member function untilRichard Smith2013-01-146-87/+129
| | | | | | we know whether it is static. llvm-svn: 172376
* *this is const in a trailing-return-type for a constexpr member function.Richard Smith2013-01-142-1/+11
| | | | llvm-svn: 172375
* Fixed some 80+ violations.Michael Gottesman2013-01-141-14/+18
| | | | llvm-svn: 172374
* libclang: remove a few const_castsDmitri Gribenko2013-01-144-9/+8
| | | | llvm-svn: 172373
* Constify argument of Preprocessor::getMacroInfoHistory and propagate toDmitri Gribenko2013-01-146-9/+10
| | | | | | callers, removing unneeded const_cast llvm-svn: 172372
* Updated the documentation in ObjCARC.cpp to fit the style guide better (i.e. ↵Michael Gottesman2013-01-141-232/+259
| | | | | | use doxygen). Still some work to do though. llvm-svn: 172371
* Remove an unneeded const_castDmitri Gribenko2013-01-141-1/+1
| | | | llvm-svn: 172370
* Added bugzilla PR number to test case.Michael Gottesman2013-01-131-0/+1
| | | | llvm-svn: 172369
* Fixed an infinite loop in the block escape in analysis in ObjCARC caused by ↵Michael Gottesman2013-01-132-3/+100
| | | | | | | | 2x blocks each assigned a value via a phi-node causing each to depend on the other. A test case is provided as well. llvm-svn: 172368
* ArrayRef'ize Sema APIs related to format string checkingDmitri Gribenko2013-01-133-50/+55
| | | | llvm-svn: 172367
* Implement __aeabi_lcmp and ulcmpTim Northover2013-01-132-0/+26
| | | | | | Patch contributed by Andrew Turner. llvm-svn: 172366
* Correct name of __aeabi_f2lz.Tim Northover2013-01-131-1/+1
| | | | | | Patch contributed by Andrew Turner. llvm-svn: 172365
* Fix typo in comment.Nick Lewycky2013-01-131-1/+1
| | | | llvm-svn: 172364
* fix compile-time regression report by Joerg Sonnenberger:Nuno Lopes2013-01-132-10/+14
| | | | | | cache result of Size/OffsetVisitor to speedup analysis of PHI nodes llvm-svn: 172363
* Document behavior of -Wformat-nonliteral, it is different from GCCDmitri Gribenko2013-01-131-0/+58
| | | | llvm-svn: 172362
* Stronger respect the input codes line breaks wrt. comments.Daniel Jasper2013-01-132-4/+18
| | | | | | | | | | | | | | | | | | clang-format should not change whether or not there is a line break before a line comment as this strongly influences the percieved binding. User input: void f(int a, // b is awesome int b); void g(int a, // a is awesome int b); Before: void f(int a, // b is awesome int b); void g(int a, // a is awesome int b); After: <unchanged from input> llvm-svn: 172361
* Documentation: use monospaced font for intrinsics' namesDmitri Gribenko2013-01-131-10/+10
| | | | llvm-svn: 172360
* Fix broken link to LangRefDmitri Gribenko2013-01-131-11/+10
| | | | llvm-svn: 172359
* Remove redundant 'llvm::' qualificationsDmitri Gribenko2013-01-1313-47/+47
| | | | llvm-svn: 172358
* Fix LLP64 build.Michael J. Spencer2013-01-131-1/+1
| | | | llvm-svn: 172357
* Update links to "Itanium C++ ABI: Exception Handling" documentDmitri Gribenko2013-01-131-9/+9
| | | | llvm-svn: 172356
* Format unions like structs and classes.Daniel Jasper2013-01-132-1/+3
| | | | | | | | | | | Note that I don't know whether we should put {} on a single line in this case, but it is probably a theoretical issue as in practice such structs, classes or unions won't be empty. Before: union A {} a; After: union A {} a; llvm-svn: 172355
* Refactor the x86 CPU name logic in the driver and pass -march and -mcpuChandler Carruth2013-01-132-66/+91
| | | | | | | | | | flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer. Fixes PR14697. llvm-svn: 172354
* X86: Add patterns for X86ISD::VSEXT in registers.Benjamin Kramer2013-01-132-0/+218
| | | | | | | Those can occur when something between the sextload and the store is on the same chain and blocks isel. Fixes PR14887. llvm-svn: 172353
* CGBuiltin.cpp: Fix abuse of ArrayRef in EmitOverflowIntrinsic().NAKAMURA Takumi2013-01-131-2/+1
| | | | | | | | | | | | | | | | | | | | In ArrayRef<T>(X), X should not be temporary value. It could be rewritten more redundantly; llvm::Type *XTy = X->getType(); ArrayRef<llvm::Type *> Ty(XTy); llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, Ty); Since it is safe if both XTy and Ty are temporary value in one statement, it could be shorten; llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, ArrayRef<llvm::Type*>(X->getType())); ArrayRef<T> has an implicit constructor to create uni-entry of T; llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, X->getType()); MSVC-generated clang.exe crashed. llvm-svn: 172352
* Always put a space after ",".Daniel Jasper2013-01-132-0/+3
| | | | | | | | | | I am not aware of a case where that would be wrong. The specific case I am fixing are function parameters wrapped in parenthesis (e.g. in macros). Before: function(a,(b)); After: function(a, (b)); llvm-svn: 172351
* Don't put spaces around hyphens in include paths.Daniel Jasper2013-01-132-21/+18
| | | | | | Before: #include <a - a> After: #include <a-a> llvm-svn: 172350
* Improve identification of c-style casts.Daniel Jasper2013-01-132-4/+24
| | | | | | | | | A ")" before any of "=", "{" or ";" won't be a cast. This fixes issues with the formatting of unnamed parameters. Before: void f(int *){} After: void f(int *) {} llvm-svn: 172349
* Fix PR14547. Handle induction variables of small sizes smaller than i32 (i8 ↵Nadav Rotem2013-01-132-0/+38
| | | | | | and i16). llvm-svn: 172348
OpenPOWER on IntegriCloud