Re: [PATCH] D12686: Add support for GCC's '__auto_type' extension.

2015-09-14 Thread Nicholas Allegra via cfe-commits
comex updated the summary for this revision. comex updated this revision to Diff 34787. comex added a comment. Per vsk: - Changed to an explicit switch, and changed ContainsPlaceholderType logic. Note: Currently, GetDeclSpecTypeForDeclarator determines ContainsPlaceholderType at two different l

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 7:07 PM, Rachel Craik wrote: > As of DR262, the C standard clarified that the width of a bit-field can > not exceed that of the specified type, and this change was primarily to > ensure that Clang correctly enforced this part of the standard. Looking at > the C++11 standar

Re: [PATCH] D12855: [OpenCL] Add new types for OpenCL 2.0.

2015-09-14 Thread Pekka Jääskeläinen via cfe-commits
pekka.jaaskelainen accepted this revision. pekka.jaaskelainen added a comment. This revision is now accepted and ready to land. The patch seems straightforward enough. BTW does someone know if anyone has worked on the 'pipe' qualifier? Comment at: lib/Serialization/ASTCommon.cp

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 7:07 PM, Rachel Craik wrote: > As of DR262, the C standard clarified that the width of a bit-field can > not exceed that of the specified type, and this change was primarily to > ensure that Clang correctly enforced this part of the standard. Looking at > the C++11 standar

[libclc] r247661 - integer: Update integer limits to comply with spec

2015-09-14 Thread Aaron Watry via cfe-commits
Author: awatry Date: Mon Sep 14 22:56:21 2015 New Revision: 247661 URL: http://llvm.org/viewvc/llvm-project?rev=247661&view=rev Log: integer: Update integer limits to comply with spec The values for the char/short/integer/long minimums were declared with their actual values, not the definitions f

Re: r247660 - [analyzer] Restore behavior change introduced by r247657.

2015-09-14 Thread NAKAMURA Takumi via cfe-commits
Sorry, I didn't notice while I was checking. 2015年9月15日(火) 12:29 Devin Coughlin via cfe-commits < cfe-commits@lists.llvm.org>: > Author: dcoughlin > Date: Mon Sep 14 22:28:27 2015 > New Revision: 247660 > > URL: http://llvm.org/viewvc/llvm-project?rev=247660&view=rev > Log: > [analyzer] Restore b

Re: [PATCH] D12726: [analyzer] A fix for symbolic element region index lifetime.

2015-09-14 Thread Jordan Rose via cfe-commits
jordan_rose added a comment. Hm, interesting. I'm not sure this is even sufficient, though: what if I have a FieldRegion that's a sub-region of an ElementRegion with a symbolic index? RegionStore does everything by base regions, so we won't ever see that intermediate region with the symbolic in

r247660 - [analyzer] Restore behavior change introduced by r247657.

2015-09-14 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Sep 14 22:28:27 2015 New Revision: 247660 URL: http://llvm.org/viewvc/llvm-project?rev=247660&view=rev Log: [analyzer] Restore behavior change introduced by r247657. r247657 fixed warnings about unused variables when compiling without asserts but changed behavior. This

Re: r247651 - [MS ABI] Overwide bool bitfields should be permitted

2015-09-14 Thread David Majnemer via cfe-commits
On Mon, Sep 14, 2015 at 6:03 PM, Richard Smith wrote: > On Mon, Sep 14, 2015 at 6:00 PM, David Majnemer via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: majnemer >> Date: Mon Sep 14 20:00:55 2015 >> New Revision: 247651 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=247651&

r247659 - [MS ABI] Restore our warning for overwide bitfields using the MS ABI

2015-09-14 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Sep 14 21:36:41 2015 New Revision: 247659 URL: http://llvm.org/viewvc/llvm-project?rev=247659&view=rev Log: [MS ABI] Restore our warning for overwide bitfields using the MS ABI This restores a diagnostic lost in r247651. Modified: cfe/trunk/lib/Sema/SemaDecl.cpp

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Rachel Craik via cfe-commits
As of DR262, the C standard clarified that the width of a bit-field can not exceed that of the specified type, and this change was primarily to ensure that Clang correctly enforced this part of the standard. Looking at the C+ +11 standard again, it states that although the specified width of a bit

r247657 - ExprEngineObjC.cpp: Fix warnings. [-Wunused-variable]

2015-09-14 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Mon Sep 14 20:53:27 2015 New Revision: 247657 URL: http://llvm.org/viewvc/llvm-project?rev=247657&view=rev Log: ExprEngineObjC.cpp: Fix warnings. [-Wunused-variable] Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp Modified: cfe/trunk/lib/StaticAnalyzer/Co

[PATCH] D12871: [OpenMP] Target directive host codegen - rebased

2015-09-14 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, hfinkel, rjmccall. sfantao added subscribers: cfe-commits, Hahnfeld. This patch rebases and creates a new revision for http://reviews.llvm.org/D11361 as requested by John. Here's the adapted original summary (the global captures is

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Nico Weber via cfe-commits
On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith wrote: > On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> This also fires for bool in C++ files, even though the commit message >> saying C11 and _Bool. Given the test changes, I suppose that's i

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 6:10 PM, David Majnemer wrote: > On Mon, Sep 14, 2015 at 6:01 PM, Richard Smith > wrote: > >> On Mon, Sep 14, 2015 at 5:55 PM, David Majnemer > > wrote: >> >>> On Mon, Sep 14, 2015 at 5:40 PM, Richard Smith >>> wrote: >>> On Mon, Sep 14, 2015 at 5:31 PM, David Majne

r247655 - ItaniumCXXABI.cpp: Fix a warning. [-Wunused-variable]

2015-09-14 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Mon Sep 14 20:39:27 2015 New Revision: 247655 URL: http://llvm.org/viewvc/llvm-project?rev=247655&view=rev Log: ItaniumCXXABI.cpp: Fix a warning. [-Wunused-variable] Modified: cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp Modified: cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp URL:

r247654 - [modules] A using-declaration doesn't introduce a new entity, just a new name

2015-09-14 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Sep 14 20:28:55 2015 New Revision: 247654 URL: http://llvm.org/viewvc/llvm-project?rev=247654&view=rev Log: [modules] A using-declaration doesn't introduce a new entity, just a new name for an existing entity, and as such a using-declaration doesn't need to conflict with a

Re: [PATCH] D12123: [analyzer] Skip Pre/Post handlers for ObjC calls when receiver is nil.

2015-09-14 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247653: [analyzer] Skip Pre/Post handlers for ObjC calls when receiver is nil. (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D12123?vs=33836&id=34772#toc Repository: rL LL

r247653 - [analyzer] Skip Pre/Post handlers for ObjC calls when receiver is nil.

2015-09-14 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Sep 14 20:13:53 2015 New Revision: 247653 URL: http://llvm.org/viewvc/llvm-project?rev=247653&view=rev Log: [analyzer] Skip Pre/Post handlers for ObjC calls when receiver is nil. In Objective-C, method calls with nil receivers are essentially no-ops. They do not fault

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread David Majnemer via cfe-commits
On Mon, Sep 14, 2015 at 6:01 PM, Richard Smith wrote: > On Mon, Sep 14, 2015 at 5:55 PM, David Majnemer > wrote: > >> On Mon, Sep 14, 2015 at 5:40 PM, Richard Smith >> wrote: >> >>> On Mon, Sep 14, 2015 at 5:31 PM, David Majnemer < >>> david.majne...@gmail.com> wrote: >>> On Mon, Sep 14, 2

Re: r247651 - [MS ABI] Overwide bool bitfields should be permitted

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 6:00 PM, David Majnemer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: majnemer > Date: Mon Sep 14 20:00:55 2015 > New Revision: 247651 > > URL: http://llvm.org/viewvc/llvm-project?rev=247651&view=rev > Log: > [MS ABI] Overwide bool bitfields should be permi

r247651 - [MS ABI] Overwide bool bitfields should be permitted

2015-09-14 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Sep 14 20:00:55 2015 New Revision: 247651 URL: http://llvm.org/viewvc/llvm-project?rev=247651&view=rev Log: [MS ABI] Overwide bool bitfields should be permitted Overwide bool bitfields have eight bits of storage size, make sure we take the padding into account when dete

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 5:55 PM, David Majnemer wrote: > On Mon, Sep 14, 2015 at 5:40 PM, Richard Smith > wrote: > >> On Mon, Sep 14, 2015 at 5:31 PM, David Majnemer > > wrote: >> >>> On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith via cfe-commits < >>> cfe-commits@lists.llvm.org> wrote: >>>

r247650 - small test bugfix

2015-09-14 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Mon Sep 14 19:55:29 2015 New Revision: 247650 URL: http://llvm.org/viewvc/llvm-project?rev=247650&view=rev Log: small test bugfix Modified: cfe/trunk/test/CodeGenCXX/vtable-assume-load.cpp Modified: cfe/trunk/test/CodeGenCXX/vtable-assume-load.cpp URL: http://llvm.org/v

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread David Majnemer via cfe-commits
On Mon, Sep 14, 2015 at 5:40 PM, Richard Smith wrote: > On Mon, Sep 14, 2015 at 5:31 PM, David Majnemer > wrote: > >> On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-commits < >>> cf

Re: [PATCH] D12379: Fix the bugs in the mapDiagnosticRanges (Still in progress)

2015-09-14 Thread Richard Trieu via cfe-commits
rtrieu added a comment. In http://reviews.llvm.org/D12379#245868, @zhengkai wrote: > In http://reviews.llvm.org/D12379#245861, @rtrieu wrote: > > > In http://reviews.llvm.org/D12379#245850, @zhengkai wrote: > > > > > In http://reviews.llvm.org/D12379#245849, @rtrieu wrote: > > > > > > > Why are y

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 5:31 PM, David Majnemer wrote: > On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> This also fires for bool i

Re: [PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread Piotr Padlewski via cfe-commits
Prazek closed this revision. Prazek added a comment. Assume loads released. http://reviews.llvm.org/D12865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r247646 - Generating assumption loads of vptr after ctor call (fixed)

2015-09-14 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Mon Sep 14 19:37:06 2015 New Revision: 247646 URL: http://llvm.org/viewvc/llvm-project?rev=247646&view=rev Log: Generating assumption loads of vptr after ctor call (fixed) Generating call assume(icmp %vtable, %global_vtable) after constructor call for devirtualization purpose

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread David Majnemer via cfe-commits
On Mon, Sep 14, 2015 at 5:28 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> This also fires for bool in C++ files, even though the commit message >> saying C11 and _Boo

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Richard Smith via cfe-commits
On Mon, Sep 14, 2015 at 5:18 PM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > This also fires for bool in C++ files, even though the commit message > saying C11 and _Bool. Given the test changes, I suppose that's intentional? > This fires a lot on existing code, for example pr

r247643 - Prevent implicit re-interpret casts between ExtVector and Scalar types.

2015-09-14 Thread Stephen Canon via cfe-commits
Author: scanon Date: Mon Sep 14 19:21:56 2015 New Revision: 247643 URL: http://llvm.org/viewvc/llvm-project?rev=247643&view=rev Log: Prevent implicit re-interpret casts between ExtVector and Scalar types. Previously, in certain cases lax vector conversions could occur between scalar floating-poi

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread NAKAMURA Takumi via cfe-commits
It affects for targeting MS. Tweaked one test in r247640. You can emulate to add -mms-bitfields. On Tue, Sep 15, 2015 at 6:29 AM Rachel Craik via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rcraik > Date: Mon Sep 14 16:27:36 2015 > New Revision: 247618 > > URL: http://llvm.org/vie

Re: [PATCH] D12379: Fix the bugs in the mapDiagnosticRanges (Still in progress)

2015-09-14 Thread Zhengkai Wu via cfe-commits
zhengkai added a comment. In http://reviews.llvm.org/D12379#245861, @rtrieu wrote: > In http://reviews.llvm.org/D12379#245850, @zhengkai wrote: > > > In http://reviews.llvm.org/D12379#245849, @rtrieu wrote: > > > > > Why are you leaking the raw encoding of locations from the SourceManager? > > >

Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Nico Weber via cfe-commits
This also fires for bool in C++ files, even though the commit message saying C11 and _Bool. Given the test changes, I suppose that's intentional? This fires a lot on existing code, for example protobuf: ../../third_party/protobuf/src/google/protobuf/extension_set.h:465:10: error: width of bit-fiel

Re: [PATCH] D12379: Fix the bugs in the mapDiagnosticRanges (Still in progress)

2015-09-14 Thread Richard Trieu via cfe-commits
rtrieu added a comment. In http://reviews.llvm.org/D12379#245850, @zhengkai wrote: > In http://reviews.llvm.org/D12379#245849, @rtrieu wrote: > > > Why are you leaking the raw encoding of locations from the SourceManager? > > This is an internal implementation detail and should not be relied on

Re: [PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: lib/CodeGen/ItaniumCXXABI.cpp:394-406 @@ +393,15 @@ + +for (const auto &VtableComponent : VtableLayout.vtable_components()) { + if (VtableComponent.isRTTIKind()) { +const CXXRecordDecl *RTTIDecl = VtableComponent.getRTTIDe

Re: [PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread Piotr Padlewski via cfe-commits
Prazek updated this revision to Diff 34761. Prazek marked 3 inline comments as done. http://reviews.llvm.org/D12865 Files: include/clang/AST/VTableBuilder.h lib/CodeGen/CGClass.cpp lib/CodeGen/ItaniumCXXABI.cpp test/CodeGenCXX/vtable-assume-load.cpp test/CodeGenCXX/vtable-available-exte

Re: [PATCH] D12379: Fix the bugs in the mapDiagnosticRanges (Still in progress)

2015-09-14 Thread Zhengkai Wu via cfe-commits
zhengkai added a comment. In http://reviews.llvm.org/D12379#245849, @rtrieu wrote: > Why are you leaking the raw encoding of locations from the SourceManager? > This is an internal implementation detail and should not be relied on > externally. SourceLocation is the typical way to use locatio

Re: [PATCH] D12379: Fix the bugs in the mapDiagnosticRanges (Still in progress)

2015-09-14 Thread Richard Trieu via cfe-commits
rtrieu added a comment. Why are you leaking the raw encoding of locations from the SourceManager? This is an internal implementation detail and should not be relied on externally. SourceLocation is the typical way to use locations. http://reviews.llvm.org/D12379 __

r247640 - clang/test/CodeGenCXX/2009-04-23-bool2.cpp: Avoid -mms-bitfields to add explicit triple.

2015-09-14 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Mon Sep 14 18:50:08 2015 New Revision: 247640 URL: http://llvm.org/viewvc/llvm-project?rev=247640&view=rev Log: clang/test/CodeGenCXX/2009-04-23-bool2.cpp: Avoid -mms-bitfields to add explicit triple. FIXME: Better way to cancel -mms-bitfields? Modified: cfe/trunk/test

Re: [PATCH] D12761: MPI-Checker patch for Clang Static Analyzer

2015-09-14 Thread Anna Zaks via cfe-commits
zaks.anna requested changes to this revision. zaks.anna added a comment. This revision now requires changes to proceed. Thanks for working on this! Comments inline. Comment at: tools/clang/lib/StaticAnalyzer/Checkers/Checkers.td:524 @@ +523,3 @@ +def MPIChecker : Checker<"MPI-C

Re: [PATCH][Solaris] Default to -fno-cxa-finalize

2015-09-14 Thread Rafael Espíndola via cfe-commits
From the driver point of view, how does it know if it is targeting illumos or solaris? Do they use different triples? In any case, if there is interest in the future this patch can be extended to work on illumos by * Creating a shouldUseCxaAtexitByDefault and passing in whatever information is ne

r247634 - [Solaris] Default to -fno-cxa-finalize.

2015-09-14 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Mon Sep 14 18:21:31 2015 New Revision: 247634 URL: http://llvm.org/viewvc/llvm-project?rev=247634&view=rev Log: [Solaris] Default to -fno-cxa-finalize. There is no __cxa_finalize symbol available on recent Solaris OS versions, so we need this flag to make non trivial C++ prog

Re: [PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/ItaniumCXXABI.cpp:394-406 @@ +393,15 @@ + +for (const auto &VtableComponent : VtableLayout.vtable_components()) { + if (VtableComponent.isRTTIKind()) { +const CXXRecordDecl *RTTIDecl = VtableComponent.getRTTI

Re: [PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM Comment at: lib/CodeGen/ItaniumCXXABI.cpp:399-400 @@ +398,4 @@ + return true; + } + else if (VtableComponent.isUsedFunctionPointerKind()) { +co

Re: [PATCH] D12797: Refactor LoopConvertCheck.

2015-09-14 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/modernize/LoopConvertCheck.cpp:419 @@ +418,3 @@ + // assumption the user is trying to modernize their codebase. + if (getLangOpts().CPlusPlus) { +Finder->addMatcher(makeArrayLoopMatcher(), this); Now you c

Re: [PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread Piotr Padlewski via cfe-commits
Prazek updated this revision to Diff 34750. http://reviews.llvm.org/D12865 Files: include/clang/AST/VTableBuilder.h lib/CodeGen/CGClass.cpp lib/CodeGen/ItaniumCXXABI.cpp test/CodeGenCXX/vtable-assume-load.cpp test/CodeGenCXX/vtable-available-externally.cpp Index: test/CodeGenCXX/vtable

[PATCH] D12865: Generating available_externally vtables and assume loads bugfix

2015-09-14 Thread Piotr Padlewski via cfe-commits
Prazek created this revision. Prazek added reviewers: rsmith, rjmccall, hans, majnemer. Prazek added a subscriber: cfe-commits. http://reviews.llvm.org/D12865 Files: include/clang/AST/VTableBuilder.h lib/CodeGen/CGClass.cpp lib/CodeGen/ItaniumCXXABI.cpp test/CodeGenCXX/vtable-assume-load.

Re: [PATCH] D12541: [Sparc][Shave]: Empower the toolchain formerly known as SHAVE to do more.

2015-09-14 Thread James Y Knight via cfe-commits
jyknight added inline comments. Comment at: lib/Driver/ToolChains.cpp:3929 @@ +3928,3 @@ +: Generic_GCC(D, Triple, Args) { + // If a target of 'sparc-myriad-elf' is specified to clang, it wants to use + // 'sparc-myriad--elf' (note the unknown OS) as the canonical triple. --

Re: [PATCH] D12492: [Clang-Format] Add AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch Style to avoid cuddled else/catch

2015-09-14 Thread Paul Hoad via cfe-commits
MyDeveloperDay updated this revision to Diff 34741. MyDeveloperDay added a comment. Handle subsequent catch statements http://reviews.llvm.org/D12492 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/Format.cpp lib/Format/UnwrappedLineParser.cpp unittest

Re: [PATCH] D12862: [WebAssembly] Define the atomic type sizes

2015-09-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247624: [WebAssembly] Define the atomic type sizes (authored by djg). Changed prior to commit: http://reviews.llvm.org/D12862?vs=34731&id=34739#toc Repository: rL LLVM http://reviews.llvm.org/D12862

r247624 - [WebAssembly] Define the atomic type sizes

2015-09-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Sep 14 16:56:37 2015 New Revision: 247624 URL: http://llvm.org/viewvc/llvm-project?rev=247624&view=rev Log: [WebAssembly] Define the atomic type sizes WebAssembly's spec has now been updated to specify some guarantees about lock free atomic accesses. Update clang to match.

r247623 - [WebAssembly] Simplify code by avoiding duplicating the default behavior.

2015-09-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Sep 14 16:54:32 2015 New Revision: 247623 URL: http://llvm.org/viewvc/llvm-project?rev=247623&view=rev Log: [WebAssembly] Simplify code by avoiding duplicating the default behavior. Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInf

Re: [PATCH] D12861: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64

2015-09-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247622: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64 (authored by djg). Changed prior to commit: http://reviews.llvm.org/D12861?vs=34727&id=34738#toc Repository: rL LLVM

r247622 - [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64

2015-09-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Sep 14 16:49:41 2015 New Revision: 247622 URL: http://llvm.org/viewvc/llvm-project?rev=247622&view=rev Log: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64 This makes int_fast64_t and int_least64_t the same type as int64_t, and eliminates a differe

Re: recordDecl() AST matcher

2015-09-14 Thread Aaron Ballman via cfe-commits
On Mon, Sep 14, 2015 at 5:47 PM, Daniel Jasper wrote: > Btw, I think generating them, potentially into several different headers to > work around the compile time issue isn't such a bad idea. I'm not going to start with this approach, but think it may be worth exploring at some point. ;-) ~Aaron

Re: recordDecl() AST matcher

2015-09-14 Thread Aaron Ballman via cfe-commits
On Mon, Sep 14, 2015 at 5:44 PM, Daniel Jasper wrote: > Ok. I am happy with this then. > > (Just personally grumpy having to write > cxxRecordDecl(has(cxxConstructorDecl(..))) in the future ;-) ). I share your grumpiness about the cxxConstructorDecl, but probably won't share it when we add objcCo

Re: recordDecl() AST matcher

2015-09-14 Thread Daniel Jasper via cfe-commits
Btw, I think generating them, potentially into several different headers to work around the compile time issue isn't such a bad idea. On Mon, Sep 14, 2015 at 11:45 PM, Manuel Klimek wrote: > Feel free to rename the AST nodes :) > > On Mon, Sep 14, 2015, 2:44 PM Daniel Jasper wrote: > >> Ok. I a

Re: recordDecl() AST matcher

2015-09-14 Thread Manuel Klimek via cfe-commits
Feel free to rename the AST nodes :) On Mon, Sep 14, 2015, 2:44 PM Daniel Jasper wrote: > Ok. I am happy with this then. > > (Just personally grumpy having to write > cxxRecordDecl(has(cxxConstructorDecl(..))) in the future ;-) ). > > On Mon, Sep 14, 2015 at 11:41 PM, Manuel Klimek wrote: > >>

Re: recordDecl() AST matcher

2015-09-14 Thread Daniel Jasper via cfe-commits
Ok. I am happy with this then. (Just personally grumpy having to write cxxRecordDecl(has(cxxConstructorDecl(..))) in the future ;-) ). On Mon, Sep 14, 2015 at 11:41 PM, Manuel Klimek wrote: > > > On Mon, Sep 14, 2015 at 2:29 PM Aaron Ballman > wrote: > >> On Mon, Sep 14, 2015 at 4:38 PM, Manue

Re: recordDecl() AST matcher

2015-09-14 Thread Manuel Klimek via cfe-commits
On Mon, Sep 14, 2015 at 2:29 PM Aaron Ballman wrote: > On Mon, Sep 14, 2015 at 4:38 PM, Manuel Klimek wrote: > > > > > > On Mon, Sep 14, 2015 at 12:26 PM Aaron Ballman > > wrote: > >> > >> On Mon, Sep 14, 2015 at 2:45 PM, Daniel Jasper > wrote: > >> > By this point, I see that change might be

r247620 - Revert "Always_inline codegen rewrite" and 2 follow-ups.

2015-09-14 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Mon Sep 14 16:35:16 2015 New Revision: 247620 URL: http://llvm.org/viewvc/llvm-project?rev=247620&view=rev Log: Revert "Always_inline codegen rewrite" and 2 follow-ups. Revert "Update cxx-irgen.cpp test to allow signext in alwaysinline functions." Revert "[CodeGen] Remove wr

Re: [PATCH] D12402: PR24595: clang-cl fails to compile vswriter.h header from Windows SDK 8.1 in 32 bit mode

2015-09-14 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. OK -- I removed the check in Itanium ABI part, restored back the test and committed the patch. Thanks for reviewing! Repository: rL LLVM http://reviews.llvm.org/D12402 ___ cfe-commits mailing list cfe-commits@lis

Re: [PATCH] D12402: PR24595: clang-cl fails to compile vswriter.h header from Windows SDK 8.1 in 32 bit mode

2015-09-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247619: PR24595: Ignore calling convention modifiers for structors in MS ABI. (authored by asbokhan). Changed prior to commit: http://reviews.llvm.org/D12402?vs=34477&id=34735#toc Repository: rL LLVM

r247619 - PR24595: Ignore calling convention modifiers for structors in MS ABI.

2015-09-14 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Mon Sep 14 16:29:57 2015 New Revision: 247619 URL: http://llvm.org/viewvc/llvm-project?rev=247619&view=rev Log: PR24595: Ignore calling convention modifiers for structors in MS ABI. MS compiler ignores calling convention modifiers for structors. This patch makes clang do th

r247618 - C11 _Bool bitfield diagnostic

2015-09-14 Thread Rachel Craik via cfe-commits
Author: rcraik Date: Mon Sep 14 16:27:36 2015 New Revision: 247618 URL: http://llvm.org/viewvc/llvm-project?rev=247618&view=rev Log: C11 _Bool bitfield diagnostic Summary: Implement DR262 (for C). This patch will mainly affect bitfields of type _Bool Reviewers: fraggamuffin, rsmith Subscribers

Re: recordDecl() AST matcher

2015-09-14 Thread Aaron Ballman via cfe-commits
On Mon, Sep 14, 2015 at 4:38 PM, Manuel Klimek wrote: > > > On Mon, Sep 14, 2015 at 12:26 PM Aaron Ballman > wrote: >> >> On Mon, Sep 14, 2015 at 2:45 PM, Daniel Jasper wrote: >> > By this point, I see that change might be profitable overall. However, >> > lets >> > completely map this out. Chan

Re: [PATCH] D12769: [analyzer] Update SATestBuild.py to set -isysroot for preprocessed files

2015-09-14 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247617: [analyzer] Update SATestBuild.py to set -isysroot for preprocessed files (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D12769?vs=34471&id=34733#toc Repository: rL

r247617 - [analyzer] Update SATestBuild.py to set -isysroot for preprocessed files

2015-09-14 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Sep 14 16:22:24 2015 New Revision: 247617 URL: http://llvm.org/viewvc/llvm-project?rev=247617&view=rev Log: [analyzer] Update SATestBuild.py to set -isysroot for preprocessed files Update the static analyzer buildbot script to set -isysroot to the OS X SDK path when an

Re: [PATCH] D11240: Add basic #include sorting functionality to clang-format

2015-09-14 Thread Manuel Klimek via cfe-commits
klimek added a comment. First round of comments; some things are still a bit confusing, so I hope another round will help to weed them out. Comment at: include/clang/Tooling/Core/Replacement.h:223-224 @@ -222,1 +222,4 @@ +/// \brief Merges to sets of replacements with the sec

Re: [PATCH] D12862: [WebAssembly] Define the atomic type sizes

2015-09-14 Thread JF Bastien via cfe-commits
jfb accepted this revision. jfb added a comment. This revision is now accepted and ready to land. lgtm Repository: rL LLVM http://reviews.llvm.org/D12862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

Re: [PATCH] D12861: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64

2015-09-14 Thread JF Bastien via cfe-commits
jfb accepted this revision. jfb added a comment. This revision is now accepted and ready to land. lgtm Repository: rL LLVM http://reviews.llvm.org/D12861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[PATCH] D12862: [WebAssembly] Define the atomic type sizes

2015-09-14 Thread Dan Gohman via cfe-commits
sunfish created this revision. sunfish added a reviewer: jfb. sunfish added a subscriber: cfe-commits. sunfish set the repository for this revision to rL LLVM. Herald added subscribers: dschuff, jfb. WebAssembly's spec has now been updated to specify some [guarantees about lock free atomic access

Re: [PATCH] D12541: [Sparc][Shave]: Empower the toolchain formerly known as SHAVE to do more.

2015-09-14 Thread Douglas Katzman via cfe-commits
dougk updated this revision to Diff 34729. dougk added a comment. Delete the overrides of getTool() and buildAssembler() in MyriadToolChain. http://reviews.llvm.org/D12541 Files: lib/Driver/Driver.cpp lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h lib/Driver/Tools.cpp lib/Driver/To

Re: recordDecl() AST matcher

2015-09-14 Thread Manuel Klimek via cfe-commits
On Mon, Sep 14, 2015 at 12:26 PM Aaron Ballman wrote: > On Mon, Sep 14, 2015 at 2:45 PM, Daniel Jasper wrote: > > By this point, I see that change might be profitable overall. However, > lets > > completely map this out. Changing just cxxRecordDecl() can actually > increase > > confusion in othe

Re: [PATCH] D1623: Support __builtin_ms_va_list.

2015-09-14 Thread Charles Davis via cfe-commits
cdavis5x added inline comments. Comment at: lib/CodeGen/CGCall.cpp:3598 @@ -3599,1 +3597,3 @@ +Address CodeGenFunction::EmitVAArg(Address VAListAddr, QualType Ty, bool IsMS) { + return CGM.getTypes().getABIInfo().EmitVAArg(*this, VAListAddr, Ty, IsMS); } rjmcca

[PATCH] D12861: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64

2015-09-14 Thread Dan Gohman via cfe-commits
sunfish created this revision. sunfish added a reviewer: jfb. sunfish added a subscriber: cfe-commits. sunfish set the repository for this revision to rL LLVM. Herald added subscribers: dschuff, jfb. This makes int_fast64_t and int_least64_t the same type as int64_t, and eliminates a difference b

Re: [PATCH] D1623: Support __builtin_ms_va_list.

2015-09-14 Thread Charles Davis via cfe-commits
cdavis5x updated this revision to Diff 34728. cdavis5x added a comment. Address review comments. - Pull out `va_arg` emission on `__builtin_ms_va_arg` to its own method on `ABIInfo`. That way, ABI implementers don't need to care that this extension even exists. - Attempt to push repeated `va_ar

Re: [PATCH] D12858: [Static Analyzer] Turn on some nullability checks by default.

2015-09-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247614: [Static Analyzer] Turn on some nullability checks by default. (authored by xazax). Changed prior to commit: http://reviews.llvm.org/D12858?vs=34720&id=34726#toc Repository: rL LLVM http://re

r247614 - [Static Analyzer] Turn on some nullability checks by default.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 15:34:06 2015 New Revision: 247614 URL: http://llvm.org/viewvc/llvm-project?rev=247614&view=rev Log: [Static Analyzer] Turn on some nullability checks by default. Differential Revision: http://reviews.llvm.org/D12858 Modified: cfe/trunk/lib/Driver/Tools.cpp M

r247612 - [Static Analyzer] Nullability checker optimization.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 15:31:46 2015 New Revision: 247612 URL: http://llvm.org/viewvc/llvm-project?rev=247612&view=rev Log: [Static Analyzer] Nullability checker optimization. Differential Revision: http://reviews.llvm.org/D12848 Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/Nulla

Re: [PATCH] D12848: [Static Analyzer] Nullability checker optimization.

2015-09-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247612: [Static Analyzer] Nullability checker optimization. (authored by xazax). Changed prior to commit: http://reviews.llvm.org/D12848?vs=34693&id=34725#toc Repository: rL LLVM http://reviews.llvm

r247611 - Driver should forward at most one gdwarf-N flag to cc1as.

2015-09-14 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Mon Sep 14 15:31:28 2015 New Revision: 247611 URL: http://llvm.org/viewvc/llvm-project?rev=247611&view=rev Log: Driver should forward at most one gdwarf-N flag to cc1as. Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/integrated-as.s Modified: cfe/trunk

Re: [PATCH] D12774: createUniqueFile() is documented to create the file in the temporary directory unless it's supplied an absolute path.Make sure the output filepath supplied to createUniqueFile() in

2015-09-14 Thread Cameron Esfahani via cfe-commits
dirty added a comment. Ping? http://reviews.llvm.org/D12774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-14 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. One set of inline comments, and also: test/Driver/Inputs/scei-ps4_tree/target/include_common/.keep eh? -eric Comment at: lib/Driver/Tools.cpp:10025-10029 @@ +10024,7 @@ + const char *Exec = +#ifdef LLVM_ON_WIN32 +

Re: [PATCH] D12119: Analyzer: Fix a crasher in UbigraphViz

2015-09-14 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: test/Analysis/free.c:1 @@ -1,2 +1,2 @@ -// RUN: %clang_cc1 -analyze -analyzer-store=region -analyzer-checker=core,unix.Malloc -fblocks -verify %s +// RUN: %clang_cc1 -analyze -analyzer-store=region -analyzer-checker=core,unix.Malloc -

Re: [PATCH][Solaris] Add -lc also when linking shared libraries

2015-09-14 Thread Rafael Espíndola via cfe-commits
r247603 On 7 September 2015 at 13:22, Xan López via cfe-commits wrote: > On Mon, Sep 07, 2015 at 09:07:41AM -0700, Saleem Abdulrasool wrote: >> > Basically check that -lc is present when clang is called in a certain >> > way I guess? Or something more sophisticated? >> >> >> Yeah, that it is pres

r247603 - [Solaris] Add -lc also when linking shared libraries

2015-09-14 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Mon Sep 14 14:30:53 2015 New Revision: 247603 URL: http://llvm.org/viewvc/llvm-project?rev=247603&view=rev Log: [Solaris] Add -lc also when linking shared libraries This is actually needed, otherwise libc won't be added at all. For instance when building libclang.so all the l

Re: recordDecl() AST matcher

2015-09-14 Thread Aaron Ballman via cfe-commits
On Mon, Sep 14, 2015 at 2:45 PM, Daniel Jasper wrote: > By this point, I see that change might be profitable overall. However, lets > completely map this out. Changing just cxxRecordDecl() can actually increase > confusion in other areas. Right now, not a single AST matcher has the cxx > prefix (a

Re: recordDecl() AST matcher

2015-09-14 Thread Manuel Klimek via cfe-commits
On Mon, Sep 14, 2015 at 11:45 AM Daniel Jasper wrote: > By this point, I see that change might be profitable overall. However, > lets completely map this out. Changing just cxxRecordDecl() can actually > increase confusion in other areas. Right now, not a single AST matcher has > the cxx prefix (

[PATCH] D12858: [Static Analyzer] Turn on some nullability checks by default.

2015-09-14 Thread Gábor Horváth via cfe-commits
xazax.hun created this revision. xazax.hun added reviewers: zaks.anna, dcoughlin, jordan_rose. xazax.hun added a subscriber: cfe-commits. This patch turns on some of the nullability related patches by default. These checks has low false positive rate. http://reviews.llvm.org/D12858 Files: li

Re: r247494 - Always_inline codegen rewrite.

2015-09-14 Thread Evgenii Stepanov via cfe-commits
Thanks! On Mon, Sep 14, 2015 at 10:50 AM, Samuel F Antao wrote: > Hi Evgeniy, > > I commit a small change to one of the regression tests to allow a signext to > be generated: http://reviews.llvm.org/rL247584. > > It was causing an error in Power8 targets. In my view is an harmless change > but yo

Re: [PATCH] D12818: [Static Analyzer] Relaxing a caching out related assert.

2015-09-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL247598: [Static Analyzer] Relaxing a caching out related assert. (authored by xazax). Changed prior to commit: http://reviews.llvm.org/D12818?vs=34579&id=34719#toc Repository: rL LLVM http://reviews

r247598 - [Static Analyzer] Relaxing a caching out related assert.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 14:00:08 2015 New Revision: 247598 URL: http://llvm.org/viewvc/llvm-project?rev=247598&view=rev Log: [Static Analyzer] Relaxing a caching out related assert. Differential Revision: http://reviews.llvm.org/D12818 Modified: cfe/trunk/lib/StaticAnalyzer/Core/Expr

r247597 - Fix a nasty bug with the partial destruction of nested arrays;

2015-09-14 Thread John McCall via cfe-commits
Author: rjmccall Date: Mon Sep 14 13:57:08 2015 New Revision: 247597 URL: http://llvm.org/viewvc/llvm-project?rev=247597&view=rev Log: Fix a nasty bug with the partial destruction of nested arrays; it escaped notice because it's only used for heterogeneous initialization. rdar://21397946 Modifie

r247595 - [Static Analyzer] Moving nullability checkers out of alpha.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 13:48:55 2015 New Revision: 247595 URL: http://llvm.org/viewvc/llvm-project?rev=247595&view=rev Log: [Static Analyzer] Moving nullability checkers out of alpha. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/Checkers.td cfe/trunk/test/Analysis/nullability.m

Re: [PATCH] D12821: Allow for C's "writing off the end" idiom in __builtin_object_size

2015-09-14 Thread George Burgess IV via cfe-commits
george.burgess.iv added inline comments. Comment at: lib/AST/ExprConstant.cpp:4457-4460 @@ -4434,1 +4456,6 @@ +// Because we set the Base to be the MemberExpr instead of E->getBase(), the +// Offset should be from the MemberExpr instead of the MemberExpr's base. +if

Re: [PATCH] D12821: Allow for C's "writing off the end" idiom in __builtin_object_size

2015-09-14 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 34710. george.burgess.iv marked 4 inline comments as done. george.burgess.iv added a comment. Addressed all feedback -- added a walk of the Designator as suggested. Regarding `isDesignatorAtObjectEnd`: I'm assuming that the Index returned by `Field

Re: recordDecl() AST matcher

2015-09-14 Thread Daniel Jasper via cfe-commits
By this point, I see that change might be profitable overall. However, lets completely map this out. Changing just cxxRecordDecl() can actually increase confusion in other areas. Right now, not a single AST matcher has the cxx prefix (although a total of 28 stand for the corresponding CXX.. AST nod

  1   2   >