r247438 - Use Itanium C++ ABI triple for new modules+debug test

2015-09-11 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Sep 11 12:50:14 2015 New Revision: 247438 URL: http://llvm.org/viewvc/llvm-project?rev=247438&view=rev Log: Use Itanium C++ ABI triple for new modules+debug test Modified: cfe/trunk/test/Modules/ExtDebugInfo.cpp Modified: cfe/trunk/test/Modules/ExtDebugInfo.cpp URL: ht

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

2015-09-12 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Sema/SemaType.cpp:5876 @@ +5875,3 @@ + +if (!IsCtorOrDtor) { + if (CurCC != DefaultCC || DefaultCC == ToCC) andreybokhanko wrote: > rnk wrote: > > This looks like the !IsCtorOrDtor check that affects Itanium. Isn

r247843 - [WinEH] Pass the catch adjectives to catchpad directly

2015-09-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Sep 16 15:15:55 2015 New Revision: 247843 URL: http://llvm.org/viewvc/llvm-project?rev=247843&view=rev Log: [WinEH] Pass the catch adjectives to catchpad directly This avoids building a fake LLVM IR global variable just to ferry an i32 down into LLVM codegen. It also puts a

r247851 - [WinEH] Fix a build issue in CGException.cpp

2015-09-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Sep 16 16:06:09 2015 New Revision: 247851 URL: http://llvm.org/viewvc/llvm-project?rev=247851&view=rev Log: [WinEH] Fix a build issue in CGException.cpp I was constructing an object without filling in all the fields. Modified: cfe/trunk/lib/CodeGen/CGException.cpp Modi

Re: [PATCH] D12832: [Driver] Add support for Windows 10 SDK

2015-09-17 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Looks like I forgot to submit the comments I wrote. Anyway, looks good. Comment at: cfe/trunk/lib/Driver/MSVCToolChain.cpp:238 @@ +237,3 @@ + continue; +const StringRef Can

r247902 - Use the MSVC SEH personalities on Mingw

2015-09-17 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Sep 17 12:04:13 2015 New Revision: 247902 URL: http://llvm.org/viewvc/llvm-project?rev=247902&view=rev Log: Use the MSVC SEH personalities on Mingw Mingw generally wraps an old copy of msvcrt.dll which has these personalities, so things should work out, or so I hear. I haven

Re: [PATCH] D1623: Support __builtin_ms_va_list.

2015-09-17 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. I think this is ready. http://reviews.llvm.org/D1623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D12689: [libc++][static linking] std streams are not initialized prior to their use in static object constructors

2015-09-21 Thread Reid Kleckner via cfe-commits
I think you need to address the feedback about avoiding dynamic initialization on stock non-Mac systems. Sent from phone On Sep 21, 2015 8:33 AM, "Evgeny Astigeevich" wrote: > eastig added a comment. > > Ping. > > > http://reviews.llvm.org/D12689 > > > > _

Re: [PATCH] D13223: Generate assume loads only with -fstrict-vtable-pointers

2015-09-28 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk accepted this revision. rnk added a reviewer: rnk. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D13223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

r248925 - [Sema] Avoid crashing during this-> insertion recovery

2015-09-30 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Sep 30 12:30:48 2015 New Revision: 248925 URL: http://llvm.org/viewvc/llvm-project?rev=248925&view=rev Log: [Sema] Avoid crashing during this-> insertion recovery We get into this bad state when someone defines a new member function for a class but forgets to add the declara

Re: [PATCH] D13336: [MSVC] 'property' with an empty array in array subscript expression.

2015-10-01 Thread Reid Kleckner via cfe-commits
rnk added a comment. I think fundamentally we are doing too much declspec property lowering in Sema. We might want to back up and figure out how to do it in IRGen. Right now we have bugs like this, which are probably more important than new functionality: https://llvm.org/bugs/show_bug.cgi?id=24

Re: [PATCH] D13407: [libcxx] Capture configuration information when installing the libc++ headers

2015-10-06 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. Comment at: include/CMakeLists.txt:31 @@ +30,3 @@ +# by prepending __config_site to the current __config header. +# TODO(EricWF) Is it portable to use "cat" and ">>"? +add_custom_command(OUTPUT ${LIBCXX_BINARY_DIR}/__generated_config -

r249497 - [SEH] Fix x64 __exception_code in __except blocks

2015-10-06 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Oct 6 20:07:13 2015 New Revision: 249497 URL: http://llvm.org/viewvc/llvm-project?rev=249497&view=rev Log: [SEH] Fix x64 __exception_code in __except blocks Use llvm.eh.exceptioncode to get the code out of EAX for x64. For 32-bit, the filter is responsible for storing it to

Re: [PATCH] D11921: Add NaCl (a target where long double = double) to long double ABI test

2015-08-10 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm In http://reviews.llvm.org/D11921#221136, @dschuff wrote: > Should this test be renamed to x86_longdouble.c or some such instead of fp128? Yeah, x86_64-longdouble.c is probably better. http

Re: [PATCH] D11922: Add NaCl to long double/fp128 mangling test

2015-08-10 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Feel free to commit more test coverage like this with just post-commit review. http://reviews.llvm.org/D11922 ___ cfe-commits mailing list cfe-co

Re: [PATCH] D11922: Add NaCl to long double/fp128 mangling test

2015-08-10 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D11922#221185, @dschuff wrote: > I'm not an expert in mangling, and I'm not 100% sure if this is right. The > Itanium ABI's spec lists "long double" as the same as __float80. Should we > use "double" in mangling instead? If you can have differen

Re: r244488 - [dllimport] A non-imported class with an imported key can't have a key

2015-08-10 Thread Reid Kleckner via cfe-commits
On Mon, Aug 10, 2015 at 5:00 PM, Richard Smith wrote: > On Mon, Aug 10, 2015 at 12:39 PM, Reid Kleckner via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: rnk >> Date: Mon Aug 10 14:39:01 2015 >> New Revision: 244488 >> >> URL: http:/

Re: r244488 - [dllimport] A non-imported class with an imported key can't have a key

2015-08-11 Thread Reid Kleckner via cfe-commits
On Mon, Aug 10, 2015 at 6:40 PM, Richard Smith wrote: > On Mon, Aug 10, 2015 at 5:43 PM, Reid Kleckner wrote: > >> On Mon, Aug 10, 2015 at 5:00 PM, Richard Smith >> wrote: >> >>> On Mon, Aug 10, 2015 at 12:39 PM, Reid Kleckner via cfe-commits < &

Re: r244488 - [dllimport] A non-imported class with an imported key can't have a key

2015-08-11 Thread Reid Kleckner via cfe-commits
Yeah, let's do that. On Tue, Aug 11, 2015 at 9:40 AM, Hans Wennborg wrote: > On Mon, Aug 10, 2015 at 12:39 PM, Reid Kleckner via cfe-commits > wrote: > > Author: rnk > > Date: Mon Aug 10 14:39:01 2015 > > New Revision: 244488 > > > > URL: http://llvm.or

Re: [PATCH] D11928: Small fixup

2015-08-11 Thread Reid Kleckner via cfe-commits
rnk added a comment. I added this code before C++11 migration. I wanted to explicitly default the copy ctor to document that it's a value type, rather than defaulting it implicitly. You can nuke both comments and uncomment the definition. http://reviews.llvm.org/D11928 _

Re: [PATCH] D11928: Small fixup

2015-08-11 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: include/clang/AST/VTableBuilder.h:54 @@ -53,3 +53,3 @@ - VTableComponent() { } + VTableComponent() = default; Is this ctor used? It leaves Value uninitialized. Maybe we should delete it to ensure that it isn't called,

Re: [PATCH] D11928: Deleted old fixme.

2015-08-11 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D11928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r244922 - Turn off __has_feature(cxx_rtti) when -fno-rtti-data is present

2015-08-13 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Aug 13 12:56:49 2015 New Revision: 244922 URL: http://llvm.org/viewvc/llvm-project?rev=244922&view=rev Log: Turn off __has_feature(cxx_rtti) when -fno-rtti-data is present -fno-rtti-data makes it so that vtables emitted in the current TU lack RTTI data. This means that dynam

r244926 - Try to fix the build after r244923

2015-08-13 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Aug 13 13:10:34 2015 New Revision: 244926 URL: http://llvm.org/viewvc/llvm-project?rev=244926&view=rev Log: Try to fix the build after r244923 Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp URL: http://llvm.org/v

r244925 - Try to fix new.cpp after r244920 to make it pass

2015-08-13 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Aug 13 13:10:32 2015 New Revision: 244925 URL: http://llvm.org/viewvc/llvm-project?rev=244925&view=rev Log: Try to fix new.cpp after r244920 to make it pass Modified: cfe/trunk/test/CodeGenCXX/new.cpp Modified: cfe/trunk/test/CodeGenCXX/new.cpp URL: http://llvm.org/vie

Re: [PATCH] D7642: Introduce the idea of a minimum libc version

2015-08-13 Thread Reid Kleckner via cfe-commits
We could support that by allowing the MSVC version in the triple to be different from the -fms-compatibility-version on the command line. Today, this might even with with --target. That said, I don't imagine many people are doing this. Microsoft makes it hard for you to do this, and lots of code a

Re: [PATCH] D12034: WindowsARM: ignore calling conventions as described on MSDN

2015-08-14 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: test/Parser/arm-windows-calling-convention-handling.c:2 @@ -1,3 @@ -// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only -verify %s - -int __cdecl cdecl(int a, int b, int c, int d) { // expected-warning {{calling conv

Re: [PATCH] D12034: WindowsARM: ignore calling conventions as described on MSDN

2015-08-14 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: test/Parser/arm-windows-calling-convention-handling.c:2 @@ -1,3 @@ -// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only -verify %s - -int __cdecl cdecl(int a, int b, int c, int d) { // expected-warning {{calling conv

Re: [PATCH] D12037: WindowsX86: long double is x87DoubleExtended on mingw-w64

2015-08-14 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D12037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r245083 - Don't run explicit-modules-missing-files.cpp on Windows

2015-08-14 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Aug 14 14:03:02 2015 New Revision: 245083 URL: http://llvm.org/viewvc/llvm-project?rev=245083&view=rev Log: Don't run explicit-modules-missing-files.cpp on Windows It is flaky due to inability to remove files with open handles. We could paper over it with rm -f, but then th

Re: [PATCH] D11932: [OPENMP] Link libomp.lib on Windows

2015-08-18 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. lgtm http://reviews.llvm.org/D11932 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r245304 - We shouldn't need to pass -fno-strict-aliasing when building clang with clang.

2015-08-18 Thread Reid Kleckner via cfe-commits
On Tue, Aug 18, 2015 at 11:26 AM, Chris Bieneman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > I don’t have access to gcc to test removing the flag there. I see no > reason not to remove it for gcc, but I haven’t and can’t test it. Someone > else will need to test it before committing.

Re: r244266 - [ItaniumCXXABI] Don't import RTTI data for classes with key functions

2015-08-18 Thread Reid Kleckner via cfe-commits
On Tue, Aug 18, 2015 at 3:00 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Aug 14, 2015 at 11:27 AM, Hans Wennborg via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> On Tue, Aug 11, 2015 at 1:41 PM, Hans Wennborg wrote: >> > On Thu, Aug 6, 2015 at 1:56

Re: r244488 - [dllimport] A non-imported class with an imported key can't have a key

2015-08-18 Thread Reid Kleckner via cfe-commits
I merged both of them and tweaked the test case to make it work. On Tue, Aug 18, 2015 at 2:55 PM, Hans Wennborg wrote: > On Tue, Aug 11, 2015 at 9:40 AM, Hans Wennborg wrote: > > On Mon, Aug 10, 2015 at 12:39 PM, Reid Kleckner via cfe-commits > > wrote: > >> Author: r

Re: [PATCH] D12164: Stop treating -static as overriding -fPIC: they are distinct.

2015-08-20 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a reviewer: rnk. rnk added a comment. lgtm http://reviews.llvm.org/D12164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12109: [WinEH] Update to new EH pad/ret signatures (with tokens required)

2015-08-21 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D12109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12271: [X86] Expose the various _rot intrinsics on non-MS platforms

2015-08-24 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. This looks good. As a larger issue, LLVM fast isel definitely won't pattern match this series of shifts and selects to rotl at -O0. There are some users who want branchless constant time rotates re

Re: [PATCH] D12137: Fix 4 typos in test/CodeGenCXX/

2015-08-25 Thread Reid Kleckner via cfe-commits
rnk closed this revision. rnk added a comment. Looks like this landed as r245817. http://reviews.llvm.org/D12137 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r246088 - [ms-inline-asm] Add field access to MS inline asm identifier lookup

2015-08-26 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Aug 26 16:57:20 2015 New Revision: 246088 URL: http://llvm.org/viewvc/llvm-project?rev=246088&view=rev Log: [ms-inline-asm] Add field access to MS inline asm identifier lookup Now we can parse code like this: struct A { int field; }; int f(A o) { __asm mov eax,

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

2015-08-27 Thread Reid Kleckner via cfe-commits
rnk added a comment. MSVC appears to ignore __stdcall on virtual destructors, and I think the correct fix is for us to do the same. See this test case: $ cat t.cpp struct A { virtual __stdcall ~A(); }; A::~A() {} $ cl -c t.cpp Microsoft (R) C/C++ Optimizing Compiler Version 18.00.3110

Re: [PATCH] D12278: [X86] Add MSVC-compatible intrinsics for clac, stac, lgdt and sgdt

2015-08-27 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Headers/Intrin.h:961 @@ +960,3 @@ +static __inline__ void __DEFAULT_FN_ATTRS _lgdt(void *__ptr) { + __builtin_ia32_lgdt(__ptr); +} compnerd wrote: > mkuper wrote: > > compnerd wrote: > > > Why does this need a builtin?

Re: [PATCH] D12087: always_inline codegen rewrite

2015-08-31 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. Comment at: lib/CodeGen/CodeGenModule.cpp:469-470 @@ +468,4 @@ + llvm::LLVMContext &Ctx = getModule().getContext(); + llvm::Function *StubFn = + llvm::Function::Create(FT, Fn->getLinkage(), Name, &getModule()); + assert(StubFn->getName() == Nam

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

2015-09-01 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Sema/SemaType.cpp:2272 @@ -2271,1 +2271,3 @@ // calling convention. + bool is_ctor_or_dtor = + (Entity.getNameKind() == DeclarationName::CXXConstructorName) || s/is_ctor_or_dtor/IsCtorOrDtor/, it's the local vari

Re: [PATCH] D12087: always_inline codegen rewrite

2015-09-01 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a reviewer: rnk. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: lib/CodeGen/CodeGenModule.cpp:463 @@ +462,3 @@ + +// if (U.getUser() == GV) continue; + Commented out code? ===

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

2015-09-03 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Sema/SemaType.cpp:5855-5856 @@ -5854,3 +5854,4 @@ CallingConv CurCC = FT->getCallConv(); - CallingConv FromCC = + CallingConv DefaultCC = Context.getDefaultCallingConvention(IsVariadic, IsStatic); + CallingConv ToCC;

Re: [PATCH] D12579: AST: simplify handling of the mangling

2015-09-03 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/AST/Mangle.cpp:142 @@ +141,3 @@ + // language). + if (MCXX || (CC == CM_Other && TI.getCXXABI() == TargetCXXABI::Microsoft)) +return mangleCXXName(D, Out); TI.getCXXABI().isMicrosoft() is better than the == check.

Re: Patch for PR23472

2015-09-03 Thread Reid Kleckner via cfe-commits
LGTM, but I would expand on the comment a bit: // The ABI says: "It is suggested that it be emitted in the same COMDAT group // as the associated data object." In practice, this doesn't work for non-ELF object formats, so only do it for ELF. On Thu, Sep 3, 2015 at 11:31 AM, Rafael Espínd

Re: [PATCH] D12412: [CodeGen] Point empty %invoke.cont block to successor

2015-09-04 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk added a comment. I think a better fix would be to insert a non-terminator placeholder that doesn't confuse EmitBlock. http://reviews.llvm.org/D12412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

r246880 - Don't use unreachable as a placeholder, it confuses EmitBlock

2015-09-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Sep 4 16:39:15 2015 New Revision: 246880 URL: http://llvm.org/viewvc/llvm-project?rev=246880&view=rev Log: Don't use unreachable as a placeholder, it confuses EmitBlock This fixes an issue raised in D12412, where we generated invalid IR. Thanks to Vedant Kumar for coming u

Re: [PATCH] D12412: [CodeGen] Point empty %invoke.cont block to successor

2015-09-04 Thread Reid Kleckner via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL246880: Don't use unreachable as a placeholder, it confuses EmitBlock (authored by rnk). Changed prior to commit: http://reviews.llvm.org/D12412?vs=33347&id=34080#toc Repository: rL LLVM http://revi

r246889 - Relax partial-init test case for ARM

2015-09-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Sep 4 17:32:51 2015 New Revision: 246889 URL: http://llvm.org/viewvc/llvm-project?rev=246889&view=rev Log: Relax partial-init test case for ARM Modified: cfe/trunk/test/CodeGenCXX/partial-init.cpp Modified: cfe/trunk/test/CodeGenCXX/partial-init.cpp URL: http://llvm.o

Re: [PATCH] D12466: Fix empty -L Path on OSX hosts

2015-09-04 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. This looks fine, just make sure the indentation is right. Phab seems confused. Repository: rL LLVM http://reviews.llvm.org/D12466 ___ cfe-commits ma

r249616 - [WinEH] Don't use lifetime markers for MS catch parameters

2015-10-07 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 7 16:03:41 2015 New Revision: 249616 URL: http://llvm.org/viewvc/llvm-project?rev=249616&view=rev Log: [WinEH] Don't use lifetime markers for MS catch parameters We don't have a good place to put them. Our previous spot was causing us to optimize loads from the exceptio

r249640 - Don't emit exceptional stackrestore cleanups around inalloca functions

2015-10-07 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 7 19:17:45 2015 New Revision: 249640 URL: http://llvm.org/viewvc/llvm-project?rev=249640&view=rev Log: Don't emit exceptional stackrestore cleanups around inalloca functions The backend restores the stack pointer after recovering from an exception. This is similar to r

r249647 - [WinEH] Remove NewMSEH and enable its behavior by default

2015-10-07 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 7 20:13:52 2015 New Revision: 249647 URL: http://llvm.org/viewvc/llvm-project?rev=249647&view=rev Log: [WinEH] Remove NewMSEH and enable its behavior by default Testing has shown that it is at least as reliable as the old landingpad pattern matching code. Removed:

Re: [PATCH] D12832: [Driver] Add support for Windows 10 SDK

2015-10-08 Thread Reid Kleckner via cfe-commits
rnk added a comment. Looks like this got committed. Sorry for the delay, I was travelling. http://reviews.llvm.org/D12832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r249704 - [clang-cl] Make /EHs turn on C++ EH once again

2015-10-08 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Oct 8 12:29:07 2015 New Revision: 249704 URL: http://llvm.org/viewvc/llvm-project?rev=249704&view=rev Log: [clang-cl] Make /EHs turn on C++ EH once again C++ exceptions are still off by default, which is similar to how C++ cleanups are off by default in MSVC. If you use cl

Re: [PATCH] D13453: Always generate cmake config files

2015-10-08 Thread Reid Kleckner via cfe-commits
rnk added a comment. I added this conditional check in r221415, with this message: cmake: Only export targets in the standalone build Trying to fix bots that didn't like the fact that I exported targets that depended on LLVM without exporting targets from LLVM. I assume this has already

r249748 - [WinEH] Push cleanupendpad scopes around exceptional cleanups

2015-10-08 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Oct 8 16:14:56 2015 New Revision: 249748 URL: http://llvm.org/viewvc/llvm-project?rev=249748&view=rev Log: [WinEH] Push cleanupendpad scopes around exceptional cleanups We were only doing this for SEH as a special case. Generalize it to all cleanups. Modified: cfe/trun

r249846 - Fix VFS GCC unittest on Windows

2015-10-09 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Oct 9 11:48:52 2015 New Revision: 249846 URL: http://llvm.org/viewvc/llvm-project?rev=249846&view=rev Log: Fix VFS GCC unittest on Windows Modified: cfe/trunk/unittests/Driver/ToolChainTest.cpp Modified: cfe/trunk/unittests/Driver/ToolChainTest.cpp URL: http://llvm.or

Re: [PATCH] D13375: [MSVC] Fix for http://llvm.org/PR24132: __declspec(property): double invocations of foo() when compiling foo()->propertyName

2015-10-13 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Thanks, sorry for the delay, EH was keeping me busy. =/ http://reviews.llvm.org/D13375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

Re: [PATCH] D6700: Instantiate UnresolvedLookupExpr to MemberExpr when appropriate

2015-10-13 Thread Reid Kleckner via cfe-commits
rnk added a comment. Richard suggested that maybe we formed the wrong AST while parsing the template. I'm not sure that's the case. We have this very explicit logic that controls what AST nodes we form in SemaExprMember.cpp ClassifyImplicitMemberAccess: bool isStaticContext = SemaRef.CXXThis

Re: [PATCH] D6700: Instantiate UnresolvedLookupExpr to MemberExpr when appropriate

2015-10-13 Thread Reid Kleckner via cfe-commits
rnk updated this revision to Diff 37283. rnk added a comment. - Rebase http://reviews.llvm.org/D6700 Files: lib/Sema/TreeTransform.h test/SemaTemplate/instantiate-using-decl.cpp Index: test/SemaTemplate/instantiate-using-decl.cpp

Re: [PATCH] D6700: Diagnose UnresolvedLookupExprs that resolve to instance members in static methods

2015-10-13 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Sema/TreeTransform.h:9138 @@ +9137,3 @@ + isa(D)) +return getSema().BuildPossibleImplicitMemberExpr( +SS, SourceLocation(), R, /*TemplateArgs=*/nullptr, I believe this will always fail, so one

Re: [PATCH] D6700: Diagnose UnresolvedLookupExprs that resolve to instance members in static methods

2015-10-13 Thread Reid Kleckner via cfe-commits
rnk updated this revision to Diff 37302. rnk added a comment. - Diagnose instance members rather than pretending to build an expr http://reviews.llvm.org/D6700 Files: include/clang/Sema/Sema.h lib/Sema/SemaExprMember.cpp lib/Sema/TreeTransform.h test/SemaCXX/using-decl-1.cpp test/Sema

Re: [PATCH] D6700: Diagnose UnresolvedLookupExprs that resolve to instance members in static methods

2015-10-13 Thread Reid Kleckner via cfe-commits
rnk updated this revision to Diff 37303. rnk added a comment. - Remove duplicate tests, beef them up http://reviews.llvm.org/D6700 Files: include/clang/Sema/Sema.h lib/Sema/SemaExprMember.cpp lib/Sema/TreeTransform.h test/SemaCXX/using-decl-1.cpp test/SemaTemplate/instantiate-using-de

Re: [PATCH] D13549: Added new options to ClangFormat VSIX package.

2015-10-15 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D13549#267790, @klimek wrote: > We're waiting for Reid to find somebody who is good at reviewing this in > detail. > Sorry it takes a while, so far we don't have enough trusted Windows experts > in the community :( Oops, I didn't know that. Zac

Re: [PATCH] D6700: Diagnose UnresolvedLookupExprs that resolve to instance members in static methods

2015-10-16 Thread Reid Kleckner via cfe-commits
This revision was automatically updated to reflect the committed changes. rnk marked an inline comment as done. Closed by commit rL250592: Diagnose UnresolvedLookupExprs that resolve to instance members in static… (authored by rnk). Changed prior to commit: http://reviews.llvm.org/D6700?vs=3730

r250592 - Diagnose UnresolvedLookupExprs that resolve to instance members in static methods

2015-10-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Oct 16 19:19:04 2015 New Revision: 250592 URL: http://llvm.org/viewvc/llvm-project?rev=250592&view=rev Log: Diagnose UnresolvedLookupExprs that resolve to instance members in static methods During the initial template parse for this code, 'member' is unresolved and we don't

Re: [PATCH] D13554: [X86] Enable soft float ABI for x86

2015-10-16 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Sorry, took me a while to read the document and understand why you want `float inreg`. I think we overload LLVM inreg to mean "put this float / double in an SSE register", but I think it's rea

Re: [PATCH] D13336: [MSVC] 'property' with an empty array in array subscript expression.

2015-10-19 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk added a comment. I spent some time reading through the pseudo-object implementation in clang, but I still don't understand it. We should ask John if he can review this. My gut feeling is that we shouldn't have a global DenseMap in Sema just for this. Should we h

r250774 - Revert "Diagnose UnresolvedLookupExprs that resolve to instance members in static methods"

2015-10-19 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Oct 19 19:31:42 2015 New Revision: 250774 URL: http://llvm.org/viewvc/llvm-project?rev=250774&view=rev Log: Revert "Diagnose UnresolvedLookupExprs that resolve to instance members in static methods" This reverts commit r250592. It has issues around unevaluated contexts, li

r250839 - Look through using decls when classifying implicit member access

2015-10-20 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Oct 20 13:12:08 2015 New Revision: 250839 URL: http://llvm.org/viewvc/llvm-project?rev=250839&view=rev Log: Look through using decls when classifying implicit member access Clang will now accept this valid C++11 code: struct A { int field; }; struct B : A { using A::

r250844 - Add back null check removed accidentally in r250554

2015-10-20 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Oct 20 13:45:57 2015 New Revision: 250844 URL: http://llvm.org/viewvc/llvm-project?rev=250844&view=rev Log: Add back null check removed accidentally in r250554 Fixes PR25262 Added: cfe/trunk/test/Frontend/force-include-not-found.c Modified: cfe/trunk/lib/Lex/HeaderS

r250856 - Re-land r250592 without rejecting field refs in unevaluated contexts

2015-10-20 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Oct 20 16:04:13 2015 New Revision: 250856 URL: http://llvm.org/viewvc/llvm-project?rev=250856&view=rev Log: Re-land r250592 without rejecting field refs in unevaluated contexts This time, I went with the first approach from http://reviews.llvm.org/D6700, where clang actually

r250954 - [Driver] Alias -fvisibility=internal to -fvisibility=hidden

2015-10-21 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 21 17:01:02 2015 New Revision: 250954 URL: http://llvm.org/viewvc/llvm-project?rev=250954&view=rev Log: [Driver] Alias -fvisibility=internal to -fvisibility=hidden The ELF symbol visibilities are: - internal: Not visibile across DSOs, cannot pass address across DSOs - hi

Re: [PATCH] D13978: [X86] Support MCU psABI when marking inregs

2015-10-23 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm with the suggested simplification. Comment at: lib/CodeGen/TargetInfo.cpp:857 @@ -854,3 +856,3 @@ IsWin32StructABI(Win32StructABI), - IsSoftFloatABI(SoftFloatABI),

Re: r251387 - [coroutines] Creation of promise object, lookup of operator co_await, building

2015-10-27 Thread Reid Kleckner via cfe-commits
On Mon, Oct 26, 2015 at 11:02 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ScopeInfo.h?rev=251387&r1=251386&r2=251387&view=diff > > =

r251412 - Widen this enum bitfield by one bit to prevent sign extension in MSVC

2015-10-27 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Oct 27 11:24:03 2015 New Revision: 251412 URL: http://llvm.org/viewvc/llvm-project?rev=251412&view=rev Log: Widen this enum bitfield by one bit to prevent sign extension in MSVC Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h Modified: cfe/trunk/include/clang/Sema/Sc

r251419 - [ms-inline-asm] Test case for alignment directive change in LLVM r251418

2015-10-27 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Oct 27 12:34:29 2015 New Revision: 251419 URL: http://llvm.org/viewvc/llvm-project?rev=251419&view=rev Log: [ms-inline-asm] Test case for alignment directive change in LLVM r251418 Added: cfe/trunk/test/CodeGen/ms-inline-asm-align.c Added: cfe/trunk/test/CodeGen/ms-inli

Re: [PATCH] D13969: Tweak how -Wunused-value interacts with macros

2015-10-27 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm, I don't feel strongly about whether -fms-compatibility matters, but I'd prefer that it didn't. Comment at: lib/Sema/SemaStmt.cpp:224 @@ +223,3 @@ + // but its implementation

r251567 - Fix the calling convention of Mingw64 long double values

2015-10-28 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 28 17:29:52 2015 New Revision: 251567 URL: http://llvm.org/viewvc/llvm-project?rev=251567&view=rev Log: Fix the calling convention of Mingw64 long double values GCC uses the x87DoubleExtended model for long doubles, and passes them indirectly by address through function

r251576 - [WinEH] Mark calls inside cleanups as noinline

2015-10-28 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 28 18:06:42 2015 New Revision: 251576 URL: http://llvm.org/viewvc/llvm-project?rev=251576&view=rev Log: [WinEH] Mark calls inside cleanups as noinline This works around PR25162. The MSVC tables make it very difficult to correctly inline a C++ destructor that contains try

Re: [PATCH] D14179: Remove some legacy mingw-w64 gcc struct info

2015-10-29 Thread Reid Kleckner via cfe-commits
rnk added a comment. Rafael, we don't support pre GCC 4.7 mingw right? They switched to thiscall on 32bit, right? I think we can take a break for x64. http://reviews.llvm.org/D14179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

r251810 - Sink some PTHManager includes out of Preprocessor.h

2015-11-02 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Nov 2 11:53:55 2015 New Revision: 251810 URL: http://llvm.org/viewvc/llvm-project?rev=251810&view=rev Log: Sink some PTHManager includes out of Preprocessor.h This reduces the number of .cpp files needed to be rebuilt after touching OnDiskHashTable from 120 to 21 for me. M

r251828 - [PTH] Fix data length used for stat cache entries

2015-11-02 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Nov 2 14:47:31 2015 New Revision: 251828 URL: http://llvm.org/viewvc/llvm-project?rev=251828&view=rev Log: [PTH] Fix data length used for stat cache entries This came up in a boost build, which apparently uses PTH. This was broken in r187619 when we migrated it to uses llvm

[PATCH] D14259: The maximum alignment of std::aligned_storage applies to all Windows compilers

2015-11-02 Thread Reid Kleckner via cfe-commits
rnk created this revision. rnk added reviewers: danalbert, mclow.lists. rnk added a subscriber: cfe-commits. According to Clang's sources, the maximum supported storage alignment is a property of the COFF object file format. Fixes building libc++ with Clang on Windows. http://reviews.llvm.org/D1

Re: [PATCH] D13925: Implement __attribute__((internal_linkage))

2015-11-02 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a reviewer: rnk. rnk added a comment. This revision is now accepted and ready to land. I'm happy with this. Richard, what do you think? Repository: rL LLVM http://reviews.llvm.org/D13925 ___ cfe-commits maili

Re: [PATCH] D14179: Remove some legacy mingw-w64 gcc struct info

2015-11-02 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Yeah, lgtm. http://reviews.llvm.org/D14179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-11-02 Thread Reid Kleckner via cfe-commits
rnk added a comment. Will Clang be able to compile the last few stable mingw-w64 releases with this change? I'd like that to keep working. http://reviews.llvm.org/D14180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: [PATCH] D14285: [x86] Additional small fix for MCU psABI support

2015-11-03 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D14285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-11-03 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D14180#279962, @martell wrote: > In http://reviews.llvm.org/D14180#279651, @rnk wrote: > > > Will Clang be able to compile the last few stable mingw-w64 releases with > > this change? I'd like that to keep working. > > > Clang has not been able to

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-11-03 Thread Reid Kleckner via cfe-commits
rnk added a comment. I'd like clang to work out of the box with mingw-w64 releases from at least the past year. You're mostly interested in the non-builtin parts of -fms-extensions, like declspec and UUID, right? One way we could do this is to enable -fms-extensions in mingw but then suppress t

Re: [PATCH] D13925: Implement __attribute__((internal_linkage))

2015-11-04 Thread Reid Kleckner via cfe-commits
rnk added a comment. This is an interesting test case, though: inline int foo() { static int __attribute__((internal_linkage)) x; return x++; } If foo gets inlined, those call sites will use and update 'x'. If foo is not inlined, one definition of foo will win, and every caller will

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-11-04 Thread Reid Kleckner via cfe-commits
rnk added a comment. > ! In http://reviews.llvm.org/D14180#280193, @martell wrote: > > > You can then change the mingw headers to use > > `__has_builtin(_InterlockedCompareExchange)` to provide compatibility with > > either mode. > > > Yes I could do this but this still won't work with t

r252107 - Fix nullptr crash in -Wthread-safety-beta

2015-11-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Nov 4 18:24:01 2015 New Revision: 252107 URL: http://llvm.org/viewvc/llvm-project?rev=252107&view=rev Log: Fix nullptr crash in -Wthread-safety-beta Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h cfe/trunk/test/SemaCXX/warn-thread-safety-an

r252659 - [COFF] Don't try to emit weak aliases on COFF

2015-11-10 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Nov 10 16:23:58 2015 New Revision: 252659 URL: http://llvm.org/viewvc/llvm-project?rev=252659&view=rev Log: [COFF] Don't try to emit weak aliases on COFF This comes up when a derived class destructor is equivalent to a base class destructor defined in the same TU, and we try

Re: [PATCH] D11437: Correct x86_64 fp128 calling convention

2015-08-06 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D11437#211165, @chh wrote: > I tried to make X86_64ABIInfo::classify to return (Lo=SSE, Hi=NoClass) for > fp128 long double type, or (Lo=SSE, Hi=SSEUp). That is not enough, although > making fp128 Complex type to "Memory" worked. > > X86_64ABIInfo

Re: [PATCH] D11437: Correct x86_64 fp128 calling convention

2015-08-06 Thread Reid Kleckner via cfe-commits
rnk commandeered this revision. rnk added a reviewer: chh. rnk added a comment. Comandeering so I can upload my diff. http://reviews.llvm.org/D11437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D11437: Correct x86_64 fp128 calling convention

2015-08-06 Thread Reid Kleckner via cfe-commits
rnk updated this revision to Diff 31457. rnk updated the summary for this revision. rnk added a comment. - Update classify and GetByteVectorType http://reviews.llvm.org/D11437 Files: lib/CodeGen/TargetInfo.cpp test/CodeGen/x86_64-fp128.c Index: test/CodeGen/x86_64-fp128.c =

<    4   5   6   7   8   9   10   11   12   13   >