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&view=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&view=rev Log: [test] Add a testcase for MinGW sysroot detections from SVN r330244. NFC. Differential Revision: https://reviews.llvm.org/D45985 Added: cfe/trunk/test/Driver

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

2018-05-03 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&view=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 con

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&view=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: https://reviews.

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&view=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 wi

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&view=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

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&view=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

r337352 - [AArch64] Define TARGET_HEADER_BUILTIN

2018-07-17 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&view=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: c

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&view=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 Modi

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&view=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 specif

[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&view=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

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&view=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: http://ll

[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&view=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 U

[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&view=rev Log: Support building libunwind as a DLL Differential Revision: https://reviews.llvm.org/D40483 Modified: libunwind/trunk/CMakeLists.txt libunwind/trunk/src/c

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&view=rev Log: [Targets] Move addCygMingDefines into the arch-independent Targets.cpp (NFC) This fixes a dependency inconsistency, where addMinGWDefines in Targets.cpp (used fro

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&view=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: https://rev

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&view=rev Log: [test] Fix mistagged CHECK-NOT-lines for AARCH64-DARWIN in Preprocessor/init.c Differential Revision: https://reviews.llvm.org/D36099 Modified: cfe/trunk/tes

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&view=rev Log: [Attr] Make TargetWindows and TargetMicrosoftCXXABI match on aarch64 as well Differential Revision: https://reviews.llvm.org/D36100 Modified: cfe/trunk/inclu

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&view=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: https://

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&view=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

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&view=rev Log: [AArch64] Add support for a MinGW AArch64 target Differential Revision: https://reviews.llvm.org/D36364 Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/tru

[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&view=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&view=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, bu

[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&view=rev Log: Restore arch specific lastDwarfRegNum in builds without _LIBUNWIND_IS_NATIVE_ONLY This restores the previous behaviour of the Registers_* classes after SVN r3167

[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&view=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 o

[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&view=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

[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&view=rev Log: Add ifdefs around ELF specific parts of UnwindRegisters*.S for arm This allows using dwarf exceptions on MinGW/ARM. Differential Revision: https://reviews.llvm.o

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&view=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: htt

[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&view=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 handl

[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&view=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 n

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&view=rev Log: [MinGW] Define __ARM_DWARF_EH__ for MinGW/ARM Since SVN r318510, the MinGW/ARM configuration defaults to dwarf exception handling. Differential Revision: https:/

[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&view=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 w

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&view=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/D3500

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&view=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 cfe/

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&view=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 an

r308584 - [AArch64] Produce correct defaultlib directives for windows in MSVC style

2017-07-19 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Wed Jul 19 22:47:06 2017 New Revision: 308584 URL: http://llvm.org/viewvc/llvm-project?rev=308584&view=rev Log: [AArch64] Produce correct defaultlib directives for windows in MSVC style Differential Revision: https://reviews.llvm.org/D35546 Modified: cfe/trunk/lib/Code

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&view=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. Differentia

[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&view=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 V

[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&view=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 symbol

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&view=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 subcla

<    1   2