r282569 - [Headers] Replace stray indentation with tabs with spaces. NFC.

2016-09-28 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Sep 28 04:34:51 2016 New Revision: 282569 URL: http://llvm.org/viewvc/llvm-project?rev=282569=rev Log: [Headers] Replace stray indentation with tabs with spaces. NFC. This matches the rest of the surrounding file. Modified: cfe/trunk/lib/Headers/intrin.h

r282900 - [MS] Implement __iso_volatile loads/stores as builtins

2016-09-30 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Sep 30 14:13:46 2016 New Revision: 282900 URL: http://llvm.org/viewvc/llvm-project?rev=282900=rev Log: [MS] Implement __iso_volatile loads/stores as builtins These are supposed to produce the same as normal volatile pointer loads/stores. When -volatile:ms is specified,

r309619 - [AArch64] Don't define __LP64__ when targeting Windows

2017-07-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 31 13:40:53 2017 New Revision: 309619 URL: http://llvm.org/viewvc/llvm-project?rev=309619=rev Log: [AArch64] Don't define __LP64__ when targeting Windows Windows/ARM64 is a LLP64 environment, so don't set this default define. Differential Revision:

r309618 - [test] Fix mistagged CHECK-NOT-lines for AARCH64-DARWIN in Preprocessor/init.c

2017-07-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 31 13:40:48 2017 New Revision: 309618 URL: http://llvm.org/viewvc/llvm-project?rev=309618=rev Log: [test] Fix mistagged CHECK-NOT-lines for AARCH64-DARWIN in Preprocessor/init.c Differential Revision: https://reviews.llvm.org/D36099 Modified:

r309620 - [Attr] Make TargetWindows and TargetMicrosoftCXXABI match on aarch64 as well

2017-07-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 31 13:40:59 2017 New Revision: 309620 URL: http://llvm.org/viewvc/llvm-project?rev=309620=rev Log: [Attr] Make TargetWindows and TargetMicrosoftCXXABI match on aarch64 as well Differential Revision: https://reviews.llvm.org/D36100 Modified:

r309598 - [Targets] Move addCygMingDefines into the arch-independent Targets.cpp (NFC)

2017-07-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 31 11:17:38 2017 New Revision: 309598 URL: http://llvm.org/viewvc/llvm-project?rev=309598=rev Log: [Targets] Move addCygMingDefines into the arch-independent Targets.cpp (NFC) This fixes a dependency inconsistency, where addMinGWDefines in Targets.cpp (used from

r310798 - [AArch64] Add support for a MinGW AArch64 target

2017-08-13 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sun Aug 13 12:42:17 2017 New Revision: 310798 URL: http://llvm.org/viewvc/llvm-project?rev=310798=rev Log: [AArch64] Add support for a MinGW AArch64 target Differential Revision: https://reviews.llvm.org/D36364 Modified: cfe/trunk/lib/Basic/Targets.cpp

r307933 - [AArch64] Produce the right kind of va_arg for windows

2017-07-13 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Jul 13 10:59:14 2017 New Revision: 307933 URL: http://llvm.org/viewvc/llvm-project?rev=307933=rev Log: [AArch64] Produce the right kind of va_arg for windows On windows on arm64, the va_list is a plain pointer. Differential Revision: https://reviews.llvm.org/D35008

r308209 - Update use of llvm::CallingConv:X86_64_Win64 after LLVM commit r308208

2017-07-17 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 17 13:05:56 2017 New Revision: 308209 URL: http://llvm.org/viewvc/llvm-project?rev=308209=rev Log: Update use of llvm::CallingConv:X86_64_Win64 after LLVM commit r308208 Modified: cfe/trunk/lib/CodeGen/CGCall.cpp cfe/trunk/test/CodeGen/ms_abi.c

r308218 - [AArch64] Add support for __builtin_ms_va_list on aarch64

2017-07-17 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 17 13:49:45 2017 New Revision: 308218 URL: http://llvm.org/viewvc/llvm-project?rev=308218=rev Log: [AArch64] Add support for __builtin_ms_va_list on aarch64 Move builtins from the x86 specific scope into the global scope. Their use is still limited to x86_64 and

r309314 - [Headers] Add a test for arm64intr.h

2017-07-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Jul 27 12:45:13 2017 New Revision: 309314 URL: http://llvm.org/viewvc/llvm-project?rev=309314=rev Log: [Headers] Add a test for arm64intr.h This tests the ARM64 specific constants added in SVN r309081, similar to the one added in r277928 for armintr.h. Differential

r310303 - [AArch64] Ignore stdcall and similar on aarch64/windows

2017-08-07 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Aug 7 13:52:04 2017 New Revision: 310303 URL: http://llvm.org/viewvc/llvm-project?rev=310303=rev Log: [AArch64] Ignore stdcall and similar on aarch64/windows This is similar to what's done on arm and x86_64, where these calling conventions are silently ignored, as in

r310222 - [test] Remove an unintentional -x cl flag in an aarch64-windows test

2017-08-06 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sun Aug 6 12:57:49 2017 New Revision: 310222 URL: http://llvm.org/viewvc/llvm-project?rev=310222=rev Log: [test] Remove an unintentional -x cl flag in an aarch64-windows test This test was only intended to test compiling C, not OpenCL. Differential Revision:

[libunwind] r313470 - Fix a typo in the documentation. NFC.

2017-09-16 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sat Sep 16 13:52:05 2017 New Revision: 313470 URL: http://llvm.org/viewvc/llvm-project?rev=313470=rev Log: Fix a typo in the documentation. NFC. Modified: libunwind/trunk/docs/index.rst Modified: libunwind/trunk/docs/index.rst URL:

r313232 - [Headers] Fix the return type of _InterlockedCompareExchange_rel

2017-09-14 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Sep 14 00:04:59 2017 New Revision: 313232 URL: http://llvm.org/viewvc/llvm-project?rev=313232=rev Log: [Headers] Fix the return type of _InterlockedCompareExchange_rel This was a typo in SVN r282447, where it was added. Modified: cfe/trunk/lib/Headers/intrin.h

[libunwind] r315090 - [docs] Mention that SjLj works on any OS on the archs where supported by the compiler

2017-10-06 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Oct 6 12:14:07 2017 New Revision: 315090 URL: http://llvm.org/viewvc/llvm-project?rev=315090=rev Log: [docs] Mention that SjLj works on any OS on the archs where supported by the compiler Differential Revision: https://reviews.llvm.org/D38576 Modified:

[libunwind] r314716 - Add CMake support for building for MinGW

2017-10-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 2 13:46:37 2017 New Revision: 314716 URL: http://llvm.org/viewvc/llvm-project?rev=314716=rev Log: Add CMake support for building for MinGW This section is similar to what already exists in libcxx and libcxxabi. Differential Revision:

[libcxx] r312617 - Redirect strftime_l to the locale-ignorant strftime on mingw

2017-09-05 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Sep 5 22:07:25 2017 New Revision: 312617 URL: http://llvm.org/viewvc/llvm-project?rev=312617=rev Log: Redirect strftime_l to the locale-ignorant strftime on mingw _strftime_l is only available in the numbered msvcrt versions (starting from msvcr80.dll). In the default

[libcxx] r313122 - Use CMAKE_AR instead of the system default 'ar' for merging static libraries

2017-09-13 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Sep 12 23:55:44 2017 New Revision: 313122 URL: http://llvm.org/viewvc/llvm-project?rev=313122=rev Log: Use CMAKE_AR instead of the system default 'ar' for merging static libraries Using the system default 'ar' might not be the right choice when cross compiling. Don't

[libcxx] r313072 - Handle object files named *.obj in merge_archives.py

2017-09-12 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Sep 12 13:54:15 2017 New Revision: 313072 URL: http://llvm.org/viewvc/llvm-project?rev=313072=rev Log: Handle object files named *.obj in merge_archives.py Differential Revision: https://reviews.llvm.org/D37133 Modified: libcxx/trunk/utils/merge_archives.py

[libunwind] r314492 - Skip building x86 parts of UnwindRegisters*.S when targeting SjLj

2017-09-29 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Sep 28 23:09:09 2017 New Revision: 314492 URL: http://llvm.org/viewvc/llvm-project?rev=314492=rev Log: Skip building x86 parts of UnwindRegisters*.S when targeting SjLj This extends SVN r314197 from the arm parts to the whole file. Differential Revision:

[libunwind] r314635 - SjLj: Fix building after SVN r314632

2017-10-01 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sun Oct 1 13:22:40 2017 New Revision: 314635 URL: http://llvm.org/viewvc/llvm-project?rev=314635=rev Log: SjLj: Fix building after SVN r314632 The code moved from Unwind_AppleExtras.cpp to Unwind-sjlj.c needed a few minor modifications to build as C instead of C++.

[libunwind] r314695 - Fix building on macOS after SVN r314492

2017-10-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 2 11:14:06 2017 New Revision: 314695 URL: http://llvm.org/viewvc/llvm-project?rev=314695=rev Log: Fix building on macOS after SVN r314492 That commit incorrectly expanded the assumption that defined(__APPLE__) implies SjLj exception handling, which only is true

[libunwind] r314196 - Correct data types in the _Unwind_FunctionContext struct

2017-09-26 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Sep 26 01:07:17 2017 New Revision: 314196 URL: http://llvm.org/viewvc/llvm-project?rev=314196=rev Log: Correct data types in the _Unwind_FunctionContext struct This makes it match the definition used within llvm and in libgcc, we previously got the wrong layout in 64

[libunwind] r314197 - Skip building unused parts when targeting SJLJ

2017-09-26 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Sep 26 01:07:26 2017 New Revision: 314197 URL: http://llvm.org/viewvc/llvm-project?rev=314197=rev Log: Skip building unused parts when targeting SJLJ When SJLJ exceptions are used, those functions aren't used. This fixes build failures on ARM with SJLJ enabled (e.g.

r314138 - [MinGW] Don't link -lmsvcrt if a different msvcrt version is to be linked

2017-09-25 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Sep 25 12:24:45 2017 New Revision: 314138 URL: http://llvm.org/viewvc/llvm-project?rev=314138=rev Log: [MinGW] Don't link -lmsvcrt if a different msvcrt version is to be linked Differential Revision: https://reviews.llvm.org/D37530 Added:

r312224 - [ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW

2017-08-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Aug 31 01:29:59 2017 New Revision: 312224 URL: http://llvm.org/viewvc/llvm-project?rev=312224=rev Log: [ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW This fixes cases where dynamic classes produced RTTI data with external linkage, producing

r312229 - Revert r312224: "[ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW"

2017-08-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Aug 31 02:46:27 2017 New Revision: 312229 URL: http://llvm.org/viewvc/llvm-project?rev=312229=rev Log: Revert r312224: "[ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW" Breaks on buildbot:

[libcxx] r312498 - Add MINGW_LIBRARIES to the linker flags

2017-09-04 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Sep 4 12:46:53 2017 New Revision: 312498 URL: http://llvm.org/viewvc/llvm-project?rev=312498=rev Log: Add MINGW_LIBRARIES to the linker flags This is essential when building with -nodefaultlibs. This is similar to what already is done in libcxxabi in SVN r302760.

r312306 - Reland r312224 - [ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW

2017-09-01 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Aug 31 23:41:55 2017 New Revision: 312306 URL: http://llvm.org/viewvc/llvm-project?rev=312306=rev Log: Reland r312224 - [ItaniumCXXABI] Always use linkonce_odr linkage for RTTI data on MinGW This fixes cases where dynamic classes produced RTTI data with external

r315567 - [COFF, ARM64] Add MS builtins __dmb, __dsb, __isb

2017-10-12 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Oct 12 00:05:37 2017 New Revision: 315567 URL: http://llvm.org/viewvc/llvm-project?rev=315567=rev Log: [COFF, ARM64] Add MS builtins __dmb, __dsb, __isb Differential Revision: https://reviews.llvm.org/D38821 Added:

[libunwind] r315498 - Support DWARF unwinding on i386 windows

2017-10-11 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Oct 11 13:06:18 2017 New Revision: 315498 URL: http://llvm.org/viewvc/llvm-project?rev=315498=rev Log: Support DWARF unwinding on i386 windows In practice, with code built with clang, there are still unresolved issues with DW_CFA_GNU_args_size though. Differential

r316149 - [Headers] Fix typoed __ARM_DWARF_EH__ ifdefs

2017-10-19 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Oct 19 00:40:45 2017 New Revision: 316149 URL: http://llvm.org/viewvc/llvm-project?rev=316149=rev Log: [Headers] Fix typoed __ARM_DWARF_EH__ ifdefs These typos appeared in SVN r309226 and r309327. Modified: cfe/trunk/lib/Headers/unwind.h Modified:

[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.

[libunwind] r316415 - Add missing checks for register number

2017-10-24 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Oct 24 00:16:40 2017 New Revision: 316415 URL: http://llvm.org/viewvc/llvm-project?rev=316415=rev Log: Add missing checks for register number Most other cases that touch savedRegisters[reg] have got this check, but these three seemed to lack it. Differential Revision:

[libunwind] r316364 - Abstract rwlocks into a class, provide a SRW lock implementation for windows

2017-10-23 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 23 12:29:36 2017 New Revision: 316364 URL: http://llvm.org/viewvc/llvm-project?rev=316364=rev Log: Abstract rwlocks into a class, provide a SRW lock implementation for windows This requires _WIN32_WINNT >= 0x0600. If someone wants to spend effort on supporting

[libcxx] r318902 - Allow to set locale on Windows.

2017-11-23 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Nov 23 02:38:18 2017 New Revision: 318902 URL: http://llvm.org/viewvc/llvm-project?rev=318902=rev Log: Allow to set locale on Windows. Fix the problem PR31516 with setting locale on Windows by wrapping _locale_t with a pointer-like class. Reduces 74 test failures in

[libunwind] r319300 - Support building libunwind as a DLL

2017-11-29 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Nov 29 00:21:12 2017 New Revision: 319300 URL: http://llvm.org/viewvc/llvm-project?rev=319300=rev Log: Support building libunwind as a DLL Differential Revision: https://reviews.llvm.org/D40483 Modified: libunwind/trunk/CMakeLists.txt

[libunwind] r319299 - [CMake] Use the variable from the right project in install-unwind

2017-11-29 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Nov 29 00:20:57 2017 New Revision: 319299 URL: http://llvm.org/viewvc/llvm-project?rev=319299=rev Log: [CMake] Use the variable from the right project in install-unwind Modified: libunwind/trunk/src/CMakeLists.txt Modified: libunwind/trunk/src/CMakeLists.txt URL:

r319145 - [test] Fix a typo in a test comment. NFC.

2017-11-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Nov 27 21:47:24 2017 New Revision: 319145 URL: http://llvm.org/viewvc/llvm-project?rev=319145=rev Log: [test] Fix a typo in a test comment. NFC. Modified: cfe/trunk/test/CodeGenCXX/dllexport.cpp Modified: cfe/trunk/test/CodeGenCXX/dllexport.cpp URL:

r318511 - [MinGW] Define __ARM_DWARF_EH__ for MinGW/ARM

2017-11-17 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Nov 17 00:06:49 2017 New Revision: 318511 URL: http://llvm.org/viewvc/llvm-project?rev=318511=rev Log: [MinGW] Define __ARM_DWARF_EH__ for MinGW/ARM Since SVN r318510, the MinGW/ARM configuration defaults to dwarf exception handling. Differential Revision:

[libcxx] r318810 - Remove a broken win32 locale function redirection

2017-11-21 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Nov 21 14:41:15 2017 New Revision: 318810 URL: http://llvm.org/viewvc/llvm-project?rev=318810=rev Log: Remove a broken win32 locale function redirection One can't replace vsscanf(_l) with a sscanf(_l) that doesn't take a va_list. This has been untouched since it was

[libunwind] r318446 - Remove a FIXME about truncated section names

2017-11-16 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Nov 16 11:36:48 2017 New Revision: 318446 URL: http://llvm.org/viewvc/llvm-project?rev=318446=rev Log: Remove a FIXME about truncated section names If the linker chose to store the full section name instead of truncating it, this field doesn't contain a truncated name,

[libunwind] r318383 - [docs] Mention that dwarf unwinding should be supported on arm64/windows

2017-11-15 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Nov 15 23:16:36 2017 New Revision: 318383 URL: http://llvm.org/viewvc/llvm-project?rev=318383=rev Log: [docs] Mention that dwarf unwinding should be supported on arm64/windows This didn't require any further changes to libunwind as long as win64 in general is handled

r317504 - [X86] Add 3dnow and 3dnowa to the list of valid target features

2017-11-06 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Nov 6 12:33:13 2017 New Revision: 317504 URL: http://llvm.org/viewvc/llvm-project?rev=317504=rev Log: [X86] Add 3dnow and 3dnowa to the list of valid target features These were missed in SVN r316783, which broke compiling mingw-w64 CRT. Differential Revision:

[libunwind] r317192 - Fix building for ARM with dwarf exception handling

2017-11-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Nov 2 01:16:16 2017 New Revision: 317192 URL: http://llvm.org/viewvc/llvm-project?rev=317192=rev Log: Fix building for ARM with dwarf exception handling The previous definition of _LIBUNWIND_HIGHEST_DWARF_REGISTER seems to be a copy of the ARM64 value (introduced in

[libunwind] r317423 - Add ifdefs around ELF specific parts of UnwindRegisters*.S for arm

2017-11-04 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sat Nov 4 14:01:31 2017 New Revision: 317423 URL: http://llvm.org/viewvc/llvm-project?rev=317423=rev Log: Add ifdefs around ELF specific parts of UnwindRegisters*.S for arm This allows using dwarf exceptions on MinGW/ARM. Differential Revision:

[libunwind] r316843 - Restore arch specific lastDwarfRegNum in builds without _LIBUNWIND_IS_NATIVE_ONLY

2017-10-28 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sat Oct 28 13:19:49 2017 New Revision: 316843 URL: http://llvm.org/viewvc/llvm-project?rev=316843=rev Log: Restore arch specific lastDwarfRegNum in builds without _LIBUNWIND_IS_NATIVE_ONLY This restores the previous behaviour of the Registers_* classes after SVN r316745.

[libunwind] r316559 - Fix the context/cursor size for ARM with WMMX enabled

2017-10-25 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Oct 25 01:07:19 2017 New Revision: 316559 URL: http://llvm.org/viewvc/llvm-project?rev=316559=rev Log: Fix the context/cursor size for ARM with WMMX enabled This was missed in SVN r274744 when the WMMX part was made optional; when made optional, some struct fields were

[libunwind] r316942 - Change unw_word_t to always have the same size as the pointer size

2017-10-30 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 30 12:06:34 2017 New Revision: 316942 URL: http://llvm.org/viewvc/llvm-project?rev=316942=rev Log: Change unw_word_t to always have the same size as the pointer size This matches the original libunwind API. This also unifies the type between ARM EHABI and the other

r331807 - [Driver] Don't add -dwarf-column-info when using -gcodeview on non-msvc targets

2018-05-08 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue May 8 13:55:23 2018 New Revision: 331807 URL: http://llvm.org/viewvc/llvm-project?rev=331807=rev Log: [Driver] Don't add -dwarf-column-info when using -gcodeview on non-msvc targets -dwarf-column-info is omitted if -gcodeview is specified for msvc targets at the

r331666 - [Driver] Use -fuse-line-directives by default in MSVC mode

2018-05-07 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon May 7 13:26:09 2018 New Revision: 331666 URL: http://llvm.org/viewvc/llvm-project?rev=331666=rev Log: [Driver] Use -fuse-line-directives by default in MSVC mode Don't use the GNU extension form of line markers in MSVC mode. Differential Revision:

r331858 - Revert "[Driver] Use -fuse-line-directives by default in MSVC mode"

2018-05-09 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed May 9 02:11:01 2018 New Revision: 331858 URL: http://llvm.org/viewvc/llvm-project?rev=331858=rev Log: Revert "[Driver] Use -fuse-line-directives by default in MSVC mode" This reverts commit SVN r331666. It was afterwards pointed out in https://reviews.llvm.org/D46520

r333734 - [X86] Remove leftover semicolons at end of macros

2018-06-01 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Jun 1 02:40:50 2018 New Revision: 333734 URL: http://llvm.org/viewvc/llvm-project?rev=333734=rev Log: [X86] Remove leftover semicolons at end of macros This was missed in a few places in SVN r333613, causing compilation errors if these macros are used e.g. as

[libcxxabi] r335171 - [CMake] Convert paths to the right form in standalone builds on Windows

2018-06-20 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Jun 20 13:59:18 2018 New Revision: 335171 URL: http://llvm.org/viewvc/llvm-project?rev=335171=rev Log: [CMake] Convert paths to the right form in standalone builds on Windows The paths output from llvm-config --cmakedir and from clang --print-libgcc-file-name can

[libunwind] r335169 - [CMake] Convert paths to the right form in standalone builds on Windows

2018-06-20 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Jun 20 13:53:19 2018 New Revision: 335169 URL: http://llvm.org/viewvc/llvm-project?rev=335169=rev Log: [CMake] Convert paths to the right form in standalone builds on Windows The paths output from llvm-config --cmakedir and from clang --print-libgcc-file-name can

[libcxx] r335172 - [CMake] Convert paths to the right form in standalone builds on Windows

2018-06-20 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Jun 20 14:03:34 2018 New Revision: 335172 URL: http://llvm.org/viewvc/llvm-project?rev=335172=rev Log: [CMake] Convert paths to the right form in standalone builds on Windows The paths output from llvm-config --cmakedir and from clang --print-libgcc-file-name can

r331504 - [Driver] Don't warn about unused inputs in config files

2018-05-04 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu May 3 23:05:58 2018 New Revision: 331504 URL: http://llvm.org/viewvc/llvm-project?rev=331504=rev Log: [Driver] Don't warn about unused inputs in config files This avoids warnings about unused linker parameters, just like other flags are ignored if they're from config

[libunwind] r316745 - Express Registers_*::lastDwarfReg using _LIBUNWIND_HIGHEST_DWARF_REGISTER

2017-10-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Oct 27 00:59:01 2017 New Revision: 316745 URL: http://llvm.org/viewvc/llvm-project?rev=316745=rev Log: Express Registers_*::lastDwarfReg using _LIBUNWIND_HIGHEST_DWARF_REGISTER This avoids having to keep the same information duplicated in multiple places. Adjust

[libunwind] r316747 - Add support for dwarf unwinding on windows on x86_64

2017-10-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Oct 27 01:11:36 2017 New Revision: 316747 URL: http://llvm.org/viewvc/llvm-project?rev=316747=rev Log: Add support for dwarf unwinding on windows on x86_64 Clang doesn't currently support building for windows/x86_64 with dwarf by setting command line parameters, but if

[libcxx] r321896 - [cmake] Add a config option LIBCXX_HAS_WIN32_THREAD_API for enforcing win32 threads

2018-01-05 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Jan 5 12:48:29 2018 New Revision: 321896 URL: http://llvm.org/viewvc/llvm-project?rev=321896=rev Log: [cmake] Add a config option LIBCXX_HAS_WIN32_THREAD_API for enforcing win32 threads This allows keeping libcxx using win32 threads even if a version of pthread.h is

[libunwind] r323499 - Don't enable _LIBUNWIND_BUILD_ZERO_COST_APIS if building the SJLJ APIs

2018-01-25 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Jan 25 22:50:07 2018 New Revision: 323499 URL: http://llvm.org/viewvc/llvm-project?rev=323499=rev Log: Don't enable _LIBUNWIND_BUILD_ZERO_COST_APIS if building the SJLJ APIs Otherwise, a shared library build with SJLJ APIs enabled would end up with duplicate symbols.

[libunwind] r322596 - [PPC64] Added vector registers.

2018-01-16 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 16 12:54:10 2018 New Revision: 322596 URL: http://llvm.org/viewvc/llvm-project?rev=322596=rev Log: [PPC64] Added vector registers. The Registers_ppc64 class needed a couple of changes, both to accommodate the new registers as well as to handle the overlaps of VS

r324059 - [MinGW] Emit typeinfo locally for dllimported classes without key functions

2018-02-01 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Feb 1 22:22:35 2018 New Revision: 324059 URL: http://llvm.org/viewvc/llvm-project?rev=324059=rev Log: [MinGW] Emit typeinfo locally for dllimported classes without key functions This fixes building Qt as shared libraries with clang in MinGW mode; previously subclasses

[libunwind] r321667 - [PPC64] Port to ppc64le - initial version

2018-01-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 2 12:10:54 2018 New Revision: 321667 URL: http://llvm.org/viewvc/llvm-project?rev=321667=rev Log: [PPC64] Port to ppc64le - initial version Initial working version of libunwind for PowerPC 64. Tested on little-endian ppc64 host only. Based on the existing PowerPC

[libunwind] r321680 - Reland [PPC64] Port to ppc64le - initial version

2018-01-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 2 14:11:30 2018 New Revision: 321680 URL: http://llvm.org/viewvc/llvm-project?rev=321680=rev Log: Reland [PPC64] Port to ppc64le - initial version Initial working version of libunwind for PowerPC 64. Tested on little-endian ppc64 host only. Based on the existing

[libunwind] r321679 - Don't use a strict larger-than comparison in the check_fit/does_fit static assert

2018-01-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 2 14:11:22 2018 New Revision: 321679 URL: http://llvm.org/viewvc/llvm-project?rev=321679=rev Log: Don't use a strict larger-than comparison in the check_fit/does_fit static assert For builds that only target one architecture, this was required to be an exact

r326173 - [RecordLayout] Don't align to non-power-of-2 sizes when using -mms-bitfields

2018-02-26 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Feb 26 22:27:06 2018 New Revision: 326173 URL: http://llvm.org/viewvc/llvm-project?rev=326173=rev Log: [RecordLayout] Don't align to non-power-of-2 sizes when using -mms-bitfields When targeting GNU/MinGW for i386, the size of the "long double" data type is 12 bytes

r338749 - Work around more GCC miscompiles exposed by r338464.

2018-08-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Aug 2 11:12:08 2018 New Revision: 338749 URL: http://llvm.org/viewvc/llvm-project?rev=338749=rev Log: Work around more GCC miscompiles exposed by r338464. This is the same fix as in r338478, for another occurrance of the same pattern from r338464. See

[libunwind] r338819 - [CMake] Allow building standalone without any llvm-config available

2018-08-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Aug 2 22:51:31 2018 New Revision: 338819 URL: http://llvm.org/viewvc/llvm-project?rev=338819=rev Log: [CMake] Allow building standalone without any llvm-config available This is the same as libcxxabi/libcxx do. Differential Revision: https://reviews.llvm.org/D50135

r339048 - [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-06 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Aug 6 12:48:44 2018 New Revision: 339048 URL: http://llvm.org/viewvc/llvm-project?rev=339048=rev Log: [MinGW] Predefine UNICODE if -municode is specified during compilation Differential Revision: https://reviews.llvm.org/D50199 Modified:

r339170 - [Headers] Expand _Unwind_Exception for SEH on MinGW/x86_64

2018-08-07 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Aug 7 13:02:40 2018 New Revision: 339170 URL: http://llvm.org/viewvc/llvm-project?rev=339170=rev Log: [Headers] Expand _Unwind_Exception for SEH on MinGW/x86_64 This matches how GCC defines this struct. Differential Revision: https://reviews.llvm.org/D50380

[libunwind] r339642 - [cmake] Add MINGW_LIBRARIES to the linker flags

2018-08-14 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Aug 13 23:13:36 2018 New Revision: 339642 URL: http://llvm.org/viewvc/llvm-project?rev=339642=rev Log: [cmake] Add MINGW_LIBRARIES to the linker flags This is essential when building with -nodefaultlibs. In some CMake versions (noticed in 3.5.1), the same libraries

[libcxx] r339697 - [CMake] Fix the LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY option

2018-08-14 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Aug 14 10:33:10 2018 New Revision: 339697 URL: http://llvm.org/viewvc/llvm-project?rev=339697=rev Log: [CMake] Fix the LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY option This option should be available if LIBCXX_ENABLE_SHARED is enabled, not LIBCXX_ENABLE_STATIC.

[libcxxabi] r339503 - Add missing _LIBCXXABI_FUNC_VIS to __gxx_personality_seh0

2018-08-11 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sat Aug 11 12:36:06 2018 New Revision: 339503 URL: http://llvm.org/viewvc/llvm-project?rev=339503=rev Log: Add missing _LIBCXXABI_FUNC_VIS to __gxx_personality_seh0 This was missed in SVN r337754. Modified: libcxxabi/trunk/src/cxa_personality.cpp Modified:

r340334 - [CodeGen] Implicitly set stackrealign on the main function, if custom stack alignment is used

2018-08-21 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Aug 21 13:41:17 2018 New Revision: 340334 URL: http://llvm.org/viewvc/llvm-project?rev=340334=rev Log: [CodeGen] Implicitly set stackrealign on the main function, if custom stack alignment is used If using a custom stack alignment, one is expected to make sure that

r337352 - [AArch64] Define TARGET_HEADER_BUILTIN

2018-07-18 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jul 17 23:15:09 2018 New Revision: 337352 URL: http://llvm.org/viewvc/llvm-project?rev=337352=rev Log: [AArch64] Define TARGET_HEADER_BUILTIN Without it, the new intrinsics became available for all language variants. This was missed in SVN r337327. Modified:

r337146 - [MinGW] Automatically mangle Windows-specific entry points as C

2018-07-15 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Sun Jul 15 22:42:25 2018 New Revision: 337146 URL: http://llvm.org/viewvc/llvm-project?rev=337146=rev Log: [MinGW] Automatically mangle Windows-specific entry points as C This mangles entry points wmain, WinMain, wWinMain or DllMain as C functions, to match the ABI for

[libcxxabi] r337754 - Implement a GCC compatible SEH unwinding personality, __gxx_personality_seh0

2018-07-23 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Jul 23 15:09:23 2018 New Revision: 337754 URL: http://llvm.org/viewvc/llvm-project?rev=337754=rev Log: Implement a GCC compatible SEH unwinding personality, __gxx_personality_seh0 This allows handling SEH based exceptions, with unwind functions provided by libgcc.

[libcxx] r337946 - [windows] Fix warning about comparing ints of different signs

2018-07-25 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Jul 25 11:24:23 2018 New Revision: 337946 URL: http://llvm.org/viewvc/llvm-project?rev=337946=rev Log: [windows] Fix warning about comparing ints of different signs This fixes a warning like this: warning: comparison of integers of different signs:

r340941 - [MinGW] Don't mark external variables as DSO local

2018-08-29 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Aug 29 10:26:58 2018 New Revision: 340941 URL: http://llvm.org/viewvc/llvm-project?rev=340941=rev Log: [MinGW] Don't mark external variables as DSO local Since MinGW supports automatically importing external variables from DLLs even without the DLLImport attribute, we

r336655 - [MinGW] Skip adding default win32 api libraries if -lwindowsapp is specified

2018-07-10 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jul 10 03:46:51 2018 New Revision: 336655 URL: http://llvm.org/viewvc/llvm-project?rev=336655=rev Log: [MinGW] Skip adding default win32 api libraries if -lwindowsapp is specified In this setup, skip adding all the default windows import libraries, if linking to

r336654 - [MinGW] Treat any -lucrt* as replacing -lmsvcrt

2018-07-10 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jul 10 03:46:45 2018 New Revision: 336654 URL: http://llvm.org/viewvc/llvm-project?rev=336654=rev Log: [MinGW] Treat any -lucrt* as replacing -lmsvcrt Since SVN r314138, we check if the user has specified any particular alternative msvcrt/ucrt version, and skip the

r326235 - [MinGW, CrossWindows] Allow passing -static together with -shared

2018-02-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Feb 27 11:42:19 2018 New Revision: 326235 URL: http://llvm.org/viewvc/llvm-project?rev=326235=rev Log: [MinGW, CrossWindows] Allow passing -static together with -shared In these combinations, link a DLL as usual, but pass -Bstatic instead of -Bdynamic to indicate

r329946 - [MinGW] Look for libc++ headers in a triplet prefixed path as well

2018-04-12 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Apr 12 13:07:38 2018 New Revision: 329946 URL: http://llvm.org/viewvc/llvm-project?rev=329946=rev Log: [MinGW] Look for libc++ headers in a triplet prefixed path as well This makes it consistent with libstdc++ and the other default include directories. If these

r330277 - [MinGW] Try to fix asan testing after r330244

2018-04-18 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Apr 18 10:34:29 2018 New Revision: 330277 URL: http://llvm.org/viewvc/llvm-project?rev=330277=rev Log: [MinGW] Try to fix asan testing after r330244 Twines shouldn't be stored as they can refer to temporaries. Modified: cfe/trunk/lib/Driver/ToolChains/MinGW.cpp

r330244 - [MinGW] Look for a cross sysroot relative to the clang binary

2018-04-18 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Apr 18 01:47:26 2018 New Revision: 330244 URL: http://llvm.org/viewvc/llvm-project?rev=330244=rev Log: [MinGW] Look for a cross sysroot relative to the clang binary If found, prefer this over looking for a similar gcc later in the system path. Differential Revision:

r330696 - [GCC] Match a GCC version with a patch suffix without a third version component

2018-04-24 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Apr 24 01:50:11 2018 New Revision: 330696 URL: http://llvm.org/viewvc/llvm-project?rev=330696=rev Log: [GCC] Match a GCC version with a patch suffix without a third version component Previously it would only accept a string as a GCC version if it had either two

r330695 - [test] Fix a typo in a test directory name. NFC.

2018-04-24 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Apr 24 01:49:57 2018 New Revision: 330695 URL: http://llvm.org/viewvc/llvm-project?rev=330695=rev Log: [test] Fix a typo in a test directory name. NFC. Added: cfe/trunk/test/Driver/Inputs/mingw_ubuntu_tree/usr/include/c++/4.8/x86_64-w64-mingw32/

r330710 - [GCC] Don't keep a StringRef to a temporary std::string

2018-04-24 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Apr 24 04:57:02 2018 New Revision: 330710 URL: http://llvm.org/viewvc/llvm-project?rev=330710=rev Log: [GCC] Don't keep a StringRef to a temporary std::string This fixes failures in asan builds and possibly other buildbots as well, after SVN r330696. Prior to that

r326476 - [RecordLayout] Only assert that fundamental type sizes are power of two on MSVC

2018-03-01 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Mar 1 12:22:57 2018 New Revision: 326476 URL: http://llvm.org/viewvc/llvm-project?rev=326476=rev Log: [RecordLayout] Only assert that fundamental type sizes are power of two on MSVC Make types with sizes that aren't a power of two an error (that can be disabled) in

r326180 - [test] Extend the Driver/mingw-msvcrt.c test with a -SAME check. NFC.

2018-02-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Feb 27 00:35:35 2018 New Revision: 326180 URL: http://llvm.org/viewvc/llvm-project?rev=326180=rev Log: [test] Extend the Driver/mingw-msvcrt.c test with a -SAME check. NFC. Modified: cfe/trunk/test/Driver/mingw-msvcrt.c Modified:

r330871 - [Driver] Fix implicit config files from prefixed symlinks

2018-04-25 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Apr 25 14:23:59 2018 New Revision: 330871 URL: http://llvm.org/viewvc/llvm-project?rev=330871=rev Log: [Driver] Fix implicit config files from prefixed symlinks If -no-canonical-prefixes isn't used, the clang executable name used is the one of the actual executable,

r330872 - [test] Add a testcase for MinGW sysroot detections from SVN r330244. NFC.

2018-04-25 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Apr 25 14:24:04 2018 New Revision: 330872 URL: http://llvm.org/viewvc/llvm-project?rev=330872=rev Log: [test] Add a testcase for MinGW sysroot detections from SVN r330244. NFC. Differential Revision: https://reviews.llvm.org/D45985 Added:

r344412 - [MinGW] Allow using LTO when lld is used as linker

2018-10-12 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Oct 12 13:15:51 2018 New Revision: 344412 URL: http://llvm.org/viewvc/llvm-project?rev=344412=rev Log: [MinGW] Allow using LTO when lld is used as linker Differential Revision: https://reviews.llvm.org/D53195 Added: cfe/trunk/test/Driver/mingw-lto.c Modified:

r345003 - [MinGW] Link to correct openmp library

2018-10-23 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 22 23:33:22 2018 New Revision: 345003 URL: http://llvm.org/viewvc/llvm-project?rev=345003=rev Log: [MinGW] Link to correct openmp library Patch by Peiyuan Song! Differential Revision: https://reviews.llvm.org/D53397 Modified:

r345004 - [Driver] Use forward slashes in most linker arguments

2018-10-23 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 22 23:33:26 2018 New Revision: 345004 URL: http://llvm.org/viewvc/llvm-project?rev=345004=rev Log: [Driver] Use forward slashes in most linker arguments libtool inspects the output of $CC -v to detect what object files and libraries are linked in by default. When

r345005 - Revert "[Driver] Use forward slashes in most linker arguments"

2018-10-23 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Oct 23 00:01:55 2018 New Revision: 345005 URL: http://llvm.org/viewvc/llvm-project?rev=345005=rev Log: Revert "[Driver] Use forward slashes in most linker arguments" This reverts commit r345004, as it broke tests when actually run on windows; see e.g.

r345372 - Revert "Reapply: [Driver] Use forward slashes in most linker arguments"

2018-10-26 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Oct 26 01:33:29 2018 New Revision: 345372 URL: http://llvm.org/viewvc/llvm-project?rev=345372=rev Log: Revert "Reapply: [Driver] Use forward slashes in most linker arguments" This reverts commit r345370, as it uncovered even more issues in tests with

r345370 - Reapply: [Driver] Use forward slashes in most linker arguments

2018-10-26 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Oct 26 00:01:59 2018 New Revision: 345370 URL: http://llvm.org/viewvc/llvm-project?rev=345370=rev Log: Reapply: [Driver] Use forward slashes in most linker arguments libtool inspects the output of $CC -v to detect what object files and libraries are linked in by

  1   2   >