[PATCH] D39176: [Driver] Use ld.lld directly for Fuchsia rather than passing flavor

2017-10-22 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added a project: clang. Passing a flavor to LLD requires command line argument, but if these are being passed through a response file, this will fail because LLD needs to know which driver to use before processing the response file. Use ld.lld directly instead

r316310 - For better compatibility with C++11 and C++14, emit a nondiscardable definition

2017-10-22 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Oct 22 20:58:34 2017 New Revision: 316310 URL: http://llvm.org/viewvc/llvm-project?rev=316310=rev Log: For better compatibility with C++11 and C++14, emit a nondiscardable definition of a static constexpr data member if it's defined 'constexpr' out of line, not only if

[PATCH] D38774: [CodeGen] Add support for IncompleteArrayType in Obj-C ivars.

2017-10-22 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: clang/lib/CodeGen/CGObjCMac.cpp:5095 +fieldType = fieldType->getAsArrayTypeUnsafe()->getElementType(); + } + You can't just use isa<> here; there can be typedefs of incomplete array type.

[PATCH] D39174: [analyzer] Fix handling of labels getLValueElement

2017-10-22 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
alexshap created this revision. Herald added subscribers: szepet, xazax.hun. In getLValueElement Base may represent the address of a label (as in the newly-added test case), in this case it's not a loc::MemRegionVal and Base.castAs() triggers an assert. Test plan: make check-all Repository:

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray updated this revision to Diff 119803. lichray edited the summary of this revision. lichray added a comment. Changed to an warning given @zturner 's comments and experiments. https://reviews.llvm.org/D39162 Files: test/Unit/lit.cfg.py Index: test/Unit/lit.cfg.py

[PATCH] D39127: Fix template parameter default args missed if redecled

2017-10-22 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:4811 + TemplateParameterList *Params = + cast(Template->getMostRecentDecl()) + ->getTemplateParameters(); mstorsjo wrote: > erichkeane wrote: > > mstorsjo wrote: > > > How

Re: [PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Zachary Turner via cfe-commits
Because this is not tge only part of ghe library search algorithm, and it’s not necessarily an error if the variable isn’t set On Sun, Oct 22, 2017 at 1:56 PM Zhihao Yuan via Phabricator < revi...@reviews.llvm.org> wrote: > lichray marked an inline comment as done. > lichray added a comment. > >

r316304 - [c++2a] Update cxx_status w __VA_OPT__ marked as completed in SVN.

2017-10-22 Thread Faisal Vali via cfe-commits
Author: faisalv Date: Sun Oct 22 15:29:52 2017 New Revision: 316304 URL: http://llvm.org/viewvc/llvm-project?rev=316304=rev Log: [c++2a] Update cxx_status w __VA_OPT__ marked as completed in SVN. Modified: cfe/trunk/www/cxx_status.html Modified: cfe/trunk/www/cxx_status.html URL:

Re: Attribute spelling policy

2017-10-22 Thread Saleem Abdulrasool via cfe-commits
Very much a +1 on having attributes map in via `__attribute__` and `[[clang::]]` uniformly when appropriate. On Sat, Oct 21, 2017 at 8:14 AM, Aaron Ballman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Attributes come with multiple spelling flavors, but when it comes to > adding new

[PATCH] D38819: [libunwind] Add support for dwarf unwinding on windows on x86_64

2017-10-22 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added inline comments. Comment at: src/UnwindRegistersRestore.S:98 + # skip fs + # skip gs + movq 56(%rcx), %rsp # cut back rsp to new location compnerd wrote: > Doesn't Win64 ABI require some of the MMX registers be saved/restored too? Right, yes,

[PATCH] D38819: [libunwind] Add support for dwarf unwinding on windows on x86_64

2017-10-22 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: src/UnwindRegistersRestore.S:98 + # skip fs + # skip gs + movq 56(%rcx), %rsp # cut back rsp to new location Doesn't Win64 ABI require some of the MMX registers be saved/restored too?

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. In https://reviews.llvm.org/D39162#903190, @krytarowski wrote: > In https://reviews.llvm.org/D39162#903186, @joerg wrote: > > > I think we should special case Darwin and Windows and fall-back to > > LD_LIBRARY_PATH for the rest. Can't remember if there is a

[PATCH] D38680: [libunwind] Fix handling of DW_CFA_GNU_args_size

2017-10-22 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. I've looked at this in some detail now. I'm not exactly sure yet why it is broken. The patch seems quite wrong to me. DW_CFA_GNU_args_size should be applied only when unwinding a call instruction and that regard, the commit message of the original change is quite

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray updated this revision to Diff 119800. https://reviews.llvm.org/D39162 Files: test/Unit/lit.cfg.py Index: test/Unit/lit.cfg.py === --- test/Unit/lit.cfg.py +++ test/Unit/lit.cfg.py @@ -35,13 +35,15 @@ if symbolizer

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. In https://reviews.llvm.org/D39162#903186, @joerg wrote: > I think we should special case Darwin and Windows and fall-back to > LD_LIBRARY_PATH for the rest. Can't remember if there is a UNIX-like platform > left where it doesn't work. SHLIB_PATH in HP/UX

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray added a comment. In https://reviews.llvm.org/D39162#903186, @joerg wrote: > I think we should special case Darwin and Windows and fall-back to > LD_LIBRARY_PATH for the rest. Can't remember if there is a UNIX-like platform > left where it doesn't work. If those developers come to us,

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. I think we should special case Darwin and Windows and fall-back to LD_LIBRARY_PATH for the rest. Can't remember if there is a UNIX-like platform left where it doesn't work. https://reviews.llvm.org/D39162 ___ cfe-commits

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray marked an inline comment as done. lichray added a comment. In https://reviews.llvm.org/D39162#903179, @zturner wrote: > Please don't throw an exception here. Instead, write this as: > > lit_config.warning('Unable to determine shared library path variable for > platform

[PATCH] D39162: [test] Fix clang-test for FreeBSD and NetBSD

2017-10-22 Thread Zachary Turner via Phabricator via cfe-commits
zturner requested changes to this revision. zturner added a comment. This revision now requires changes to proceed. Please don't throw an exception here. Instead, write this as: shlibpath_var = None if platform.system() in ['Linux', 'FreeBSD', 'NetBSD']: shilbpath = 'LD_LIBRARY_PATH'

[PATCH] D39166: [NFC] Add some assertions to placate my paranoia about sharing a variant bit across FunctionDecl and CXXDeductionGuideDecl - should I do this?

2017-10-22 Thread Faisal Vali via Phabricator via cfe-commits
faisalv added a comment. In https://reviews.llvm.org/D39166#903131, @lichray wrote: > Isn't it already an UB if someone set `WillHaveBody` and but later > `IsCopyDeductionCandidate` being read, vice versa? Yes that would be UB - but I'm not sure I see how that would happen w the current

[PATCH] D39166: [NFC] Add some assertions to placate my paranoia about sharing a variant bit across FunctionDecl and CXXDeductionGuideDecl - should I do this?

2017-10-22 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray added a comment. Isn't it already an UB if someone set `WillHaveBody` and but later `IsCopyDeductionCandidate` being read, vice versa? Repository: rL LLVM https://reviews.llvm.org/D39166 ___ cfe-commits mailing list

r316301 - Create fewer copies of StringMaps. No functionality change intended.

2017-10-22 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Sun Oct 22 13:16:28 2017 New Revision: 316301 URL: http://llvm.org/viewvc/llvm-project?rev=316301=rev Log: Create fewer copies of StringMaps. No functionality change intended. Modified: cfe/trunk/lib/Frontend/PrecompiledPreamble.cpp cfe/trunk/lib/Parse/ParseStmtAsm.cpp

[PATCH] D39166: [NFC] Add some assertions to placate my paranoia about sharing a variant bit across FunctionDecl and CXXDeductionGuideDecl - should I do this?

2017-10-22 Thread Faisal Vali via Phabricator via cfe-commits
faisalv created this revision. faisalv added a project: clang. Herald added a subscriber: eraman. I'd like to harden my patch here: https://reviews.llvm.org/rL316292 by adding some assertions. But since the assertions in Decl,.h (FunctionDecl) require knowledge from DeclCXX.h

[PATCH] D39156: [libunwind] Make HIDDEN_DIRECTIVE a function-like macro. NFCI.

2017-10-22 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316300: Make HIDDEN_DIRECTIVE a function-like macro. NFCI. (authored by mstorsjo). Changed prior to commit: https://reviews.llvm.org/D39156?vs=119740=119792#toc Repository: rL LLVM

[libunwind] r316300 - Make HIDDEN_DIRECTIVE a function-like macro. NFCI.

2017-10-22 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sun Oct 22 12:39:26 2017 New Revision: 316300 URL: http://llvm.org/viewvc/llvm-project?rev=316300=rev Log: Make HIDDEN_DIRECTIVE a function-like macro. NFCI. This avoids a hack for making it a no-op for windows. Also explicitly check for _WIN32 instead of assuming it.

[PATCH] D39127: Fix template parameter default args missed if redecled

2017-10-22 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:4811 + TemplateParameterList *Params = + cast(Template->getMostRecentDecl()) + ->getTemplateParameters(); erichkeane wrote: > mstorsjo wrote: > > How does this work if there's

[PATCH] D39127: Fix template parameter default args missed if redecled

2017-10-22 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:4811 + TemplateParameterList *Params = + cast(Template->getMostRecentDecl()) + ->getTemplateParameters(); mstorsjo wrote: > How does this work if there's another forward

r316292 - [C++17] Fix PR34970 - tweak overload resolution for class template deduction-guides in line with WG21's p0620r0.

2017-10-22 Thread Faisal Vali via cfe-commits
Author: faisalv Date: Sun Oct 22 07:45:08 2017 New Revision: 316292 URL: http://llvm.org/viewvc/llvm-project?rev=316292=rev Log: [C++17] Fix PR34970 - tweak overload resolution for class template deduction-guides in line with WG21's p0620r0. In order to identify the copy deduction candidate, I

[libclc] r316291 - shared: Implement aligned vector stores (vstorea_half)

2017-10-22 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 22 07:21:59 2017 New Revision: 316291 URL: http://llvm.org/viewvc/llvm-project?rev=316291=rev Log: shared: Implement aligned vector stores (vstorea_half) Float version passes newly posted piglit tests on turks, float and double pass on carrizo. v2: scalar

[libclc] r316290 - shared: Implement aligned vector loads (vloada_half)

2017-10-22 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 22 07:21:56 2017 New Revision: 316290 URL: http://llvm.org/viewvc/llvm-project?rev=316290=rev Log: shared: Implement aligned vector loads (vloada_half) Passes newly posted piglits on turks and carrizo v2: add scalar vloada_half v3: fix typo Reviewer: Aaron Watry

[PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

2017-10-22 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 added a comment. I've updated the patch based on your comments. https://reviews.llvm.org/D5767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

2017-10-22 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 updated this revision to Diff 119774. https://reviews.llvm.org/D5767 Files: include/clang/Driver/CC1Options.td include/clang/Frontend/FrontendActions.h include/clang/Frontend/FrontendOptions.h include/clang/FrontendTool/Utils.h include/clang/Sema/Sema.h