[PATCH] D25640: [CUDA] [AST] Allow isInlineDefinitionExternallyVisible to be called on functions without bodies.

2016-10-14 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added reviewers: rsmith, tra. jlebar added a subscriber: cfe-commits. Herald added a subscriber: aemerson. In CUDA compilation, we call isInlineDefinitionExternallyVisible (via getGVALinkageForFunction) on functions while parsing their definitions. At the

[PATCH] D25547: [CodeGen][ObjC] Do not emit objc_storeStrong to initialize a constexpr variable

2016-10-14 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:1650 +} + switch (Lifetime) { I think you can fold this a bit more. :) You have exactly the same switch statement below, and several of the cases are identical; for the others, you

r284300 - Disable a silly GCC diagnostic for combining a scanf length specifier with the

2016-10-14 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 14 20:59:52 2016 New Revision: 284300 URL: http://llvm.org/viewvc/llvm-project?rev=284300=rev Log: Disable a silly GCC diagnostic for combining a scanf length specifier with the '*' specifier. Apparently the GNU folks want to discourage self-documenting code.

Re: r284256 - Link static PIE programs against rcrt0.o on OpenBSD

2016-10-14 Thread Brad Smith via cfe-commits
On Fri, Oct 14, 2016 at 05:59:54PM -, Ed Maste via cfe-commits wrote: > Author: emaste > Date: Fri Oct 14 12:59:53 2016 > New Revision: 284256 > > URL: http://llvm.org/viewvc/llvm-project?rev=284256=rev > Log: > Link static PIE programs against rcrt0.o on OpenBSD > > Patch by Stefan Kempf. >

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Looks that somehow the current directory doesn't exit anymore OR it's non empty but only contains spaces or something like that. Besides the snippet below, RedirectingFileSystem::lookupPath(llvm::Twine const&) also calls `makeAbsolute` before `remove_dots`. Can you try

[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

2016-10-14 Thread Petr Hosek via cfe-commits
phosek added a comment. Ping, do you have any other comments? Repository: rL LLVM https://reviews.llvm.org/D25491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25547: [CodeGen][ObjC] Do not emit objc_storeStrong to initialize a constexpr variable

2016-10-14 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 74760. ahatanak added a comment. Fold EmitScalarInit into EmitStoreThroughLValue and remove EmitScalarInit. I don't think ElementType in EmitObjCCollectionLiteral has a lifetime qualifier, so it should be safe to call EmitStoreThroughLValue instead of

[PATCH] D19996: New clang option -mpie-copy-relocationss to indicate support for linker copy relocations when linking as PIE

2016-10-14 Thread Sriraman Tallam via cfe-commits
tmsriram retitled this revision from "New clang option -mpiecopyrelocs to indicate support for linker copy relocations when linking as PIE" to "New clang option -mpie-copy-relocationss to indicate support for linker copy relocations when linking as PIE". tmsriram updated the summary for this

[libcxxabi] r284295 - Fix typo in comment

2016-10-14 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Fri Oct 14 19:02:20 2016 New Revision: 284295 URL: http://llvm.org/viewvc/llvm-project?rev=284295=rev Log: Fix typo in comment Modified: libcxxabi/trunk/src/cxa_thread_atexit.cpp Modified: libcxxabi/trunk/src/cxa_thread_atexit.cpp URL:

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-14 Thread Sebastian Pop via cfe-commits
sebpop added a comment. If I remember correctly, we pushed the fix after 3.9 was released. Could you please explain the problem of requiring trunk LLVM to build trunk libcxx? https://reviews.llvm.org/D25624 ___ cfe-commits mailing list

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In https://reviews.llvm.org/D24864#570954, @vitalybuka wrote: > Thanks, done https://reviews.llvm.org/D25636 Thanks for the fix! / Asiri https://reviews.llvm.org/D24864 ___ cfe-commits mailing list

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Vitaly Buka via cfe-commits
vitalybuka added a comment. Thanks, done https://reviews.llvm.org/D25636 https://reviews.llvm.org/D24864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-14 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Has the fix been merged into the 3.9 branch? Does re-adding this attribute mean that Clang 4.0 is required to build LLVM w/ libc++? https://reviews.llvm.org/D25624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[libcxxabi] r284294 - Don't compile cxa_thread_atexit.cpp with -DLIBCXX_ENABLE_THREADS=OFF

2016-10-14 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Fri Oct 14 18:51:41 2016 New Revision: 284294 URL: http://llvm.org/viewvc/llvm-project?rev=284294=rev Log: Don't compile cxa_thread_atexit.cpp with -DLIBCXX_ENABLE_THREADS=OFF Reviewers: rmaprath Subscribers: beanz, mgorny Differential Revision:

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-14 Thread Sebastian Pop via cfe-commits
sebpop accepted this revision. sebpop added a reviewer: sebpop. sebpop added a comment. This revision is now accepted and ready to land. This got approved in the past review. Let's commit it now that the clang bug was fixed. Thanks Aditya for keeping track of this.

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In https://reviews.llvm.org/D24864#570935, @vitalybuka wrote: > Maybe? > > - if (UNIX AND NOT (APPLE OR CYGWIN)) > + if (LIBCXXABI_ENABLE_THREADS AND UNIX AND NOT (APPLE OR CYGWIN)) > list(APPEND LIBCXXABI_SOURCES cxa_thread_atexit.cpp) > endif() > Yes! I was

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Vitaly Buka via cfe-commits
vitalybuka added a comment. Maybe? - if (UNIX AND NOT (APPLE OR CYGWIN)) + if (LIBCXXABI_ENABLE_THREADS AND UNIX AND NOT (APPLE OR CYGWIN)) list(APPEND LIBCXXABI_SOURCES cxa_thread_atexit.cpp) endif() https://reviews.llvm.org/D24864 ___

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In https://reviews.llvm.org/D24864#570924, @vitalybuka wrote: > So there is: > > - Looking for __cxa_thread_atexit_impl in c > - Looking for __cxa_thread_atexit_impl in c - not found > > and libcxx is configured with -DLIBCXX_ENABLE_THREADS=OFF I think, the problem

r284293 - [Coverage] Support for C++17 if initializers

2016-10-14 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Oct 14 18:38:16 2016 New Revision: 284293 URL: http://llvm.org/viewvc/llvm-project?rev=284293=rev Log: [Coverage] Support for C++17 if initializers Differential Revision: https://reviews.llvm.org/D25572 Added: cfe/trunk/test/CoverageMapping/if.cpp - copied,

[PATCH] D25572: [Coverage] Support for C++17 if initializers

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284293: [Coverage] Support for C++17 if initializers (authored by vedantk). Changed prior to commit: https://reviews.llvm.org/D25572?vs=74559=74753#toc Repository: rL LLVM

[PATCH] D25539: [Coverage] Support for C++17 switch initializers

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284292: [Coverage] Support for C++17 switch initializers (authored by vedantk). Changed prior to commit: https://reviews.llvm.org/D25539?vs=74552=74752#toc Repository: rL LLVM

r284292 - [Coverage] Support for C++17 switch initializers

2016-10-14 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Oct 14 18:38:13 2016 New Revision: 284292 URL: http://llvm.org/viewvc/llvm-project?rev=284292=rev Log: [Coverage] Support for C++17 switch initializers Differential Revision: https://reviews.llvm.org/D25539 Added: cfe/trunk/test/CoverageMapping/switch.cpp -

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Vitaly Buka via cfe-commits
vitalybuka added a comment. So there is: - Looking for __cxa_thread_atexit_impl in c - Looking for __cxa_thread_atexit_impl in c - not found and libcxx is configured with -DLIBCXX_ENABLE_THREADS=OFF https://reviews.llvm.org/D24864 ___ cfe-commits

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Vitaly Buka via cfe-commits
vitalybuka added a comment. This change breaks http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/25625/steps/build%2032-bit%20symbolizer%20for%20compiler_rt_build/logs/stdio https://reviews.llvm.org/D24864 ___ cfe-commits mailing

[PATCH] D25586: [clang-move] Use cl::list and cl::CommaSeparated for the list of names.

2016-10-14 Thread Alexander Shaposhnikov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284291: [clang-move] Use cl::list for the list of names (authored by alexshap). Changed prior to commit: https://reviews.llvm.org/D25586?vs=74599=74749#toc Repository: rL LLVM

[clang-tools-extra] r284291 - [clang-move] Use cl::list for the list of names

2016-10-14 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Fri Oct 14 18:16:25 2016 New Revision: 284291 URL: http://llvm.org/viewvc/llvm-project?rev=284291=rev Log: [clang-move] Use cl::list for the list of names This diff replaces manual parsing of the comma-separated list of names with cl::list and cl::CommaSeparated. Test

Re: [libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Eric Fiselier via cfe-commits
Thanks Richard. I've fixed the tests in r284289. On Fri, Oct 14, 2016 at 4:40 PM, Richard Smith wrote: > On Fri, Oct 14, 2016 at 3:34 PM, Eric Fiselier via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Oh, I have another idea: could it be that you're also

[libcxx] r284289 - Prevent new/delete replacement tests from being optimized away.

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 17:47:08 2016 New Revision: 284289 URL: http://llvm.org/viewvc/llvm-project?rev=284289=rev Log: Prevent new/delete replacement tests from being optimized away. Modified:

LLVM buildmaster will be updated and restarted tonight

2016-10-14 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 5 PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r284288 - Sema: honour dllexport in itanium more faithfully

2016-10-14 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Oct 14 17:25:46 2016 New Revision: 284288 URL: http://llvm.org/viewvc/llvm-project?rev=284288=rev Log: Sema: honour dllexport in itanium more faithfully Although the itanium environment uses the itanium layout for C++, treat the dllexport semantics more similarly to

Re: [libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Eric Fiselier via cfe-commits
Oh, I have another idea: could it be that you're also turning some optimization on when UBSan is enabled? Note that the operator new/operator delete pair is elidable in each of these tests, and Clang will remove the calls when compiling with optimizations enabled. That's it. The UBSAN tests build

Re: [libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Richard Smith via cfe-commits
Oh, I have another idea: could it be that you're also turning some optimization on when UBSan is enabled? Note that the operator new/operator delete pair is elidable in each of these tests, and Clang will remove the calls when compiling with optimizations enabled. On Fri, Oct 14, 2016 at 2:38 PM,

Re: [libcxx] r249738 - Split out of .

2016-10-14 Thread Richard Smith via cfe-commits
On Fri, Oct 14, 2016 at 11:44 AM, Bruno Cardoso Lopes < bruno.card...@gmail.com> wrote: > Hi Richard, > > I have a patch on top of your suggested patch from a year ago, that > break the cyclic dependency we're seeing, with this (and a few changes > to the SDK) we can bootstrap clang with

r284285 - Add more swift calling convention tests

2016-10-14 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Fri Oct 14 16:55:56 2016 New Revision: 284285 URL: http://llvm.org/viewvc/llvm-project?rev=284285=rev Log: Add more swift calling convention tests Modified: cfe/trunk/test/CodeGen/64bit-swiftcall.c cfe/trunk/test/CodeGen/arm-swiftcall.c Modified:

[PATCH] D24508: PR28752: Do not instantiate var decls which are not visible.

2016-10-14 Thread Richard Smith via cfe-commits
rsmith added a comment. I reverted this in r284081, and relanded with fixes described here as r284284. Comment at: lib/Sema/SemaDecl.cpp:9712 + + // Demote the newly parsed definition to a fake declaration. + if (!VDecl->isThisDeclarationADemotedDefinition())

r284284 - Reinstate r284008 reverted in r284081, with two fixes:

2016-10-14 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 14 16:41:24 2016 New Revision: 284284 URL: http://llvm.org/viewvc/llvm-project?rev=284284=rev Log: Reinstate r284008 reverted in r284081, with two fixes: 1) Merge and demote variable definitions when we find a redefinition in MergeVarDecls, not only when we find one

[PATCH] D25519: [CodeCompletion] Refactor: Extract two Objective-C block formatting related functions from FormatFunctionParameter

2016-10-14 Thread Manman Ren via cfe-commits
manmanren accepted this revision. manmanren added a comment. This revision is now accepted and ready to land. LGTM. Manman Repository: rL LLVM https://reviews.llvm.org/D25519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-14 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. It seems like on-stack arrays still don't work? #include struct test { uint32_t x; } __attribute__((__packed__)); int main(void) { struct test __attribute__((__aligned__(4))) a[4]; uint32_t *p32; p32 = [0].x; }

[libcxx] r284282 - Clarify XFAIL comments

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 16:30:35 2016 New Revision: 284282 URL: http://llvm.org/viewvc/llvm-project?rev=284282=rev Log: Clarify XFAIL comments Modified: libcxx/trunk/test/std/language.support/support.dynamic/new.delete/new.delete.array/delete_align_val_t_replace.pass.cpp

Re: [libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Eric Fiselier via cfe-commits
UBSAN may not be replacing the function, but it is doing something weird at the codegen level. I looked into this a while ago but never sorted it out. Either way I'll clarify the comments and add the missing reset() calls. Unfortunately the tests still fail in the same way. On Fri, Oct 14, 2016

[PATCH] D25480: __builtin_fpclassify missing one int parameter

2016-10-14 Thread David Sheinkman via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284277: __builtin_fpclassify missing one int parameter (authored by davidsh). Changed prior to commit: https://reviews.llvm.org/D25480?vs=74377=74740#toc Repository: rL LLVM

r284277 - __builtin_fpclassify missing one int parameter

2016-10-14 Thread David Sheinkman via cfe-commits
Author: davidsh Date: Fri Oct 14 15:43:37 2016 New Revision: 284277 URL: http://llvm.org/viewvc/llvm-project?rev=284277=rev Log: __builtin_fpclassify missing one int parameter Patch by Tania Albarghouthi. Differential Revision: https://reviews.llvm.org/D25480 Modified:

Re: [libcxx] r284214 - XFAIL aligned allocation tests for older Clang versions

2016-10-14 Thread Eric Fiselier via cfe-commits
Hi Nico, Could you give me more information about the compiler your using? /Eric On Fri, Oct 14, 2016 at 1:21 PM, Nico Weber wrote: > This is breaking tests for me: > > Unexpected Passing Tests (4): > libc++ ::

[PATCH] D25284: AvailabilityAttrs: Delay partial availability diagnostics

2016-10-14 Thread Erik Pilkington via cfe-commits
erik.pilkington updated this revision to Diff 74738. erik.pilkington added a comment. This new patch renames `DelayedDiagnostic::DeprecationData` to `DelayedDiagnostic::AvailabilityData`, because now that it can hold information about deprecated, unavailable, and partial diagnostics. Thanks,

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Krzysztof Parzyszek via cfe-commits
kparzysz added a comment. The `..:target:hexagon:include:` is debug code printing all the path components, separated by :. https://reviews.llvm.org/D25597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Krzysztof Parzyszek via cfe-commits
kparzysz added a comment. Right on entry to the asserting function: (gdb) where #0 0x752b9870 in (anonymous namespace)::RedirectingFileSystem::lookupPath(llvm::sys::path::const_iterator, llvm::sys::path::const_iterator, (anonymous namespace)::Entry*) () from

[PATCH] D19854: Define Contiki OS toolchain

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284278: Define Contiki OS toolchain (authored by dlkreitz). Changed prior to commit: https://reviews.llvm.org/D19854?vs=70076=74741#toc Repository: rL LLVM https://reviews.llvm.org/D19854 Files:

r284278 - Define Contiki OS toolchain

2016-10-14 Thread David L Kreitzer via cfe-commits
Author: dlkreitz Date: Fri Oct 14 15:44:33 2016 New Revision: 284278 URL: http://llvm.org/viewvc/llvm-project?rev=284278=rev Log: Define Contiki OS toolchain Patch by Michael LeMay Differential revision: http://reviews.llvm.org/D19854 Modified: cfe/trunk/lib/Driver/Driver.cpp

[PATCH] D25547: [CodeGen][ObjC] Do not emit objc_storeStrong to initialize a constexpr variable

2016-10-14 Thread John McCall via cfe-commits
rjmccall added a comment. Sorry, no, just the one that takes an llvm::Value* instead of an Expr*. https://reviews.llvm.org/D25547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Krzysztof, do you have a backtrace that you can paste here or point me to the buidbot stderr log? There's no point in looking for relative paths inside the VFS, it would be nice if we fix the root cause here. https://reviews.llvm.org/D25597

Re: [clang-tools-extra] r284233 - [clang-move] Add header guard for the new header.

2016-10-14 Thread Tim Northover via cfe-commits
Hi Haojian, On 14 October 2016 at 06:01, Haojian Wu via cfe-commits wrote: > + std::string GuardName(FileName); > + if (IsHeader) { > +std::replace(GuardName.begin(), GuardName.end(), '/', '_'); > +std::replace(GuardName.begin(), GuardName.end(), '.', '_');

Re: [PATCH] D24997: [ClangTidy] Add UsingInserter and NamespaceAliaser

2016-10-14 Thread Julian Bangert via cfe-commits
I figured out make clang-tidy. Compiles now (the typedef was the wrong way around, and i never noticed because make with the default target continued to work). Updated the diff. On Fri, Oct 14, 2016 at 12:49 PM Julian Bangert wrote: > Apologies for the breakage. I

[PATCH] D24997: [ClangTidy] Add UsingInserter and NamespaceAliaser

2016-10-14 Thread Julian Bangert via cfe-commits
jbangert removed rL LLVM as the repository for this revision. jbangert updated this revision to Diff 74737. Herald added subscribers: mgorny, beanz. https://reviews.llvm.org/D24997 Files: clang-tidy/utils/ASTUtils.cpp clang-tidy/utils/ASTUtils.h clang-tidy/utils/CMakeLists.txt

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Krzysztof Parzyszek via cfe-commits
kparzysz added a comment. dbgs showed that the path components were `.. target hexagon include`. The paths are constructed in lib/Driver/ToolChains.cpp, many are based on "getHexagonTargetDir". https://reviews.llvm.org/D25597 ___ cfe-commits

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. One possible reason: remove_dots is called upon a path with a leading "..", which then gets appended in front of another path to form the absolute path. I'm taking a look right now to try to figure out if there's any code path that might lead to this.

r284272 - Implement no_sanitize_address for global vars

2016-10-14 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Fri Oct 14 14:55:09 2016 New Revision: 284272 URL: http://llvm.org/viewvc/llvm-project?rev=284272=rev Log: Implement no_sanitize_address for global vars Modified: cfe/trunk/include/clang/Basic/Attr.td cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

[PATCH] D25579: [codeview] emit debug info for indirect virtual base classes

2016-10-14 Thread Bob Haarman via cfe-commits
inglorion updated this revision to Diff 74734. inglorion added a comment. - Removed unused header. https://reviews.llvm.org/D25579 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h test/CodeGenCXX/debug-info-ms-vbase.cpp Index: test/CodeGenCXX/debug-info-ms-vbase.cpp

r284271 - [linux] When pre-reserving stack pages to work around broken address space

2016-10-14 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 14 14:51:36 2016 New Revision: 284271 URL: http://llvm.org/viewvc/llvm-project?rev=284271=rev Log: [linux] When pre-reserving stack pages to work around broken address space layout for PIE binaries, ask the OS how much stack space is already in use to avoid stack

[PATCH] D25579: [codeview] emit debug info for indirect virtual base classes

2016-10-14 Thread Bob Haarman via cfe-commits
inglorion updated this revision to Diff 74733. inglorion added a comment. @rnk's comments (thanks!) - Converted SeenTypes to a DenseSet. - Switched to getCodeGenOpts().EmitCodeView to check if we should emit the extra records. - Switched to using SeenTypes.count(...) != 0 to check if we've seen

Re: [PATCH] D24997: [ClangTidy] Add UsingInserter and NamespaceAliaser

2016-10-14 Thread Julian Bangert via cfe-commits
Apologies for the breakage. I investigated and it turns out my open-source checkout does not build clang-tidy. I have checked out llvm into ~/llvm, clang into ~/llvm/tools/clang and clang-extra-tools into ~/llvm/tools/clang/tools/extra. In ~/llvm-build I run cmake ../llvm && make -j 32 and it

[PATCH] D25475: [analyzer] Add a new SVal to support pointer-to-member operations.

2016-10-14 Thread Kirill Romanenkov via cfe-commits
kromanenkov added inline comments. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:2314 { + // Return to fulfil assert condition + if (location.getAs()) NoQ wrote: > Hmm. Why would anybody try to load anything from a plain pointer-to-member, > rather than

[PATCH] D25547: [CodeGen][ObjC] Do not emit objc_storeStrong to initialize a constexpr variable

2016-10-14 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. There are two overloaded functions of CodeGenFunction::EmitScalarInit. Are you suggesting we fold both of them into EmitStoreThroughLValue and remove them? https://reviews.llvm.org/D25547 ___ cfe-commits mailing list

Re: [libcxx] r284214 - XFAIL aligned allocation tests for older Clang versions

2016-10-14 Thread Nico Weber via cfe-commits
This is breaking tests for me: Unexpected Passing Tests (4): libc++ :: std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t.pass.cpp libc++ :: std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp libc++ ::

r284265 - [Sema] Refactor context checking for availability diagnostics

2016-10-14 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Fri Oct 14 14:08:01 2016 New Revision: 284265 URL: http://llvm.org/viewvc/llvm-project?rev=284265=rev Log: [Sema] Refactor context checking for availability diagnostics This commit combines a couple of redundant functions that do availability attribute context checking into a

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284265: [Sema] Refactor context checking for availability diagnostics (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D25283?vs=74547=74729#toc Repository: rL LLVM

Re: r276159 - [modules] Don't emit initializers for VarDecls within a module eagerly whenever

2016-10-14 Thread Manman via cfe-commits
Hi Richard, Another follow-up commit r284263. When we import the top-level module with “@import X;”, all the initializers in the submodule should be emitted. Let me know if you see any problem, Manman > On Oct 13, 2016, at 4:03 PM, Richard Smith wrote: > > On Thu, Oct

r284263 - Module: emit initializers in submodules when importing the parent module.

2016-10-14 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Oct 14 13:55:44 2016 New Revision: 284263 URL: http://llvm.org/viewvc/llvm-project?rev=284263=rev Log: Module: emit initializers in submodules when importing the parent module. When importing the parent module, module initializers in submodules should be emitted.

Re: [libcxx] r249738 - Split out of .

2016-10-14 Thread Bruno Cardoso Lopes via cfe-commits
Hi Richard, I have a patch on top of your suggested patch from a year ago, that break the cyclic dependency we're seeing, with this (and a few changes to the SDK) we can bootstrap clang with submodule local visibility on darwin. I've attached the patch with a reduced, standalone testcase that

r284259 - Revert r284256 due to test failure

2016-10-14 Thread Ed Maste via cfe-commits
Author: emaste Date: Fri Oct 14 13:20:12 2016 New Revision: 284259 URL: http://llvm.org/viewvc/llvm-project?rev=284259=rev Log: Revert r284256 due to test failure Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/openbsd.c Modified: cfe/trunk/lib/Driver/Tools.cpp URL:

[PATCH] D22130: Link static PIE programs against rcrt0.o on OpenBSD

2016-10-14 Thread Ed Maste via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284256: Link static PIE programs against rcrt0.o on OpenBSD (authored by emaste). Changed prior to commit: https://reviews.llvm.org/D22130?vs=68046=74718#toc Repository: rL LLVM

r284256 - Link static PIE programs against rcrt0.o on OpenBSD

2016-10-14 Thread Ed Maste via cfe-commits
Author: emaste Date: Fri Oct 14 12:59:53 2016 New Revision: 284256 URL: http://llvm.org/viewvc/llvm-project?rev=284256=rev Log: Link static PIE programs against rcrt0.o on OpenBSD Patch by Stefan Kempf. Differential Revision: https://reviews.llvm.org/D22130 Modified:

Re: [libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Richard Smith via cfe-commits
On Fri, Oct 14, 2016 at 12:49 AM, Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Fri Oct 14 02:49:15 2016 > New Revision: 284210 > > URL: http://llvm.org/viewvc/llvm-project?rev=284210=rev > Log: > XFAIL aligned allocation test failures with UBSAN > >

[PATCH] D25593: [libcxx] Build with -fvisibility-inlines-hidden -- Remove 20 inline definitions from the dylib

2016-10-14 Thread Dimitry Andric via cfe-commits
dim accepted this revision. dim added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r284253 - Implement __stosb intrinsic as a volatile memset

2016-10-14 Thread Albert Gutowski via cfe-commits
Author: agutowski Date: Fri Oct 14 12:33:05 2016 New Revision: 284253 URL: http://llvm.org/viewvc/llvm-project?rev=284253=rev Log: Implement __stosb intrinsic as a volatile memset Summary: We need `__stosb` to be an intrinsic, because SecureZeroMemory function uses it without including

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-14 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D25334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D25606: alpha.core.UnreachableCode - don't warn about unreachable code inside macro

2016-10-14 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. We should pattern match for this specific macro pattern (ex: do{...}while(0) ) instead of suppressing all warnings coming from macros. Maybe we could use the same heuristic as -Wunreachable-code-return compiler warning? Repository: rL LLVM

[PATCH] Warning for main returning a bool.

2016-10-14 Thread Joshua Hurwitz via cfe-commits
See attached. Returning a bool from main is a special case of return type mismatch. The common convention when returning a bool is that 'true' (== 1) indicates success and 'false' (== 0) failure. But since main expects a return value of 0 on success, returning a bool is usually unintended. From

[PATCH] D25621: DebugInfo: use DIAlignment type.

2016-10-14 Thread Adrian Prantl via cfe-commits
aprantl added inline comments. Comment at: include/clang/AST/ASTContext.h:83 uint64_t Width; -unsigned Align; +llvm::DIAlignment Align; bool AlignIsRequired : 1; I'm not sure we want to use a debug info type inside the AST. I think we only

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-14 Thread Aditya Kumar via cfe-commits
hiraditya created this revision. hiraditya added reviewers: mclow.lists, EricWF. hiraditya added subscribers: laxmansole, sebpop, cfe-commits. Author: laxmansole Original Differential Revision: https://reviews.llvm.org/D22834 Posting the patch again as the bug

[PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-10-14 Thread Anton Yartsev via cfe-commits
ayartsev closed this revision. ayartsev added a comment. Closed by r283499. https://reviews.llvm.org/D22494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D25305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-14 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. In https://reviews.llvm.org/D25326#569061, @danielmarjamaki wrote: > > You could also try to add a canary with clang analyzer eval after the if > > statement to force the test to fail if we do add this symbolic reasoning. > > sounds good. sorry but I don't see how to

[PATCH] D22221: Decide whether to enable plugin tests based on cmake variables

2016-10-14 Thread Ehsan Akhgari via cfe-commits
ehsan resigned from this revision. ehsan removed a reviewer: ehsan. ehsan added a comment. I also don't know enough about the build system to review this, sorry! Repository: rL LLVM https://reviews.llvm.org/D1 ___ cfe-commits mailing list

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Alexey Sotkin via cfe-commits
AlexeySotkin added a comment. Now there should be both :) https://reviews.llvm.org/D25305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Alexey Sotkin via cfe-commits
AlexeySotkin updated this revision to Diff 74693. AlexeySotkin added a comment. Squashing commits https://reviews.llvm.org/D25305 Files: lib/CodeGen/CGDecl.cpp test/CodeGenOpenCL/private-array-initialization.cl Index: test/CodeGenOpenCL/private-array-initialization.cl

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. The test looks OK. However, the patch only contains the test now. https://reviews.llvm.org/D25305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24426: DebugInfo: Pass non-zero alignment to DIBuilder only if aligment was forced

2016-10-14 Thread Victor Leschuk via cfe-commits
vleschuk updated this revision to Diff 74686. vleschuk added a comment. Use DIAlignment type instead of uint64_t for alignment in DebugInfo. https://reviews.llvm.org/D24426 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h test/CodeGen/debug-info-packed-struct.c

[PATCH] D25600: [ASTMatcher] Add isStaticDataMember matcher for varDecl.

2016-10-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3005 +/// \endcode +AST_MATCHER(VarDecl, isStaticDataMember) { + return Node.isStaticDataMember(); hokein wrote: > aaron.ballman wrote: > > How does this differ from the

[PATCH] D25621: DebugInfo: use DIAlignment type.

2016-10-14 Thread Victor Leschuk via cfe-commits
vleschuk created this revision. vleschuk added reviewers: aprantl, mehdi_amini, dblaikie, echristo. vleschuk added a subscriber: cfe-commits. Use DIAlignment type introduced in https://reviews.llvm.org/D25620 https://reviews.llvm.org/D25621 Files: include/clang/AST/ASTContext.h

Re: r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-14 Thread Arnold Schwaighofer via cfe-commits
https://llvm.org/bugs/show_bug.cgi?id=30699 > On Oct 14, 2016, at 7:11 AM, Robinson, Paul wrote: > > Is there a bug to track this problem so it doesn't get lost? > --paulr > > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of > Reid Kleckner

[PATCH] D25600: [ASTMatcher] Add isStaticDataMember matcher for varDecl.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3005 +/// \endcode +AST_MATCHER(VarDecl, isStaticDataMember) { + return Node.isStaticDataMember(); aaron.ballman wrote: > How does this differ from the existing matcher

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-14 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D25283 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

RE: r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-14 Thread Robinson, Paul via cfe-commits
Is there a bug to track this problem so it doesn't get lost? --paulr From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of Reid Kleckner via cfe-commits Sent: Thursday, October 13, 2016 4:02 PM To: Arnold Schwaighofer Cc: cfe-commits Subject: Re: r284174 - Disable swiftcall

[PATCH] D25572: [Coverage] Support for C++17 if initializers

2016-10-14 Thread Igor Kudrin via cfe-commits
ikudrin accepted this revision. ikudrin added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D25539: [Coverage] Support for C++17 switch initializers

2016-10-14 Thread Igor Kudrin via cfe-commits
ikudrin accepted this revision. ikudrin added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[libcxx] r284237 - [libcxx] Improve the gcc workaround for the missing __has_include macro.

2016-10-14 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Fri Oct 14 08:56:58 2016 New Revision: 284237 URL: http://llvm.org/viewvc/llvm-project?rev=284237=rev Log: [libcxx] Improve the gcc workaround for the missing __has_include macro. NFC. Modified: libcxx/trunk/include/__threading_support Modified:

[PATCH] D25593: [libcxx] Build with -fvisibility-inlines-hidden -- Remove 20 inline definitions from the dylib

2016-10-14 Thread Ed Maste via cfe-commits
emaste added inline comments. Comment at: lib/abi/CHANGELOG.TXT:22 + Although this change removes symbols, it should still be non-ABI breaking + since all of the definitions removed are inline functions. + Should we also include in this comment the further

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-10-14 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Sema/SemaLookup.cpp:1044-1070 +static bool isBaseClass(const CXXRecordDecl *Record, CXXRecordDecl *Base) { + SmallVector Queue; + + while (true) { +for (const auto : Record->bases()) { + const RecordType *Ty =

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL284236: [clang-move] Don't overuse Replacements::add. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25613?vs=74677=74679#toc

[clang-tools-extra] r284236 - [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Oct 14 08:43:49 2016 New Revision: 284236 URL: http://llvm.org/viewvc/llvm-project?rev=284236=rev Log: [clang-move] Don't overuse Replacements::add. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25613 Modified:

  1   2   >