Re: [PATCH] D17140: [clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems

2016-02-11 Thread Daniel Marjamäki via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260665: [clang-tidy] improve misc-misplaced-widening-cast so it also detects… (authored by danielmarjamaki). Changed prior to commit: http://reviews.llvm.org/D17140?vs=47640&id=47771#toc Repository:

Re: [PATCH] D15920: [CMake] Add option to switch default C++ stdlib

2016-02-11 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. In http://reviews.llvm.org/D15920#350401, @beanz wrote: > Can you commit the test changes in a separate commit before committing the > other changes? That way if something goes wrong the diff for the meat of the > patch is a small diff. Committed seperately in http:/

[clang-tools-extra] r260665 - [clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems.

2016-02-11 Thread Daniel Marjamaki via cfe-commits
Author: danielmarjamaki Date: Fri Feb 12 01:51:10 2016 New Revision: 260665 URL: http://llvm.org/viewvc/llvm-project?rev=260665&view=rev Log: [clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems. Reviewers: alexfh Subscribers: cfe-commits Differential Revis

r260662 - [CMake] Add option to switch default C++ stdlib

2016-02-11 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Fri Feb 12 01:48:37 2016 New Revision: 260662 URL: http://llvm.org/viewvc/llvm-project?rev=260662&view=rev Log: [CMake] Add option to switch default C++ stdlib With this option one can optionally override the architecture dependent default library to use if no -stdlib= is p

r260661 - tests: Add explicit -stdlib=libstdc++ to tests that require it

2016-02-11 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Fri Feb 12 01:48:28 2016 New Revision: 260661 URL: http://llvm.org/viewvc/llvm-project?rev=260661&view=rev Log: tests: Add explicit -stdlib=libstdc++ to tests that require it This will be needed for the next commit that allows to switch the default C++ library which would o

Re: [PATCH] D15920: [CMake] Add option to switch default C++ stdlib

2016-02-11 Thread Jonas Hahnfeld via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260662: [CMake] Add option to switch default C++ stdlib (authored by Hahnfeld). Changed prior to commit: http://reviews.llvm.org/D15920?vs=47441&id=47770#toc Repository: rL LLVM http://reviews.llvm.

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-11 Thread Andy Gibbs via cfe-commits
AndyG added a comment. To be honest, the simple answer is because it was just as easy to do with nesting as without (the code would still need to track the appearance of left and right parentheses in order to correctly parse to the closing right-parenthesis of the macro invocation in any case).

Re: [PATCH] D17170: [OPENMP] Codegen for distribute directive

2016-02-11 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.h:669-692 @@ -668,1 +668,26 @@ + /// \brief Schedule types for 'omp for' loops (these enumerators are taken from + /// the enum sched_type in kmp.h). + enum OpenMPSchedType { + /// \brief Lower boun

Re: [PATCH] D17148: [OPENMP] Basic teams directive implementation

2016-02-11 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4378-4398 @@ +4377,23 @@ + + const OMPNumTeamsClause *NT = TD.getSingleClause(); + const OMPThreadLimitClause *TL = TD.getSingleClause(); + if (NT || TL) { +NumTeamsVal = (NT) ? CGF.EmitScalarExpr(NT

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Jorge Teixeira via cfe-commits
Hubert, Thanks for the code review. Over the weekend I'll try to learn a bit more about using Phabricator, but for now I'll reply here, and attach a new patch. a) *_MANT_DIG < 1 --> *_MANT_DIG < 2 That is a stricter check and I agree with your rationale. Done. b) _MIN_EXP --> FLT_MIN_EXP Done.

Re: [PATCH] D17183: Make TargetInfo store an actual DataLayout instead of a string.

2016-02-11 Thread James Y Knight via cfe-commits
jyknight added a comment. In http://reviews.llvm.org/D17183#351065, @yaron.keren wrote: > We have tried to keep one copy of DataLayout around > http://reviews.llvm.org/D11103 > Can it share the Module->getDataLayout() ? We're at the beginning of clang here, before preprocessing. There's no l

Re: [PATCH] D17183: Make TargetInfo store an actual DataLayout instead of a string.

2016-02-11 Thread Yaron Keren via cfe-commits
yaron.keren added a subscriber: yaron.keren. yaron.keren added a comment. We have tried to keep one copy of http://reviews.llvm.org/D11103 Can it share the Module->getDataLayout() ? http://reviews.llvm.org/D17183 ___ cfe-commits mailing list cfe-com

Re: [PATCH] D16308: clang-tidy Enhance readability-simplify-boolean-expr check to handle implicit conversions of integral types to bool and member pointers

2016-02-11 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. If someone could review the changes and commit this corrected version for me, that would be great. Patch by Richard Thomson. http://reviews.llvm.org/D16308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D16529: [clang-tidy] Add modernize-raw-string-literal check

2016-02-11 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. Squeak? http://reviews.llvm.org/D16529 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16953: Enhance clang-tidy modernize-redundant-void-arg check to apply fixes to header files

2016-02-11 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. Squeak? http://reviews.llvm.org/D16953 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r252474 - Create install targets for scan-build and scan-view

2016-02-11 Thread Jonathan Roelofs via cfe-commits
On 2/11/16 7:24 PM, Hans Wennborg wrote: On Mon, Nov 9, 2015 at 8:12 AM, Jonathan Roelofs via cfe-commits wrote: Author: jroelofs Date: Mon Nov 9 10:12:56 2015 New Revision: 252474 URL: http://llvm.org/viewvc/llvm-project?rev=252474&view=rev Log: Create install targets for scan-build and sc

[PATCH] D17183: Make TargetInfo store an actual DataLayout instead of a string.

2016-02-11 Thread James Y Knight via cfe-commits
jyknight created this revision. jyknight added a reviewer: echristo. jyknight added a subscriber: cfe-commits. Use it to calculate UserLabelPrefix, instead of specifying it (often incorrectly). Note that the *actual* user label prefix has always come from the DataLayout, and is handled within LLV

r260647 - Update functions in clang supplied headers to use the compiler reserved

2016-02-11 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Feb 11 20:22:53 2016 New Revision: 260647 URL: http://llvm.org/viewvc/llvm-project?rev=260647&view=rev Log: Update functions in clang supplied headers to use the compiler reserved namespace for arguments. Modified: cfe/trunk/lib/Headers/__clang_cuda_cmath.h cfe/

Re: r252474 - Create install targets for scan-build and scan-view

2016-02-11 Thread Hans Wennborg via cfe-commits
On Mon, Nov 9, 2015 at 8:12 AM, Jonathan Roelofs via cfe-commits wrote: > Author: jroelofs > Date: Mon Nov 9 10:12:56 2015 > New Revision: 252474 > > URL: http://llvm.org/viewvc/llvm-project?rev=252474&view=rev > Log: > Create install targets for scan-build and scan-view > > http://reviews.llvm.o

Re: [libcxx] r260515 - Re-commit "Introduce a cmake module to figure out whether we need to link with libatomic."

2016-02-11 Thread Hans Wennborg via cfe-commits
I'm following the thread on r260235 to figure out what to merge in this series. On Thu, Feb 11, 2016 at 7:09 AM, Vasileios Kalintiris via cfe-commits wrote: > Hi Hans, > > Can we merge this on the release branch? It's a re-commit of D16613's patch > with the an additional option (-gcc-toolchain)

[PATCH] D17180: Fix failing python bindings test

2016-02-11 Thread Jonathan B Coe via cfe-commits
jbcoe created this revision. jbcoe added a reviewer: akyrtzi. jbcoe added a subscriber: cfe-commits. jbcoe set the repository for this revision to rL LLVM. Order of compilation database commands has changed causing test failure. Reordering fixes the test `cindex.test_cdb.test_all_compilecommand`

Re: [PATCH] D16517: ClangTidy check to flag uninitialized builtin and pointer fields.

2016-02-11 Thread Felix Berger via cfe-commits
flx added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:206 @@ +205,3 @@ + // Do not propose fixes in macros since we cannot place them correctly. + if (Ctor->getLocStart().isMacroID()) +return; alexfh wrote: > IIUC wha

Re: [PATCH] D16517: ClangTidy check to flag uninitialized builtin and pointer fields.

2016-02-11 Thread Felix Berger via cfe-commits
flx updated this revision to Diff 47757. flx marked 2 inline comments as done. http://reviews.llvm.org/D16517 Files: clang-tidy/cppcoreguidelines/CMakeLists.txt clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp clang-tidy/

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Hubert Tong via cfe-commits
Hi Jorge, I responded to the initial commit with some comments here: http://reviews.llvm.org/rL260577 -- HT On Thu, Feb 11, 2016 at 7:53 PM, Jorge Teixeira wrote: > > You'll also need to change to only provide DECIMAL_DIG in C99 > onwards. > Done! > > > All of our -std versions are that stand

[PATCH] D17179: [OpenMP] Rename the offload entry points.

2016-02-11 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, hfinkel, arpith-jacob, carlo.bertolli, kkwli0. sfantao added subscribers: caomhin, fraggamuffin, cfe-commits. Unlike other outlined regions in OpenMP, offloading entry points have to have be visible (external linkage) for the device

Re: [PATCH] D16973: Fix ICE with constexpr and friend functions

2016-02-11 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM, thanks! http://reviews.llvm.org/D16973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-11 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. Comment at: lib/Lex/PPMacroExpansion.cpp:1438-1440 @@ -1432,3 +1437,5 @@ - // Get the module name. - PP.LexNonComment(Tok); + // It is possible that the macro invocation has a multiple-nested argument, + // for example: __has_featureX))

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Richard Smith via cfe-commits
On Thu, Feb 11, 2016 at 4:53 PM, Jorge Teixeira wrote: >> You'll also need to change to only provide DECIMAL_DIG in C99 >> onwards. > Done! > >> All of our -std versions are that standard plus applicable Defect >> Reports. So -std=c89 includes TC1 and TC2, but not Amendment 1 (we >> have -std=c9

r260639 - : do not define DECIMAL_DIG in -std=c89 mode; this macro was added in C99.

2016-02-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 11 19:15:33 2016 New Revision: 260639 URL: http://llvm.org/viewvc/llvm-project?rev=260639&view=rev Log: : do not define DECIMAL_DIG in -std=c89 mode; this macro was added in C99. Patch by Jorge Teixeira! Modified: cfe/trunk/lib/Headers/float.h cfe/trunk/test

r260637 - UsersManual: update clang-cl commands

2016-02-11 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Feb 11 19:01:37 2016 New Revision: 260637 URL: http://llvm.org/viewvc/llvm-project?rev=260637&view=rev Log: UsersManual: update clang-cl commands Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL: http://llvm.org/viewvc/llvm-project

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Jorge Teixeira via cfe-commits
> You'll also need to change to only provide DECIMAL_DIG in C99 > onwards. Done! > All of our -std versions are that standard plus applicable Defect > Reports. So -std=c89 includes TC1 and TC2, but not Amendment 1 (we > have -std=c94 for that, but the only difference from our C89 mode is > the a

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-11 Thread Justin Lebar via cfe-commits
jlebar added a comment. lgtm http://reviews.llvm.org/D16870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-11 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 47753. tra marked 14 inline comments as done. tra added a comment. Addressed @jlebar's comments. http://reviews.llvm.org/D16870 Files: include/clang/Sema/Sema.h lib/Sema/SemaCUDA.cpp lib/Sema/SemaOverload.cpp test/CodeGenCUDA/function-overload.cu test

Re: r260333 - This patch adds doxygen comments for all the intrinsincs in the header file f16cintrin.h. The doxygen comments are automatically generated based on Sony's intrinsics document.

2016-02-11 Thread Eric Christopher via cfe-commits
No worries, I got it here: dzur:~/sources/llvm/tools/clang> git svn dcommit Committing to https://llvm.org/svn/llvm-project/cfe/trunk ... M lib/Headers/f16cintrin.h Committed r260631 Thanks! -eric On Thu, Feb 11, 2016 at 2:20 PM Romanova, Katya < katya_roman...@playstation.sony.com> wrote: >

r260631 - Use __ before argument names in provided headers.

2016-02-11 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Feb 11 18:32:23 2016 New Revision: 260631 URL: http://llvm.org/viewvc/llvm-project?rev=260631&view=rev Log: Use __ before argument names in provided headers. Modified: cfe/trunk/lib/Headers/f16cintrin.h Modified: cfe/trunk/lib/Headers/f16cintrin.h URL: http://llvm

r260630 - [sancov] improved object files handling.

2016-02-11 Thread Mike Aizatsky via cfe-commits
Author: aizatsky Date: Thu Feb 11 18:29:45 2016 New Revision: 260630 URL: http://llvm.org/viewvc/llvm-project?rev=260630&view=rev Log: [sancov] improved object files handling. Documentation change for: http://reviews.llvm.org/D17169 Differential Revision: http://reviews.llvm.org/D17175 Modified

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-11 Thread Jingyue Wu via cfe-commits
jingyue added a comment. I'll defer to Justin's approval. http://reviews.llvm.org/D16870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r246985 - Compute and preserve alignment more faithfully in IR-generation.

2016-02-11 Thread Hans Wennborg via cfe-commits
On Tue, Sep 8, 2015 at 1:06 AM, John McCall via cfe-commits wrote: > Author: rjmccall > Date: Tue Sep 8 03:05:57 2015 > New Revision: 246985 > > URL: http://llvm.org/viewvc/llvm-project?rev=246985&view=rev > Log: > Compute and preserve alignment more faithfully in IR-generation. Might be worth m

Re: [PATCH] D15654: A Python code model for C++ used to drive code generators

2016-02-11 Thread Jonathan B Coe via cfe-commits
jbcoe updated this revision to Diff 47747. jbcoe added a comment. Add missing test for types - apologies for noise. http://reviews.llvm.org/D15654 Files: bindings/python/clang/cppmodel.py bindings/python/tests/cppmodel/__init__.py bindings/python/tests/cppmodel/test_classes.py bindings/

Re: [PATCH] D15654: A Python code model for C++ used to drive code generators

2016-02-11 Thread Jonathan B Coe via cfe-commits
jbcoe updated this revision to Diff 47745. jbcoe added a comment. I've added more python classes to handle types and free functions. http://reviews.llvm.org/D15654 Files: bindings/python/clang/cppmodel.py bindings/python/tests/cppmodel/__init__.py bindings/python/tests/cppmodel/test_class

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Richard Smith via cfe-commits
On Thu, Feb 11, 2016 at 3:42 PM, Jorge Teixeira wrote: > Richard, > > Thanks and got it re: test filename and hosted mode. > > 1) AFAIK, C89/C90 does not define DECIMAL_DIG, so here is a revised > patch, with minor comment modifications to explicitly list the (draft) > normative references that I

Re: [libcxx] r260570 - Work around regression in glibc 2.22: request that glibc provides the correct

2016-02-11 Thread Richard Smith via cfe-commits
This should be less broken in r260622. We no longer assume that glibc provides non-broken declarations of the functions. =( On Thu, Feb 11, 2016 at 3:50 PM, Richard Smith wrote: > The problem here is that your version of glibc has broken clang > support -- see https://sourceware.org/ml/glibc-cvs

[libcxx] r260622 - Instead of asking glibc to provide correct C++ signatures for

2016-02-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 11 17:51:02 2016 New Revision: 260622 URL: http://llvm.org/viewvc/llvm-project?rev=260622&view=rev Log: Instead of asking glibc to provide correct C++ signatures for functions, ask it whether it did provide them after the fact. Some versions of glibc fail to compile i

Re: [libcxx] r260570 - Work around regression in glibc 2.22: request that glibc provides the correct

2016-02-11 Thread Richard Smith via cfe-commits
The problem here is that your version of glibc has broken clang support -- see https://sourceware.org/ml/glibc-cvs/2014-q4/msg00215.html It looks like we may need Clang to start claiming to be GCC 4.4 or later to work around these glibc issues. On Thu, Feb 11, 2016 at 2:58 PM, Alexey Samsonov wr

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Jorge Teixeira via cfe-commits
Richard, Thanks and got it re: test filename and hosted mode. 1) AFAIK, C89/C90 does not define DECIMAL_DIG, so here is a revised patch, with minor comment modifications to explicitly list the (draft) normative references that I used. 2) This might also be a good time to ask you what does clang

r260617 - Remove decision logic for old NetBSD development versions, the 7.0

2016-02-11 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Thu Feb 11 17:35:03 2016 New Revision: 260617 URL: http://llvm.org/viewvc/llvm-project?rev=260617&view=rev Log: Remove decision logic for old NetBSD development versions, the 7.0 release made this obsolete. Modified: cfe/trunk/lib/Driver/ToolChains.cpp cfe/trunk/lib/Dr

Re: [PATCH] D17043: Check that the result of a library call w/o side effects is used

2016-02-11 Thread Joerg Sonnenberger via cfe-commits
On Wed, Feb 10, 2016 at 09:26:44PM -0500, Sidney San Martín via cfe-commits wrote: > > On Feb 10, 2016, at 8:05 PM, Joerg Sonnenberger > > wrote: > > > > I'm not a big fan of this. Those calls are by the very definition > > harmless, so they aggrevate the existing problem of stupid annotation.

r260616 - Now that Sparc/Sparc64 backend is mostly usable, provide the same

2016-02-11 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Thu Feb 11 17:18:36 2016 New Revision: 260616 URL: http://llvm.org/viewvc/llvm-project?rev=260616&view=rev Log: Now that Sparc/Sparc64 backend is mostly usable, provide the same linking defaults as other NetBSD targets, i.e. compiler_rt-in-libc and libc++ as STL. Modified:

Re: [PATCH] D16376: clang-tidy check: misc-deprecated-special-member-functions

2016-02-11 Thread Jonathan B Coe via cfe-commits
jbcoe added a comment. Tests are now more thorough and more readable. Insertions are always pre-insertions as getting the correct post-insertion position is ambiguous if end-of-line comments exist. Repository: rL LLVM http://reviews.llvm.org/D16376 ___

Re: [PATCH] D16376: clang-tidy check: misc-deprecated-special-member-functions

2016-02-11 Thread Jonathan B Coe via cfe-commits
jbcoe retitled this revision from "clang-tidy check: rule-of-five" to "clang-tidy check: misc-deprecated-special-member-functions". jbcoe updated the summary for this revision. jbcoe set the repository for this revision to rL LLVM. jbcoe updated this revision to Diff 47735. jbcoe added a comment.

Re: [Diffusion] rL260577: In C11, provide macros FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, and LDBL_DECIMAL_DIG…

2016-02-11 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast added inline comments. /cfe/trunk/test/Headers/float.c:113 This check is invalid. The requirement that the set of values of the "smaller" types is a subset of the set of values the "larger" type does not establish the relationship being checked here. In particular, a larg

Re: [PATCH] D17146: [libcxx] locale portability refactor

2016-02-11 Thread Ben Craig via cfe-commits
bcraig added a comment. In http://reviews.llvm.org/D17146#350382, @mclow.lists wrote: > > I'm open to recommendations on ways to test this that are better than > > "Submit, watch build bots, revert as necessary". > > > My suggestion is to do this incrementally. > Implement the infrastructure bi

Re: [libcxx] r260570 - Work around regression in glibc 2.22: request that glibc provides the correct

2016-02-11 Thread Alexey Samsonov via cfe-commits
I see bogus boostrap build failures when we're trying to use just-built Clang to build libc++: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/22540/steps/bootstrap%20clang/logs/stdio Do you think it can be related to one of your changes? I'm pretty sure the contents of /usr/inclu

Re: [Diffusion] rL260577: In C11, provide macros FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, and LDBL_DECIMAL_DIG…

2016-02-11 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast added a subscriber: cfe-commits. Users: rsmith (Author) http://reviews.llvm.org/rL260577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17166: [Sema] More changes to fix Objective-C fallout from r249995.

2016-02-11 Thread George Burgess IV via cfe-commits
george.burgess.iv accepted this revision. george.burgess.iv added a comment. This revision is now accepted and ready to land. Sorry that the change to overload resolution turned out to be problematic. :) One nit, and this LGTM. Comment at: lib/Sema/SemaExpr.cpp:7580 @@ +7579,3

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-11 Thread Justin Lebar via cfe-commits
jlebar added a comment. Mostly comments on comments. Comment at: lib/Sema/SemaCUDA.cpp:71 @@ -70,3 +70,3 @@ // H - handled in (x) -// Preferences: b-best, f-fallback, l-last resort, n-never. +// Preferences: +:native, *:host-device, o:same side, .:wrong side, -:never. //

r260610 - Remove bogus check that larger floating point types have smaller minimum

2016-02-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 11 16:18:10 2016 New Revision: 260610 URL: http://llvm.org/viewvc/llvm-project?rev=260610&view=rev Log: Remove bogus check that larger floating point types have smaller minimum normalized exponents. That's not true for double versus double double. Modified: cfe/tr

RE: r260333 - This patch adds doxygen comments for all the intrinsincs in the header file f16cintrin.h. The doxygen comments are automatically generated based on Sony's intrinsics document.

2016-02-11 Thread Romanova, Katya via cfe-commits
Sure. I’ll change it. Do you mind if I do it when I’m back from vacation (i.e. a couple of weeks from now)? I will send a patch. Thank you! Katya. From: Eric Christopher [mailto:echri...@gmail.com] Sent: Wednesday, February 10, 2016 5:08 PM To: Romanova, Katya; cfe-commits@lists.llvm.org Subject:

r260608 - [analyzer] Improve pattern matching in ObjCDealloc checker.

2016-02-11 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 11 16:13:20 2016 New Revision: 260608 URL: http://llvm.org/viewvc/llvm-project?rev=260608&view=rev Log: [analyzer] Improve pattern matching in ObjCDealloc checker. Look through PseudoObjectExpr and OpaqueValueExprs when scanning for release-like operations. This co

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-11 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM Please also add a test that a `-Weverything` on the command line can be overridden by a `#pragma clang diagnostic ignored "-Weverything"`, even for a diagnostic with no warning flag. (Th

Re: Linux-abi group

2016-02-11 Thread Joerg Sonnenberger via cfe-commits
On Thu, Feb 11, 2016 at 10:50:29AM -0500, Ed Maste via llvm-commits wrote: > On 8 February 2016 at 18:08, Joseph Myers wrote: > > On Mon, 8 Feb 2016, H.J. Lu wrote: > > > >> >> I was referring to program properties: > >> >> > >> >> https://groups.google.com/forum/#!topic/generic-abi/fyIXttIsYc8 >

Re: [PATCH] D16544: [libcxx] Framework to allow testing of static libc++abi

2016-02-11 Thread Ben Craig via cfe-commits
bcraig added inline comments. Comment at: test/libcxx/test/config.py:469 @@ +468,3 @@ +if cxx_library_root: +abs_path = cxx_library_root + "/libc++.a" +self.cxx.link_flags += [abs_path] EricWF wrote: > Why no

[libcxx] r260601 - Fix LWG issue 2469 - Use piecewise construction in unordered_map::operator[].

2016-02-11 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Feb 11 15:45:53 2016 New Revision: 260601 URL: http://llvm.org/viewvc/llvm-project?rev=260601&view=rev Log: Fix LWG issue 2469 - Use piecewise construction in unordered_map::operator[]. unordered_map's allocator may only be used to construct objects of 'value_type', or in

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-11 Thread Artem Belevich via cfe-commits
tra requested a review of this revision. tra added a comment. This revision is now accepted and ready to land. @jingyue, @jlebar: can you take a look at the updated version? http://reviews.llvm.org/D16870 ___ cfe-commits mailing list cfe-commits@lis

[PATCH] D17170: [OPENMP] Codegen for distribute directive

2016-02-11 Thread Carlo Bertolli via cfe-commits
carlo.bertolli created this revision. carlo.bertolli added reviewers: ABataev, fraggamuffin, kkwli0. carlo.bertolli added subscribers: sfantao, arpith-jacob, cfe-commits. carlo.bertolli set the repository for this revision to rL LLVM. This patch provide basic implementation of codegen for teams di

r260596 - Relax recently added clang version checks.

2016-02-11 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Thu Feb 11 15:31:51 2016 New Revision: 260596 URL: http://llvm.org/viewvc/llvm-project?rev=260596&view=rev Log: Relax recently added clang version checks. You can override the value of these during CMake, and we often use sentinels with more than one digit (not to mention

Re: [PATCH] D17104: [VFS] Drop path traversal assertion

2016-02-11 Thread Ben Langmuir via cfe-commits
benlangmuir added a comment. > Now, we try to use the new YAML file + cache from a new clang invocation. > When the FileManager requests status in (2) for the path > "/install-dir/bin/../lib/clang/3.8.0/include/altivec.h" neither > "remove_dots()" nor "realpath()" would be able to resolve it to

[libunwind] r260595 - [AArch64] Fix libunwind build when using GNU assembler

2016-02-11 Thread Renato Golin via cfe-commits
Author: rengolin Date: Thu Feb 11 15:22:57 2016 New Revision: 260595 URL: http://llvm.org/viewvc/llvm-project?rev=260595&view=rev Log: [AArch64] Fix libunwind build when using GNU assembler Use x29 and x30 for fp and lr respectively. This does not change the code generation with integrated asm b

Re: [PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-11 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 47716. yaxunl marked an inline comment as done. yaxunl added a comment. Revised as Anastasia suggested. Changed comments. http://reviews.llvm.org/D16686 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticP

[PATCH] D17166: [Sema] More changes to fix Objective-C fallout from r249995.

2016-02-11 Thread Bob Wilson via cfe-commits
bob.wilson created this revision. bob.wilson added reviewers: cfe-commits, george.burgess.iv, doug.gregor, rsmith. Herald added a subscriber: mcrosier. This is a follow-up to PR26085. That was fixed in r257710 but the testcase there was incomplete. There is a related issue where the overload reso

Re: [PATCH] D17111: [CUDA] Added --cuda-noopt-device-debug option to control ptxas' debug info generation.

2016-02-11 Thread Justin Lebar via cfe-commits
jlebar accepted this revision. Comment at: lib/Driver/Tools.cpp:10696 @@ +10695,3 @@ +// ptxas does not accept -g option if optimization is enabled, so we ignore +// compiler's -O* options if we want debug info. +CmdArgs.push_back("-g"); Nit: ignore th

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

2016-02-11 Thread Renato Golin via cfe-commits
rengolin accepted this revision. rengolin added a comment. This revision is now accepted and ready to land. Sorry, this fell out of my radar. I'm ok with the changes. Ping me when you commit so I can monitor the bot for a while. http://reviews.llvm.org/D14293

Re: [PATCH] D15095: Accept "-Weverything" in pragma clang diagnostic ...

2016-02-11 Thread Sunil Srivastava via cfe-commits
Sunil_Srivastava updated this revision to Diff 47707. Sunil_Srivastava added a comment. Hi Richard, > Can you move the special case code out of DiagnosticsEngine and into the > pragma handler for now? Yes. This is that approach. http://reviews.llvm.org/D15095 Files: lib/Lex/Pragma.cpp t

Re: [PATCH] D17104: [VFS] Drop path traversal assertion

2016-02-11 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. > I don't think this is the right approach. If we don't canonicalize the > source path then: > > - looking up the path *without* the .. won't work, which means anything that > looks up a realpath will fail If we canonicalize, then it needs to be done in two places:

Re: [PATCH] D17124: Add driver support for Qualcomm Kryo cpu.

2016-02-11 Thread Renato Golin via cfe-commits
rengolin added a comment. In http://reviews.llvm.org/D17124#350229, @mcrosier wrote: > Committed r260555. It would have been better to commit the LLVM parts first. Now, there will be a range where kyro will be accepted by Clang but broken when it gets to setup the target. --renato http://r

Re: [PATCH] D17132: [libcxx] Fix definition of regex_traits::__regex_word on big-endian glibc systems

2016-02-11 Thread Daniel Sanders via cfe-commits
dsanders added a comment. The table is apparently inside locale-archive and it looks like C and C++ both share this table. At this point I'm satisfied that the table also contains information that C++ isn't interested in and it's this data that regex_word collides with. Are you happy to lift t

r260583 - XFAIL this test for PPC64 for now. It looks like the *_MIN_EXP macros are in fact defined incorrectly for that target.

2016-02-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 11 14:36:47 2016 New Revision: 260583 URL: http://llvm.org/viewvc/llvm-project?rev=260583&view=rev Log: XFAIL this test for PPC64 for now. It looks like the *_MIN_EXP macros are in fact defined incorrectly for that target. Modified: cfe/trunk/test/Headers/float.c

[PATCH] D17163: [ASTMatchers] Add matcher hasAnyName.

2016-02-11 Thread Samuel Benzaquen via cfe-commits
sbenza created this revision. sbenza added a reviewer: alexfh. sbenza added a subscriber: cfe-commits. Herald added a subscriber: klimek. Add matcher hasAnyName as an optimization over anyOf(hasName(),...) http://reviews.llvm.org/D17163 Files: docs/LibASTMatchersReference.html docs/tools/dum

Re: [PATCH] D17076: [OPENMP] firstprivate clause for target

2016-02-11 Thread Carlo Bertolli via cfe-commits
carlo.bertolli closed this revision. carlo.bertolli added a comment. Committed revision 260581. Repository: rL LLVM http://reviews.llvm.org/D17076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

r260581 - Add parse+sema and regression test for OpenMP firstprivate clause of target directive

2016-02-11 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Thu Feb 11 14:12:28 2016 New Revision: 260581 URL: http://llvm.org/viewvc/llvm-project?rev=260581&view=rev Log: Add parse+sema and regression test for OpenMP firstprivate clause of target directive Added: cfe/trunk/test/OpenMP/target_firstprivate_messages.cpp Modified:

Re: r252114 - [modules] If we're given a module file, via -fmodule-file=, for a module, but

2016-02-11 Thread Richard Smith via cfe-commits
On Thu, Feb 11, 2016 at 11:04 AM, Ben Langmuir wrote: > FYI I changed this to early-exit again in r260563 to fix implicit builds. > It’s not safe to keep reading if we haven’t told ReadOptionsBlock to expect > failures, since it will itself early-exit, leaving the stream in the middle > of a block

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Richard Smith via cfe-commits
Thanks, I modified the test to also test C89 and C99 modes and committed this as r260577. On Thu, Feb 11, 2016 at 11:29 AM, Jorge Teixeira wrote: > Here is a revised test, which I renamed to c11-5_2_4_2_2p11.c instead > of float.c because I am only checking a subset of what the standard > mandate

r260577 - In C11, provide macros FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, and LDBL_DECIMAL_DIG in .

2016-02-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 11 13:57:37 2016 New Revision: 260577 URL: http://llvm.org/viewvc/llvm-project?rev=260577&view=rev Log: In C11, provide macros FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, and LDBL_DECIMAL_DIG in . Patch by Jorge Teixeira! Added: cfe/trunk/test/Headers/float.c Modified:

Re: [PATCH] D17132: [libcxx] Fix definition of regex_traits::__regex_word on big-endian glibc systems

2016-02-11 Thread Daniel Sanders via cfe-commits
dsanders added a comment. I haven't fully proven this yet (because I haven't found the table), but I think that C and C++ are sharing the same table and we're colliding with a bit that only makes sense to C. This would explain why your tests don't fail but regex_word still collides with _ISgrap

Re: [PATCH] D17148: [OPENMP] Basic teams directive implementation

2016-02-11 Thread Carlo Bertolli via cfe-commits
carlo.bertolli removed rL LLVM as the repository for this revision. carlo.bertolli updated this revision to Diff 47695. carlo.bertolli added a comment. Remove handling of reductions - not supported by this patch. http://reviews.llvm.org/D17148 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/Code

Re: r252114 - [modules] If we're given a module file, via -fmodule-file=, for a module, but

2016-02-11 Thread Adrian Prantl via cfe-commits
> On Feb 11, 2016, at 11:04 AM, Ben Langmuir wrote: > > FYI I changed this to early-exit again in r260563 to fix implicit builds. > It’s not safe to keep reading if we haven’t told ReadOptionsBlock to expect > failures, since it will itself early-exit, leaving the stream in the middle > of a

Re: [PATCH] D16946: Add link to llvm git documentation, and recommend always building libcxx on OSX

2016-02-11 Thread don hinton via cfe-commits
hintonda added a comment. Thanks Marshall. Btw, I don't have commit access, so if approved, could someone commit this for me? http://reviews.llvm.org/D16946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [libcxx] r260337 - Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from

2016-02-11 Thread Richard Smith via cfe-commits
Should be fixed in r260570. On Thu, Feb 11, 2016 at 11:28 AM, Richard Smith wrote: > Argh, the glibc folks broke their string.h and wchar.h prototypes in > this commit: > > https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8e2e833ac4d6509b152d6b8d74d388725717c56f > > On Thu, Feb 11, 2016 at 11:

[libcxx] r260570 - Work around regression in glibc 2.22: request that glibc provides the correct

2016-02-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 11 13:40:06 2016 New Revision: 260570 URL: http://llvm.org/viewvc/llvm-project?rev=260570&view=rev Log: Work around regression in glibc 2.22: request that glibc provides the correct prototypes for functions that are converted into overload sets in C++. This matches th

Re: [PATCH] D16946: Add link to llvm git documentation, and recommend always building libcxx on OSX

2016-02-11 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. This looks fine to me. I think this should be committed. http://reviews.llvm.org/D16946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15920: [CMake] Add option to switch default C++ stdlib

2016-02-11 Thread Chris Bieneman via cfe-commits
beanz added a comment. Everything about this looks reasonable to me. Can you commit the test changes in a separate commit before committing the other changes? That way if something goes wrong the diff for the meat of the patch is a small diff. http://reviews.llvm.org/D15920 ___

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-11 Thread Jorge Teixeira via cfe-commits
Here is a revised test, which I renamed to c11-5_2_4_2_2p11.c instead of float.c because I am only checking a subset of what the standard mandates for float.h, and because there were similar precedents, like test/Preprocessor/c99-*.c. Feel free to override, though. The first part checks for basic

Re: [PATCH] D17132: [libcxx] Fix definition of regex_traits::__regex_word on big-endian glibc systems

2016-02-11 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. > ctype_base is defining graph by combining alnum and punct instead of using > the _IS* macro like the other bits. Because that's how the standard (22.4.1) shows to do it :-) > I'm not sure where it's getting the definition of classic_table. Presumably > it's comi

Re: [libcxx] r260337 - Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from

2016-02-11 Thread Richard Smith via cfe-commits
Argh, the glibc folks broke their string.h and wchar.h prototypes in this commit: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8e2e833ac4d6509b152d6b8d74d388725717c56f On Thu, Feb 11, 2016 at 11:02 AM, Ismail Donmez wrote: > Hi, > > On Wed, Feb 10, 2016 at 2:59 AM, Richard Smith via cfe-c

r260567 - [PR26550] Use a different TBAA root for C++ vs C.

2016-02-11 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Feb 11 13:19:18 2016 New Revision: 260567 URL: http://llvm.org/viewvc/llvm-project?rev=260567&view=rev Log: [PR26550] Use a different TBAA root for C++ vs C. This commit changes the root from "Simple C/C++ TBAA" to "Simple C++ TBAA" for C++. The problem is that the type na

Re: [PATCH] D17146: [libcxx] locale portability refactor

2016-02-11 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. I am very much in favor of cleaning up this part of libc++. Thanks for taking this on. > I'm open to recommendations on ways to test this that are better than > "Submit, watch build bots, revert as necessary". My suggestion is to do this incrementally. Implement t

Re: r252114 - [modules] If we're given a module file, via -fmodule-file=, for a module, but

2016-02-11 Thread Ben Langmuir via cfe-commits
FYI I changed this to early-exit again in r260563 to fix implicit builds. It’s not safe to keep reading if we haven’t told ReadOptionsBlock to expect failures, since it will itself early-exit, leaving the stream in the middle of a block. It’s also a performance advantage to early exit when doi

Re: [libcxx] r260337 - Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from

2016-02-11 Thread Ismail Donmez via cfe-commits
Hi, On Wed, Feb 10, 2016 at 2:59 AM, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Tue Feb 9 18:59:02 2016 > New Revision: 260337 > > URL: http://llvm.org/viewvc/llvm-project?rev=260337&view=rev > Log: > Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from > and

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-11 Thread Andy Gibbs via cfe-commits
AndyG added a comment. Test comment -- just to see whether email notifications are sending properly (it seems, for example, that cfe-commits wasn't notified of this patch...) http://reviews.llvm.org/D17149 ___ cfe-commits mailing list cfe-commits@l

r260563 - [Modules] Early-exit if ReadOptionsBlock fails to avoid crashing

2016-02-11 Thread Ben Langmuir via cfe-commits
Author: benlangmuir Date: Thu Feb 11 12:54:02 2016 New Revision: 260563 URL: http://llvm.org/viewvc/llvm-project?rev=260563&view=rev Log: [Modules] Early-exit if ReadOptionsBlock fails to avoid crashing If we didn't tell ReadOptionsBlock to allow failures then we can't assume that the stream is n

  1   2   3   >