Re: [PATCH] D14736: [analyzer] DeadStoresChecker: Treat locals captured by reference in C++ lambdas as escaped.

2015-11-17 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. This looks good to me, I have one question inline. Comment at: lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp:425 @@ +424,3 @@ +llvm::DenseMap CaptureFields; +FieldDecl *ThisCaptureField; +LambdaClass->getCaptureFields(CaptureFields, Thi

Re: [PATCH] D14506: Porting shouldVisitImplicitCode to DataRecursiveASTVisitor.

2015-11-17 Thread Manuel Klimek via cfe-commits
Richard, this is still optional, right? (the AST matchers need to control visitation) On Tue, Nov 17, 2015 at 2:26 AM Argyrios Kyrtzidis via cfe-commits < cfe-commits@lists.llvm.org> wrote: > W00t! That’s awesome Richard! > > On Nov 16, 2015, at 5:10 PM, Richard Smith wrote: > > Attached patch m

Re: [PATCH] D14170: Fix false positive warning about memory leak for QApplication::postEvent

2015-11-17 Thread Gábor Horváth via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:2514 @@ -2513,1 +2513,3 @@ + if (FName.endswith("postEvent") && + FD->getQualifiedNameAsString() == "QCoreApplication::postEvent") { Shouldn't you use == instead of

Re: [PATCH] D14506: Porting shouldVisitImplicitCode to DataRecursiveASTVisitor.

2015-11-17 Thread Richard Smith via cfe-commits
LOn Nov 17, 2015 12:49 AM, "Manuel Klimek" wrote: > Richard, this is still optional, right? (the AST matchers need to control visitation) This doesn't change RAV semantics at all (or if it does, it's a bug). If any of the extension points are overridden in the derived class, data recursion is aut

Re: [PATCH] D14506: Porting shouldVisitImplicitCode to DataRecursiveASTVisitor.

2015-11-17 Thread Manuel Klimek via cfe-commits
On Tue, Nov 17, 2015 at 10:14 AM Richard Smith wrote: > LOn Nov 17, 2015 12:49 AM, "Manuel Klimek" wrote: > > Richard, this is still optional, right? (the AST matchers need to > control visitation) > > This doesn't change RAV semantics at all (or if it does, it's a bug). If > any of the extensio

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Renato Golin via cfe-commits
On 16 November 2015 at 23:09, Stephen Canon via cfe-commits wrote: > Author: scanon > Date: Mon Nov 16 17:09:11 2015 > New Revision: 253269 > > URL: http://llvm.org/viewvc/llvm-project?rev=253269&view=rev > Log: > Make FP_CONTRACT ON the default. > > Differential Revision: D14200 Hi Stephen, It

Re: [PATCH] D14467: [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions.

2015-11-17 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 40380. d.zobnin.bugzilla added a comment. Only tests have been updated: enabled a test case for Sema, which pass with these changes, added corresponding test case for CodeGen. http://reviews.llvm.org/D14467 Files: include/clang/Sema/Sema.h li

Re: [PATCH] D14467: [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions.

2015-11-17 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added inline comments. Comment at: test/SemaCXX/pragma-vtordisp.cpp:34-35 @@ -33,6 +33,4 @@ struct C { -// FIXME: Our implementation based on token insertion makes it impossible for -// the pragma to appear everywhere we should support it. -//#pragma vtordisp(

Re: [PATCH] D10802: [mips] Interrupt attribute support.

2015-11-17 Thread Simon Dardis via cfe-commits
sdardis updated this revision to Diff 40382. sdardis marked 12 inline comments as done. sdardis added a comment. Updated documentation text. Switched the various hard failures to semantic warnings/failures. Strangely, the 'interrupt' attribute on a non-function defaults to a warning. Thanks.

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Stephen Canon via cfe-commits
> On Nov 17, 2015, at 4:51 AM, Renato Golin wrote: > > On 16 November 2015 at 23:09, Stephen Canon via cfe-commits > wrote: >> Author: scanon >> Date: Mon Nov 16 17:09:11 2015 >> New Revision: 253269 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=253269&view=rev >> Log: >> Make FP_CONTRACT

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Hal Finkel via cfe-commits
- Original Message - > From: "Renato Golin via cfe-commits" > To: "Stephen Canon" > Cc: "Clang Commits" > Sent: Tuesday, November 17, 2015 3:51:23 AM > Subject: Re: r253269 - Make FP_CONTRACT ON the default. > > On 16 November 2015 at 23:09, Stephen Canon via cfe-commits > wrote: > > A

[PATCH] D14744: PR10235: support for vector mode attributes + warning

2015-11-17 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin created this revision. DmitryPolukhin added a reviewer: aaron.ballman. DmitryPolukhin added a subscriber: cfe-commits. Add support for vector mode attributes like "__attribute__((mode(V4SF)))". Also add warning about deprecated vector modes like GCC does. http://reviews.llvm.org/D

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Manuel Klimek via cfe-commits
Note that due to this change we're hitting an assert at lib/CodeGen/CGExprScalar.cpp:2570 in llvm::Value *tryEmitFMulAdd(const (anonymous namespace)::BinOpInfo &, const clang::CodeGen::CodeGenFunction &, clang::CodeGen::CGBuilderTy &, bool): LHSBinOp->getNumUses( ) == 0 && "Operations with multiple

Re: [PATCH] D14134: [OpenMP] Parsing and sema support for map clause

2015-11-17 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: include/clang/AST/OpenMPClause.h:2660-2662 @@ +2659,5 @@ + /// + /// \param StartLoc Starting location of the clause. + /// \param EndLoc Ending location of the clause. + /// \param N Number of the variables in the clause. + ///

Re: [PATCH] D14727: [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations

2015-11-17 Thread Thiago Macieira via cfe-commits
thiagomacieira added a comment. In http://reviews.llvm.org/D14727#290661, @jroelofs wrote: > hHave a look at the svn-blame for this file, then find other commits which > changed this part of the file, and see where those commits added tests. Thanks, looks like 189212 has a way to do it. http

Re: [PATCH] D14727: [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations

2015-11-17 Thread Thiago Macieira via cfe-commits
thiagomacieira updated this revision to Diff 40370. thiagomacieira added a comment. v3: updated to add unit testing http://reviews.llvm.org/D14727 Files: lib/Driver/ToolChains.cpp test/Driver/Inputs/gcc_version_parsing5/bin/.keep test/Driver/Inputs/gcc_version_parsing5/lib/gcc/i386-unkno

Re: [PATCH] D10802: [mips] Interrupt attribute support.

2015-11-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:255 @@ -254,1 +254,3 @@ def err_parameter_name_omitted : Error<"parameter name omitted">; +def err_excess_arguments : Error<"function %0 has too many arguments">; +def err_wrong_return_typ

Re: [PATCH] D13731: [Analyzer] Supporting function attributes in .model files.

2015-11-17 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D13731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14506: Porting shouldVisitImplicitCode to DataRecursiveASTVisitor.

2015-11-17 Thread Craig, Ben via cfe-commits
Looks good to me. I'm not too worried about the compactness of the visitor class. On 11/16/2015 7:10 PM, Richard Smith wrote: Attached patch makes RAV fully data-recursive when visiting statements, except in cases where the derived class could tell the difference (when it falls back to a norm

r253337 - Revert "Make FP_CONTRACT ON the default."

2015-11-17 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Tue Nov 17 09:40:10 2015 New Revision: 253337 URL: http://llvm.org/viewvc/llvm-project?rev=253337&view=rev Log: Revert "Make FP_CONTRACT ON the default." This reverts commit r253269. This leads to assert / segfault triggering on the following reduced example: float foo(float

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Manuel Klimek via cfe-commits
Repro: float foo(float U, float base, float cell) { return (U = 2 * base) - cell; } Preparing rollback of the CL. On Tue, Nov 17, 2015 at 2:46 PM Manuel Klimek wrote: > Note that due to this change we're hitting an assert at > lib/CodeGen/CGExprScalar.cpp:2570 in llvm::Value *tryEmitFMulAdd(cons

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Manuel Klimek via cfe-commits
Reverted in r253337. Failing test case in commit message. On Tue, Nov 17, 2015 at 4:39 PM Manuel Klimek wrote: > Repro: > float foo(float U, float base, float cell) { return (U = 2 * base) - cell; > } > Preparing rollback of the CL. > > On Tue, Nov 17, 2015 at 2:46 PM Manuel Klimek wrote: > >>

[PATCH] D14748: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Hans Wennborg via cfe-commits
hans created this revision. hans added reviewers: thakis, echristo. hans added a subscriber: cfe-commits. The tzcnt intrinsics are used non non-BMI targets by code (e.g. ffmpeg) that uses it as a potentially faster BSF. The TZCNT instruction is special in that it's encoded in a backward-compatib

r253350 - Add trivial utility to append -L arguments to linker step. NFC

2015-11-17 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Tue Nov 17 11:41:23 2015 New Revision: 253350 URL: http://llvm.org/viewvc/llvm-project?rev=253350&view=rev Log: Add trivial utility to append -L arguments to linker step. NFC Modified: cfe/trunk/include/clang/Driver/ToolChain.h cfe/trunk/lib/Driver/ToolChain.cpp cf

Re: [PATCH] D14744: PR10235: support for vector mode attributes + warning

2015-11-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I am a little bit confused -- this patch adds a deprecation warning for vector sizes and claims that the attribute is ignored (by placing it in the IgnoredAttributes group), but then provides the initial implementation for this functionality and makes use of the a

r253355 - ARM: fix mismatch between Clang and backend on exception type.

2015-11-17 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Tue Nov 17 12:27:27 2015 New Revision: 253355 URL: http://llvm.org/viewvc/llvm-project?rev=253355&view=rev Log: ARM: fix mismatch between Clang and backend on exception type. "-arch armv7k" is only normally used with a watchos target, but Clang doesn't stop you from givin

Re: [PATCH] D13263: Addition of __attribute__((pass_object_size)) to Clang

2015-11-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:829 @@ +828,3 @@ + if (Type > 3) { +S.Diag(E->getLocStart(), diag::err_attribute_argument_outof_range) + << Attr.getName() << 0 << 3 << E->getSourceRange(); >> I'm wondering why t

Re: [PATCH] D14748: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Nico Weber via cfe-commits
thakis added a comment. Looks good. The reasoning is that without this, projects will put in an `#if __clang__ no tzcnt` path (e.g. http://ffmpeg.org/pipermail/ffmpeg-devel/2015-November/183408.html), and with this patch they won't and in a few years when people use build flags that allow BMI

Re: [PATCH] D14748: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Sounds good to me. Weird, but fine :) -eric http://reviews.llvm.org/D14748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

r253358 - bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Nov 17 12:46:48 2015 New Revision: 253358 URL: http://llvm.org/viewvc/llvm-project?rev=253358&view=rev Log: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets The tzcnt intrinsics are used non non-BMI targets by code (e.g. ffmpeg) that uses it as a potentiall

Re: [PATCH] D14748: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Hans Wennborg via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253358: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets (authored by hans). Changed prior to commit: http://reviews.llvm.org/D14748?vs=40399&id=40411#toc Repository: rL LLVM http:/

Re: r253269 - Make FP_CONTRACT ON the default.

2015-11-17 Thread Renato Golin via cfe-commits
On 17 November 2015 at 15:47, Manuel Klimek wrote: > Reverted in r253337. Failing test case in commit message. And the bot is green again! :) Thanks! --renato ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: [PATCH] D14744: PR10235: support for vector mode attributes + warning

2015-11-17 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin added a comment. Thank you for prompt response! Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2765 @@ +2764,3 @@ +def warn_vector_mode_deprecated : Warning< + "specifying vector types with __attribute__ ((mode)) is deprecated, " + "use __attribute__ ((v

Re: [PATCH] D14744: PR10235: support for vector mode attributes + warning

2015-11-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2765 @@ +2764,3 @@ +def warn_vector_mode_deprecated : Warning< + "specifying vector types with __attribute__ ((mode)) is deprecated, " + "use __attribute__ ((vector_size)) instead">,

Re: [PATCH] D14748: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Craig Topper via cfe-commits
craig.topper added a subscriber: craig.topper. craig.topper added a comment. The summary of why this is ok is slightly misleading. The backend won't try to encode the TZCNT instruction when the BMI feature is not enabled. Notice this just maps the to the generic non-x86 specific __builtin_ctz. T

Re: [PATCH] D14748: bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets

2015-11-17 Thread Nico Weber via cfe-commits
On Tue, Nov 17, 2015 at 11:32 AM, Craig Topper wrote: > craig.topper added a subscriber: craig.topper. > craig.topper added a comment. > > The summary of why this is ok is slightly misleading. I read this as reason why programs might try to use this, not why this change here is correct. (This c

r253371 - [Lit Test] Updated 34 Lit tests to be C++11 compatible.

2015-11-17 Thread Charles Li via cfe-commits
Author: lcharles Date: Tue Nov 17 14:25:05 2015 New Revision: 253371 URL: http://llvm.org/viewvc/llvm-project?rev=253371&view=rev Log: [Lit Test] Updated 34 Lit tests to be C++11 compatible. Added expected diagnostics new to C++11. Expanded RUN line to: default, C++98/03 and C++11. Modified:

r253372 - Use !hasArg with two options instead of !hasArg && !hasArg.

2015-11-17 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Tue Nov 17 14:28:07 2015 New Revision: 253372 URL: http://llvm.org/viewvc/llvm-project?rev=253372&view=rev Log: Use !hasArg with two options instead of !hasArg && !hasArg. Thereby fixing a warning about failure to claim all args. Modified: cfe/trunk/lib/Driver/Tools.cpp

Re: [PATCH] D9600: Add scan-build python implementation

2015-11-17 Thread Laszlo Nagy via cfe-commits
rizsotto.mailinglist added a comment. In http://reviews.llvm.org/D9600#290031, @jroelofs wrote: > Thanks for re-uploading! thanks for your comments! :) most of your comments are about to embed it more into the clang build, test infrastructure. i think these are valid points! i would like to

[libcxx] r253376 - Add tests for the extended integer types - as required by LWG#2119

2015-11-17 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Nov 17 15:04:24 2015 New Revision: 253376 URL: http://llvm.org/viewvc/llvm-project?rev=253376&view=rev Log: Add tests for the extended integer types - as required by LWG#2119 Modified: libcxx/trunk/test/std/utilities/function.objects/unord.hash/integral.pass.cpp M

[PATCH] D14754: [Myriad]: insert -L paths into linker cmd only when they exist.

2015-11-17 Thread Douglas Katzman via cfe-commits
dougk created this revision. dougk added a reviewer: jyknight. dougk added a subscriber: cfe-commits. Herald added a subscriber: jyknight. http://reviews.llvm.org/D14754 Files: lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h lib/Driver/Tools.cpp test/Driver/Inputs/basic_myriad_tree/lib/

Re: [PATCH] D14737: Convert some ObjC msgSends to runtime calls

2015-11-17 Thread Pete Cooper via cfe-commits
pete updated this revision to Diff 40426. pete added a comment. Updated the driver test to ensure that the option is set for tvOS and watchOS. http://reviews.llvm.org/D14737 Files: include/clang/Basic/LangOptions.def include/clang/Basic/ObjCRuntime.h include/clang/Driver/Options.td lib/

Re: [PATCH] D14737: Convert some ObjC msgSends to runtime calls

2015-11-17 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/LangOptions.def:194 @@ -193,2 +193,3 @@ LANGOPT(ObjCAutoRefCount , 1, 0, "Objective-C automated reference counting") +LANGOPT(ObjCConvertMessagesToRuntimeCalls , 1, 0, "objc_* support for retain/release in t

Re: [PATCH] D14293: [libcxx] Add -fno-exceptions libcxx builders to zorg

2015-11-17 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. @rengolin: Gentle ping. Cheers, - Asiri http://reviews.llvm.org/D14293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r253382 - Fix bad variable name. project_root -> project_obj_root

2015-11-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Nov 17 15:48:29 2015 New Revision: 253382 URL: http://llvm.org/viewvc/llvm-project?rev=253382&view=rev Log: Fix bad variable name. project_root -> project_obj_root Modified: libcxx/trunk/test/libcxx/test/config.py Modified: libcxx/trunk/test/libcxx/test/config.py URL

[PATCH] D14756: Handle ARMv6-J as an alias, instead of fake architecture

2015-11-17 Thread A. Skrobov via cfe-commits
tyomitch created this revision. tyomitch added reviewers: rengolin, bogden, compnerd. tyomitch added a subscriber: cfe-commits. Herald added subscribers: rengolin, aemerson. Clang-side update, corresponding to D14755 http://reviews.llvm.org/D14756 Files: test/Driver/arm-cortex-cpus.c Index: t

r253386 - [CUDA] added include paths for both sides of CUDA compilation.

2015-11-17 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Nov 17 16:28:46 2015 New Revision: 253386 URL: http://llvm.org/viewvc/llvm-project?rev=253386&view=rev Log: [CUDA] added include paths for both sides of CUDA compilation. In order to compile a CUDA file clang must be able to find include files for both both host and device.

r253387 - [CUDA] Detect and link with CUDA's libdevice bitcode library.

2015-11-17 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Nov 17 16:28:50 2015 New Revision: 253387 URL: http://llvm.org/viewvc/llvm-project?rev=253387&view=rev Log: [CUDA] Detect and link with CUDA's libdevice bitcode library. - added detection of libdevice bitcode file and API to find one appropriate for the GPU we're compiling

r253385 - [CUDA] use -aux-triple to pass target triple of opposite side of compilation

2015-11-17 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Nov 17 16:28:40 2015 New Revision: 253385 URL: http://llvm.org/viewvc/llvm-project?rev=253385&view=rev Log: [CUDA] use -aux-triple to pass target triple of opposite side of compilation Clang needs to know target triple for both sides of compilation so that preprocessor macro

Re: [PATCH] D13144: [CUDA] propagate to CUDA sub-compilations target triple of opposite side.

2015-11-17 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253385: [CUDA] use -aux-triple to pass target triple of opposite side of compilation (authored by tra). Changed prior to commit: http://reviews.llvm.org/D13144?vs=40163&id=40432#toc Repository: rL LL

Re: [PATCH] D13170: [CUDA] Driver changes to pass flags needed to use detected CUDA installation.

2015-11-17 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253386: [CUDA] added include paths for both sides of CUDA compilation. (authored by tra). Changed prior to commit: http://reviews.llvm.org/D13170?vs=39860&id=40433#toc Repository: rL LLVM http://rev

Re: [PATCH] D14754: [Myriad]: insert -L paths into linker cmd only when they exist.

2015-11-17 Thread James Y Knight via cfe-commits
jyknight added inline comments. Comment at: lib/Driver/ToolChains.cpp:4319 @@ +4318,3 @@ + // This contains libc, libg (a superset of libc), libm, libstdc++, libssp. + SmallString<128> LibDir(GCCInstallation.getParentLibPath()); + if (Triple.getArch() == llvm::Triple::sparcel)

r253388 - [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-11-17 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Nov 17 16:28:52 2015 New Revision: 253388 URL: http://llvm.org/viewvc/llvm-project?rev=253388&view=rev Log: [CUDA] Added a wrapper header for inclusion of stock CUDA headers. Header files that come with CUDA are assuming split host/device compilation and are not usable by cl

Re: [PATCH] D14556: [CUDA] Detect and link with CUDA's libdevice bitcode library.

2015-11-17 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253387: [CUDA] Detect and link with CUDA's libdevice bitcode library. (authored by tra). Changed prior to commit: http://reviews.llvm.org/D14556?vs=39863&id=40434#toc Repository: rL LLVM http://revi

r253389 - [CUDA] Make CUDA compilation usable by default.

2015-11-17 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Nov 17 16:28:55 2015 New Revision: 253389 URL: http://llvm.org/viewvc/llvm-project?rev=253389&view=rev Log: [CUDA] Make CUDA compilation usable by default. Currently clang requires several additional command line options in order to enable new features needed during CUDA com

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-11-17 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253388: [CUDA] Added a wrapper header for inclusion of stock CUDA headers. (authored by tra). Changed prior to commit: http://reviews.llvm.org/D13171?vs=38574&id=40435#toc Repository: rL LLVM http:/

[PATCH] D14758: Handle ARMv7K as an alias, instead of fake architecture (NFC)

2015-11-17 Thread A. Skrobov via cfe-commits
tyomitch created this revision. tyomitch added reviewers: t.p.northover, rengolin. tyomitch added a subscriber: cfe-commits. Herald added subscribers: rengolin, aemerson. Clang-side update, corresponding to D14757 http://reviews.llvm.org/D14758 Files: lib/Driver/Tools.cpp Index: lib/Driver/To

r253390 - [Myriad]: -nostdlib implies -nostartfiles

2015-11-17 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Tue Nov 17 16:33:34 2015 New Revision: 253390 URL: http://llvm.org/viewvc/llvm-project?rev=253390&view=rev Log: [Myriad]: -nostdlib implies -nostartfiles Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/myriad-toolchain.c Modified: cfe/trunk/lib/Driver/T

Re: [PATCH] D14754: [Myriad]: insert -L paths into linker cmd only when they exist.

2015-11-17 Thread Douglas Katzman via cfe-commits
dougk updated this revision to Diff 40442. dougk marked 2 inline comments as done. dougk added a comment. changes per jyknight http://reviews.llvm.org/D14754 Files: lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h lib/Driver/Tools.cpp test/Driver/Inputs/basic_myriad_tree/lib/gcc/sparc-

r253398 - [modules] When a #include is mapped to a module import and appears somewhere

2015-11-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Nov 17 17:32:01 2015 New Revision: 253398 URL: http://llvm.org/viewvc/llvm-project?rev=253398&view=rev Log: [modules] When a #include is mapped to a module import and appears somewhere other than the top level, we issue an error. This breaks a fair amount of C++ code wrapp

[clang-tools-extra] r253399 - Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const"

2015-11-17 Thread Matthias Gehre via cfe-commits
Author: mgehre Date: Tue Nov 17 17:35:39 2015 New Revision: 253399 URL: http://llvm.org/viewvc/llvm-project?rev=253399&view=rev Log: Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const" Summary: The current matcher is implicitCastExpr(unless(hasParent(exp

Re: [PATCH] D14517: Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const"

2015-11-17 Thread Matthias Gehre via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253399: Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not… (authored by mgehre). Changed prior to commit: http://reviews.llvm.org/D14517?vs=39948&id=40446#toc Repository: r

Re: r253398 - [modules] When a #include is mapped to a module import and appears somewhere

2015-11-17 Thread David Blaikie via cfe-commits
On Tue, Nov 17, 2015 at 3:32 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Tue Nov 17 17:32:01 2015 > New Revision: 253398 > > URL: http://llvm.org/viewvc/llvm-project?rev=253398&view=rev > Log: > [modules] When a #include is mapped to a module imp

Re: [PATCH] D14582: [clang-tidy] cppcoreguidelines-pro-bounds-pointer-arithmetic: ignore generated pointer arithmetic

2015-11-17 Thread Matthias Gehre via cfe-commits
mgehre updated this revision to Diff 40448. mgehre added a comment. Simplified with Alex suggestion. Thanks! http://reviews.llvm.org/D14582 Files: clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp test/clang-tidy/cppcoreguidelines-pro-bounds-pointer-arithmetic.cpp Index: tes

[clang-tools-extra] r253401 - [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index

2015-11-17 Thread Matthias Gehre via cfe-commits
Author: mgehre Date: Tue Nov 17 17:43:20 2015 New Revision: 253401 URL: http://llvm.org/viewvc/llvm-project?rev=253401&view=rev Log: [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index Summary: This check flags all array subscriptions on static arrays and std::arrays that eit

Re: [PATCH] D13746: [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index

2015-11-17 Thread Matthias Gehre via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253401: [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index (authored by mgehre). Changed prior to commit: http://reviews.llvm.org/D13746?vs=39953&id=40449#toc Repository: rL LLV

Re: [PATCH] D13834: Produce a better diagnostic for global register variables

2015-11-17 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. Thanks, I'll commit this patch shortly. If it makes the code cleaner, I can define enums in TargetInfo and change validateGlobalRegisterVariable to return one of them in a follow-up patch. http://reviews.llvm.org/D13834 _

Re: r253398 - [modules] When a #include is mapped to a module import and appears somewhere

2015-11-17 Thread Richard Smith via cfe-commits
On Tue, Nov 17, 2015 at 3:40 PM, David Blaikie wrote: > On Tue, Nov 17, 2015 at 3:32 PM, Richard Smith via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: rsmith >> Date: Tue Nov 17 17:32:01 2015 >> New Revision: 253398 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=253398&vie

r253404 - [PGO] Removed unused code. [NFC]

2015-11-17 Thread Betul Buyukkurt via cfe-commits
Author: betulb Date: Tue Nov 17 18:14:08 2015 New Revision: 253404 URL: http://llvm.org/viewvc/llvm-project?rev=253404&view=rev Log: [PGO] Removed unused code. [NFC] Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.h Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.h URL: http://llvm.org/viewvc/llvm-p

Re: r253398 - [modules] When a #include is mapped to a module import and appears somewhere

2015-11-17 Thread David Blaikie via cfe-commits
On Tue, Nov 17, 2015 at 4:15 PM, Richard Smith wrote: > On Tue, Nov 17, 2015 at 3:40 PM, David Blaikie wrote: > >> On Tue, Nov 17, 2015 at 3:32 PM, Richard Smith via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> Author: rsmith >>> Date: Tue Nov 17 17:32:01 2015 >>> New Revision: 253

Re: [PATCH] D13834: Produce a better diagnostic for global register variables

2015-11-17 Thread Akira Hatanaka via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253405: Produce a better diagnostic for global register variables. (authored by ahatanak). Changed prior to commit: http://reviews.llvm.org/D13834?vs=39774&id=40451#toc Repository: rL LLVM http://re

r253405 - Produce a better diagnostic for global register variables.

2015-11-17 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Tue Nov 17 18:15:28 2015 New Revision: 253405 URL: http://llvm.org/viewvc/llvm-project?rev=253405&view=rev Log: Produce a better diagnostic for global register variables. Currently, when there is a global register variable in a program that is bound to an invalid register,

r253410 - Fix for use-after-free which caused test failure in cuda-detect.cu.

2015-11-17 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Nov 17 18:37:41 2015 New Revision: 253410 URL: http://llvm.org/viewvc/llvm-project?rev=253410&view=rev Log: Fix for use-after-free which caused test failure in cuda-detect.cu. Return std::string itself instead StringRef to a temporary std::string. Modified: cfe/trunk/li

Re: [clang-tools-extra] r253401 - [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index

2015-11-17 Thread Bruno Cardoso Lopes via cfe-commits
Hi Matthias, This is failing on the green dragon bot: http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/13184/ http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/13184/consoleFull#54616856949ba4694-19c4-4d7e-bec5-911270d8a58c Thanks, On Tue, Nov 17, 2015 at 3:43

Re: [PATCH] D13488: [analyzer] Assume escape is possible through system functions taking void*

2015-11-17 Thread Anna Zaks via cfe-commits
zaks.anna closed this revision. zaks.anna added a comment. Committed in r251449. http://reviews.llvm.org/D13488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r252853 - libclang: add clang_Cursor_getCXXManglings

2015-11-17 Thread Reid Kleckner via cfe-commits
This introduced a memory leak, which I'm testing a patch for. Aside from that, did you get Doug to review this? We probably want to be really careful about changing libclang's C API, so you should be more cautious here than you would be normally. On Wed, Nov 11, 2015 at 7:57 PM, Saleem Abdulrasoo

r253418 - Try to fix leak in CXStringSet from r252853

2015-11-17 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Nov 17 19:06:39 2015 New Revision: 253418 URL: http://llvm.org/viewvc/llvm-project?rev=253418&view=rev Log: Try to fix leak in CXStringSet from r252853 Modified: cfe/trunk/tools/libclang/CXString.cpp Modified: cfe/trunk/tools/libclang/CXString.cpp URL: http://llvm.org/

Re: r253410 - Fix for use-after-free which caused test failure in cuda-detect.cu.

2015-11-17 Thread David Blaikie via cfe-commits
On Tue, Nov 17, 2015 at 4:37 PM, Artem Belevich via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: tra > Date: Tue Nov 17 18:37:41 2015 > New Revision: 253410 > > URL: http://llvm.org/viewvc/llvm-project?rev=253410&view=rev > Log: > Fix for use-after-free which caused test failure in c

Re: [PATCH] D14652: [analyzer] Improve modeling of static initializers.

2015-11-17 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: test/Analysis/inline.cpp:308 @@ +307,3 @@ +clang_analyzer_eval(0 != void_string); // expected-warning{{TRUE}} +clang_analyzer_eval(0 != ((char *)void_string)[1]); // expected-warning{{TRUE}} + } Why are we che

r253420 - Don't expose iterators into the list of types on the ASTContext; these are

2015-11-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Nov 17 19:19:02 2015 New Revision: 253420 URL: http://llvm.org/viewvc/llvm-project?rev=253420&view=rev Log: Don't expose iterators into the list of types on the ASTContext; these are unsafe, since many operations on the types can trigger lazy deserialization of more types

Re: r253410 - Fix for use-after-free which caused test failure in cuda-detect.cu.

2015-11-17 Thread Artem Belevich via cfe-commits
getLibDeviceFile only used once per device-side compilation in driver, so returning the string should be OK here. BTW, would copy elision kick in when I use std::string Path = getLibDeviceFile("foo"); ? --Artem On Tue, Nov 17, 2015 at 5:12 PM, David Blaikie wrote: > > > On Tue, Nov 17, 2015 at

Re: r253410 - Fix for use-after-free which caused test failure in cuda-detect.cu.

2015-11-17 Thread David Blaikie via cfe-commits
On Tue, Nov 17, 2015 at 5:35 PM, Artem Belevich wrote: > getLibDeviceFile only used once per device-side compilation in driver, so > returning the string should be OK here. > > BTW, would copy elision kick in when I use std::string Path = > getLibDeviceFile("foo"); ? > Yeah - if the caller needs

[clang-tools-extra] r253428 - Revert r253401, "[clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index"

2015-11-17 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue Nov 17 20:14:35 2015 New Revision: 253428 URL: http://llvm.org/viewvc/llvm-project?rev=253428&view=rev Log: Revert r253401, "[clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index" cppcoreguidelines-pro-bounds-constant-array-index.cpp is failing in sev

Re: [PATCH] D13746: [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index

2015-11-17 Thread NAKAMURA Takumi via cfe-commits
chapuni added a subscriber: chapuni. chapuni added a comment. I have reverted in r253428, since I can reproduce failure locally. I'll investigate later, too. Comment at: clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-bounds-constant-array-index.cpp:2 @@ +1,3 @@

Re: [PATCH] D14737: Convert some ObjC msgSends to runtime calls

2015-11-17 Thread Stephane Moore via cfe-commits
stephanemoore added a subscriber: stephanemoore. stephanemoore added a comment. I hope that it's not presumptuous of me to inquire but I was wondering if the intent of this patch is to optimize calls to RR methods (and alloc) in non-ARC code? Would I be correct in assuming that clang will alread

Re: [PATCH] D14737: Convert some ObjC msgSends to runtime calls

2015-11-17 Thread John McCall via cfe-commits
rjmccall added a comment. In http://reviews.llvm.org/D14737#291481, @stephanemoore wrote: > I hope that it's not presumptuous of me to inquire but I was wondering if the > intent of this patch is to optimize calls to RR methods (and alloc) in > non-ARC code? Would I be correct in assuming that

r253431 - [NFC] Change the evaluation context of a non-type default template argument from Unevaluated to ConstantEvaluated.

2015-11-17 Thread Faisal Vali via cfe-commits
Author: faisalv Date: Tue Nov 17 22:29:22 2015 New Revision: 253431 URL: http://llvm.org/viewvc/llvm-project?rev=253431&view=rev Log: [NFC] Change the evaluation context of a non-type default template argument from Unevaluated to ConstantEvaluated. This patch emits a more appropriate (but stil

Re: [PATCH] D14652: [analyzer] Improve modeling of static initializers.

2015-11-17 Thread Yury Gribov via cfe-commits
ygribov added inline comments. Comment at: test/Analysis/inline.cpp:308 @@ +307,3 @@ +clang_analyzer_eval(0 != void_string); // expected-warning{{TRUE}} +clang_analyzer_eval(0 != ((char *)void_string)[1]); // expected-warning{{TRUE}} + } zaks.anna wrote:

r253434 - BuildUniversalActions(): Prune obsolete \param(s). [-Wdocumentation]

2015-11-17 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue Nov 17 23:15:21 2015 New Revision: 253434 URL: http://llvm.org/viewvc/llvm-project?rev=253434&view=rev Log: BuildUniversalActions(): Prune obsolete \param(s). [-Wdocumentation] FIXME: Describe BAInputs. Modified: cfe/trunk/include/clang/Driver/Driver.h Modified: cf

[libcxxabi] r253435 - c++abi: use __builtin_offsetof instead of offsetof

2015-11-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Nov 17 23:33:38 2015 New Revision: 253435 URL: http://llvm.org/viewvc/llvm-project?rev=253435&view=rev Log: c++abi: use __builtin_offsetof instead of offsetof Use `__builtin_offsetof` in place of `offsetof`. Certain environments provide a macro definition of `offsetof`

r253440 - Update for llvm change.

2015-11-17 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Wed Nov 18 00:54:13 2015 New Revision: 253440 URL: http://llvm.org/viewvc/llvm-project?rev=253440&view=rev Log: Update for llvm change. Modified: cfe/trunk/include/clang/Lex/HeaderSearchOptions.h cfe/trunk/lib/CodeGen/CGObjCMac.cpp Modified: cfe/trunk/include/clang/L

[clang-tools-extra] r253442 - Replace a dyn_cast with isa where the result was only being used as a boolean. NFC.

2015-11-17 Thread Craig Topper via cfe-commits
Author: ctopper Date: Wed Nov 18 01:08:11 2015 New Revision: 253442 URL: http://llvm.org/viewvc/llvm-project?rev=253442&view=rev Log: Replace a dyn_cast with isa where the result was only being used as a boolean. NFC. Modified: clang-tools-extra/trunk/clang-tidy/modernize/UseDefaultCheck.cpp