r346107 - [Driver] Use -Bstatic/dynamic for libc++ on Fuchsia

2018-11-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Nov 4 14:38:47 2018 New Revision: 346107 URL: http://llvm.org/viewvc/llvm-project?rev=346107&view=rev Log: [Driver] Use -Bstatic/dynamic for libc++ on Fuchsia -static relies on lld's behavior, but -Bstatic/dynamic is supported across all linkers. Differential Revision:

[libunwind] r346820 - [CMake] Passthrough CFLAGS when checking the compiler-rt path

2018-11-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Nov 13 16:09:26 2018 New Revision: 346820 URL: http://llvm.org/viewvc/llvm-project?rev=346820&view=rev Log: [CMake] Passthrough CFLAGS when checking the compiler-rt path This is needed when cross-compiling for a different target since CFLAGS may contain additional flags l

r346827 - [CMake] Include clang-apply-replacements in Fuchsia toolchain

2018-11-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Nov 13 20:06:47 2018 New Revision: 346827 URL: http://llvm.org/viewvc/llvm-project?rev=346827&view=rev Log: [CMake] Include clang-apply-replacements in Fuchsia toolchain This is needed for run-clang-tidy.py. Differential Revision: https://reviews.llvm.org/D54505 Modifie

r346997 - [CMake] Explicitly list Linux targets for Fuchsia toolchain

2018-11-15 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Nov 15 13:55:59 2018 New Revision: 346997 URL: http://llvm.org/viewvc/llvm-project?rev=346997&view=rev Log: [CMake] Explicitly list Linux targets for Fuchsia toolchain Not all Linux targets use the ${arch}-linux-gnu spelling, so instead specify the list of Linux explicitl

r347021 - [CMake] Use the correct spelling for armv7 in Fuchsia's toolchain

2018-11-15 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Nov 15 20:09:47 2018 New Revision: 347021 URL: http://llvm.org/viewvc/llvm-project?rev=347021&view=rev Log: [CMake] Use the correct spelling for armv7 in Fuchsia's toolchain We need to explicitly specify the architecture version. Differential Revision: https://reviews.ll

r347025 - [CMake] Support cross-compiling with multi-stage builds

2018-11-15 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Nov 15 20:46:48 2018 New Revision: 347025 URL: http://llvm.org/viewvc/llvm-project?rev=347025&view=rev Log: [CMake] Support cross-compiling with multi-stage builds When using multi-stage builds, we would like support cross-compilation. Example is 2-stage build when the fi

r347026 - [CMake] Support cross-compiling with Fuchsia toolchain build

2018-11-15 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Nov 15 20:50:12 2018 New Revision: 347026 URL: http://llvm.org/viewvc/llvm-project?rev=347026&view=rev Log: [CMake] Support cross-compiling with Fuchsia toolchain build When second stage is being cross-compiled for a different platform we need to build enough of first sta

r347108 - [CMake] Use lld and llvm-objcopy for first stage compiler in Fuchsia

2018-11-16 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Nov 16 15:07:03 2018 New Revision: 347108 URL: http://llvm.org/viewvc/llvm-project?rev=347108&view=rev Log: [CMake] Use lld and llvm-objcopy for first stage compiler in Fuchsia When cross-compiling the second stage to a different target, we need to make sure that the firs

r347378 - [Driver] Link sanitizer runtime deps on Fuchsia when needed

2018-11-20 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Nov 20 20:33:44 2018 New Revision: 347378 URL: http://llvm.org/viewvc/llvm-project?rev=347378&view=rev Log: [Driver] Link sanitizer runtime deps on Fuchsia when needed Even though these deps weren't needed, this makes Fuchsia driver better match other drivers, and it may

r347413 - [Driver] Use --push/pop-state with Sanitizer link deps

2018-11-21 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Nov 21 12:33:12 2018 New Revision: 347413 URL: http://llvm.org/viewvc/llvm-project?rev=347413&view=rev Log: [Driver] Use --push/pop-state with Sanitizer link deps Sanitizer runtime link deps handling passes --no-as-needed because of PR15823, but it never undoes it and thi

r347430 - Revert "[Driver] Use --push/pop-state with Sanitizer link deps"

2018-11-21 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Nov 21 13:59:39 2018 New Revision: 347430 URL: http://llvm.org/viewvc/llvm-project?rev=347430&view=rev Log: Revert "[Driver] Use --push/pop-state with Sanitizer link deps" This reverts commit r347413: older versions of ld.gold that are used by Android don't support --push

r347444 - [Driver] Support XRay on Fuchsia

2018-11-21 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Nov 21 18:36:47 2018 New Revision: 347444 URL: http://llvm.org/viewvc/llvm-project?rev=347444&view=rev Log: [Driver] Support XRay on Fuchsia This enables support for XRay in Fuchsia Clang driver. Differential Revision: https://reviews.llvm.org/D52160 Added: cfe/tru

r348234 - [Sema] Provide -fvisibility-global-new-delete-hidden option

2018-12-03 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Dec 3 19:25:25 2018 New Revision: 348234 URL: http://llvm.org/viewvc/llvm-project?rev=348234&view=rev Log: [Sema] Provide -fvisibility-global-new-delete-hidden option When the global new and delete operators aren't declared, Clang provides and implicit declaration, but t

[libunwind] r355142 - [CMake][libunwind] Define add_target_flags which is missing

2019-02-28 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Feb 28 13:38:59 2019 New Revision: 355142 URL: http://llvm.org/viewvc/llvm-project?rev=355142&view=rev Log: [CMake][libunwind] Define add_target_flags which is missing It's use was introduced in r353084 but its definition is missing. Differential Revision: https://review

r355665 - [runtimes] Move libunwind, libc++abi and libc++ to lib/ and include/

2019-03-07 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Mar 7 21:35:22 2019 New Revision: 355665 URL: http://llvm.org/viewvc/llvm-project?rev=355665&view=rev Log: [runtimes] Move libunwind, libc++abi and libc++ to lib/ and include/ This change is a consequence of the discussion in "RFC: Place libs in Clang-dedicated directori

[libunwind] r355665 - [runtimes] Move libunwind, libc++abi and libc++ to lib/ and include/

2019-03-07 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Mar 7 21:35:22 2019 New Revision: 355665 URL: http://llvm.org/viewvc/llvm-project?rev=355665&view=rev Log: [runtimes] Move libunwind, libc++abi and libc++ to lib/ and include/ This change is a consequence of the discussion in "RFC: Place libs in Clang-dedicated directori

r355666 - [Clang] Include the test directory ommited in r355665

2019-03-07 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Mar 7 22:16:32 2019 New Revision: 355666 URL: http://llvm.org/viewvc/llvm-project?rev=355666&view=rev Log: [Clang] Include the test directory ommited in r355665 This was omitted in r355655 causing the test to fail. Added: cfe/trunk/test/Driver/Inputs/basic_linux_li

Re: r355627 - Recommit "Support attribute used in member funcs of class templates"

2019-03-08 Thread Petr Hosek via cfe-commits
This seems to have broke the 2-stage LTO build of LLVM, the error is: ld.lld: /usr/local/google/home/phosek/clang-llvm/llvm-project/llvm/lib/IR/Constants.cpp:995: static llvm::Constant *llvm::ConstantArray::getImpl(llvm::ArrayType *, ArrayRef): Assertion `V[i]->getType() == Ty->getElementType() &&

r355765 - [CMake] Support stripping and linking output to .build-id directory

2019-03-08 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Mar 8 17:26:55 2019 New Revision: 355765 URL: http://llvm.org/viewvc/llvm-project?rev=355765&view=rev Log: [CMake] Support stripping and linking output to .build-id directory When installing runtimes with install-runtimes-stripped, we don't want to just strip them, we al

r355891 - [Driver] Support object files in addition to static and shared libraries in compiler-rt

2019-03-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Mar 11 19:12:48 2019 New Revision: 355891 URL: http://llvm.org/viewvc/llvm-project?rev=355891&view=rev Log: [Driver] Support object files in addition to static and shared libraries in compiler-rt This change introduces support for object files in addition to static and s

r356970 - [CMake][Fuchsia] Merge static libunwind and libc++abi into libc++ on Darwin

2019-03-25 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Mar 25 17:43:29 2019 New Revision: 356970 URL: http://llvm.org/viewvc/llvm-project?rev=356970&view=rev Log: [CMake][Fuchsia] Merge static libunwind and libc++abi into libc++ on Darwin We want to distribute only a single archive so -lc++ does the right thing and users don'

[libunwind] r357606 - [libunwind] Do not share an object library to create the static/shared libraries

2019-04-03 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Apr 3 09:59:33 2019 New Revision: 357606 URL: http://llvm.org/viewvc/llvm-project?rev=357606&view=rev Log: [libunwind] Do not share an object library to create the static/shared libraries This change is similar to r356150, with the same motivation. Modified: libunwi

[libunwind] r357640 - [libunwind] Export the unw_* symbols as weak symbols

2019-04-03 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Apr 3 14:50:03 2019 New Revision: 357640 URL: http://llvm.org/viewvc/llvm-project?rev=357640&view=rev Log: [libunwind] Export the unw_* symbols as weak symbols libunwind defines the _Unwind_* ABI used by libc++abi. This ABI is a stable quasi-standard common between multi

[libunwind] r357671 - [libunwind] Export the weak alias in Mach-O

2019-04-03 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Apr 3 20:36:35 2019 New Revision: 357671 URL: http://llvm.org/viewvc/llvm-project?rev=357671&view=rev Log: [libunwind] Export the weak alias in Mach-O This is not necessary for ELF since .globl and .weak are mutually exclusive, but is necessary for Mach-O otherwise the s

[libunwind] r358164 - [libunwind] Fix the typo in unw_save_vfp_as_X alias

2019-04-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Apr 11 06:08:44 2019 New Revision: 358164 URL: http://llvm.org/viewvc/llvm-project?rev=358164&view=rev Log: [libunwind] Fix the typo in unw_save_vfp_as_X alias This was accidentaly introduced in r357640. Modified: libunwind/trunk/src/libunwind.cpp Modified: libunwin

r358935 - [CMake] Replace the sanitizer support in runtimes build with multilib

2019-04-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Apr 22 16:31:39 2019 New Revision: 358935 URL: http://llvm.org/viewvc/llvm-project?rev=358935&view=rev Log: [CMake] Replace the sanitizer support in runtimes build with multilib This is a more generic solution; while the sanitizer support can be used only for sanitizer in

r359360 - [Fuchsia] Support multilib for -fsanitize=address and -fno-exceptions

2019-04-26 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Apr 26 17:25:13 2019 New Revision: 359360 URL: http://llvm.org/viewvc/llvm-project?rev=359360&view=rev Log: [Fuchsia] Support multilib for -fsanitize=address and -fno-exceptions This introduces a support for multilibs to Fuchsia driver. Unlike the existing multilibs that

r359359 - [Driver] Support priority for multilibs

2019-04-26 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Apr 26 17:25:11 2019 New Revision: 359359 URL: http://llvm.org/viewvc/llvm-project?rev=359359&view=rev Log: [Driver] Support priority for multilibs When more than one multilib flag matches, try to select the best possible match based on priority. When two different multil

r359603 - [Driver] Support compiler-rt crtbegin.o/crtend.o for Linux

2019-04-30 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Apr 30 12:35:14 2019 New Revision: 359603 URL: http://llvm.org/viewvc/llvm-project?rev=359603&view=rev Log: [Driver] Support compiler-rt crtbegin.o/crtend.o for Linux When compiler-rt is selected as the runtime library for Linux targets use its crtbegin.o/crtend.o impleme

r359706 - [Driver] Explicitly request platform rtlib in the Driver pic test

2019-05-01 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 1 09:52:45 2019 New Revision: 359706 URL: http://llvm.org/viewvc/llvm-project?rev=359706&view=rev Log: [Driver] Explicitly request platform rtlib in the Driver pic test This test checks whether crtbegin.o and crtend.o appear on the link line, but names of these files

[libunwind] r359804 - [gn] Support for building libunwind

2019-05-02 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 2 10:29:37 2019 New Revision: 359804 URL: http://llvm.org/viewvc/llvm-project?rev=359804&view=rev Log: [gn] Support for building libunwind This change introduces support for building libuwind. The library build should be complete, but not all CMake options have been

r359954 - [Driver] Create non-existent directory for -fcrash-diagnostics-dir

2019-05-03 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri May 3 17:55:14 2019 New Revision: 359954 URL: http://llvm.org/viewvc/llvm-project?rev=359954&view=rev Log: [Driver] Create non-existent directory for -fcrash-diagnostics-dir When user specifies non-existent directory to -fcrash-diagnostics-dir, create it rather than fail

r360100 - [Clang][NewPM] Don't bail out if the target machine is empty

2019-05-06 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon May 6 16:24:17 2019 New Revision: 360100 URL: http://llvm.org/viewvc/llvm-project?rev=360100&view=rev Log: [Clang][NewPM] Don't bail out if the target machine is empty This matches the behavior of the old pass manager. There are some targets that don't have target machin

r360313 - [NewPM] Setup Passes for KASan and KMSan

2019-05-08 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 8 23:09:35 2019 New Revision: 360313 URL: http://llvm.org/viewvc/llvm-project?rev=360313&view=rev Log: [NewPM] Setup Passes for KASan and KMSan While ASan and MSan passes were already ported to new PM, the kernel variants weren't setup in the pipeline which makes the

r342358 - [Lexer] Add xray_instrument feature

2018-09-16 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Sep 16 22:25:47 2018 New Revision: 342358 URL: http://llvm.org/viewvc/llvm-project?rev=342358&view=rev Log: [Lexer] Add xray_instrument feature This can be used to detect whether the code is being built with XRay instrumentation using the __has_feature(xray_instrument) pr

r342833 - [CMake] Use internal_linkage rather than always_inline for libc++

2018-09-23 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Sep 23 01:46:31 2018 New Revision: 342833 URL: http://llvm.org/viewvc/llvm-project?rev=342833&view=rev Log: [CMake] Use internal_linkage rather than always_inline for libc++ This is a workaround for PR39053 which was uncovered by D50652 when the default attribute has been

r343652 - [CMake][Fuchsia] Use libc++ ABIv2 for Fuchsia toolchain

2018-10-02 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Oct 2 18:27:00 2018 New Revision: 343652 URL: http://llvm.org/viewvc/llvm-project?rev=343652&view=rev Log: [CMake][Fuchsia] Use libc++ ABIv2 for Fuchsia toolchain We don't need to provide stable ABI and hence we can use the v2. Differential Revision: https://reviews.llv

r343887 - [llvm-nm] Write "no symbol" output to stderr

2018-10-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Oct 5 14:10:03 2018 New Revision: 343887 URL: http://llvm.org/viewvc/llvm-project?rev=343887&view=rev Log: [llvm-nm] Write "no symbol" output to stderr This matches the output of binutils' nm and ensures that any scripts or tools that use nm and expect empty output in ca

[libunwind] r352965 - [libunwind] Remove the remote unwinding support

2019-02-02 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Feb 2 12:54:03 2019 New Revision: 352965 URL: http://llvm.org/viewvc/llvm-project?rev=352965&view=rev Log: [libunwind] Remove the remote unwinding support This is unfinished, unused and incomplete. This could be brought back in the future if there's a desire to build a m

[libunwind] r352966 - [libunwind] Provide placement new definition

2019-02-02 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Feb 2 13:15:49 2019 New Revision: 352966 URL: http://llvm.org/viewvc/llvm-project?rev=352966&view=rev Log: [libunwind] Provide placement new definition While Clang automatically generates the code for placement new, g++ doesn't do that so we need to provide our own defin

[libunwind] r353084 - [CMake] Support CMake variables for setting target, sysroot and toolchain

2019-02-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Feb 4 12:02:26 2019 New Revision: 353084 URL: http://llvm.org/viewvc/llvm-project?rev=353084&view=rev Log: [CMake] Support CMake variables for setting target, sysroot and toolchain CMake has a standard way of setting target triple, sysroot and external toolchain through

[libunwind] r353137 - [CMake] Update lit test configuration

2019-02-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Feb 4 20:44:03 2019 New Revision: 353137 URL: http://llvm.org/viewvc/llvm-project?rev=353137&view=rev Log: [CMake] Update lit test configuration There are several changes: - Don't stringify Pythonized bools (that's why we're Pythonizing them) - Support specifying target

[libunwind] r353208 - [CMake] Support compiler-rt builtins library in tests

2019-02-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Feb 5 11:50:47 2019 New Revision: 353208 URL: http://llvm.org/viewvc/llvm-project?rev=353208&view=rev Log: [CMake] Support compiler-rt builtins library in tests We're building tests with -nostdlib which means that we need to explicitly include the builtins library. When

r353268 - [CMake] Unify scripts for generating VCS headers

2019-02-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Feb 5 19:51:00 2019 New Revision: 353268 URL: http://llvm.org/viewvc/llvm-project?rev=353268&view=rev Log: [CMake] Unify scripts for generating VCS headers Previously, there were two different scripts for generating VCS headers: one used by LLVM and one used by Clang and

r353658 - [CMake][Fuchsia] Drop libclang.so from distribution

2019-02-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Feb 10 21:38:01 2019 New Revision: 353658 URL: http://llvm.org/viewvc/llvm-project?rev=353658&view=rev Log: [CMake][Fuchsia] Drop libclang.so from distribution This is no longer needed now that all users have switched to clangd. Modified: cfe/trunk/cmake/caches/Fuchs

r353742 - [CodeGen] Set construction vtable visibility after creating initializer

2019-02-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Feb 11 12:13:42 2019 New Revision: 353742 URL: http://llvm.org/viewvc/llvm-project?rev=353742&view=rev Log: [CodeGen] Set construction vtable visibility after creating initializer We must only set the construction vtable visibility after we create the vtable initializer,

r353853 - [CMake][Fuchsia] Pass -ldl -lpthread LDFLAGS to second stage

2019-02-12 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Feb 12 08:24:46 2019 New Revision: 353853 URL: http://llvm.org/viewvc/llvm-project?rev=353853&view=rev Log: [CMake][Fuchsia] Pass -ldl -lpthread LDFLAGS to second stage We're using static libc++ for the second stage which requires explicitly linking -ldl and -lpthread. M

[libunwind] r353915 - [CMake] Don't cache LLVM_MAIN_SRC_DIR

2019-02-12 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Feb 12 23:09:26 2019 New Revision: 353915 URL: http://llvm.org/viewvc/llvm-project?rev=353915&view=rev Log: [CMake] Don't cache LLVM_MAIN_SRC_DIR If we're not in a standalone build, this variable should be already set, so there's no need to set it again or to cache it. D

r353957 - [AArch64] Support reserving arbitrary general purpose registers

2019-02-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Feb 13 09:28:47 2019 New Revision: 353957 URL: http://llvm.org/viewvc/llvm-project?rev=353957&view=rev Log: [AArch64] Support reserving arbitrary general purpose registers This is a follow up to D48580 and D48581 which allows reserving arbitrary general purpose registers

r353960 - [Driver] Pass +reserve-x25 to backend if -ffixed-x25 is specified

2019-02-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Feb 13 10:01:23 2019 New Revision: 353960 URL: http://llvm.org/viewvc/llvm-project?rev=353960&view=rev Log: [Driver] Pass +reserve-x25 to backend if -ffixed-x25 is specified This was accidentally omitted in r353957 breaking the Clang test. Modified: cfe/trunk/lib/Dri

r354208 - [Driver][Fuchsia] Support -nolibc flag

2019-02-16 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Feb 16 17:02:40 2019 New Revision: 354208 URL: http://llvm.org/viewvc/llvm-project?rev=354208&view=rev Log: [Driver][Fuchsia] Support -nolibc flag This can be used to disable libc linking. This flag is supported by GCC since version 9 as well as some Clang target toolchai

r354210 - [Driver][Gnu] Support -nolibc flag

2019-02-16 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Feb 16 18:42:48 2019 New Revision: 354210 URL: http://llvm.org/viewvc/llvm-project?rev=354210&view=rev Log: [Driver][Gnu] Support -nolibc flag This can be used to disable libc linking. This flag is supported by GCC since version 9 as well as some Clang target toolchains.

r354481 - [CodeGen] Enable the complex-math test for arm

2019-02-20 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Feb 20 08:53:08 2019 New Revision: 354481 URL: http://llvm.org/viewvc/llvm-project?rev=354481&view=rev Log: [CodeGen] Enable the complex-math test for arm This test wasn't running due to a missing : after the RUN statement. Enabling this test revealed that it's actually b

[libcxxabi] r312606 - [libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return

2017-09-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Sep 5 19:43:54 2017 New Revision: 312606 URL: http://llvm.org/viewvc/llvm-project?rev=312606&view=rev Log: [libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return The ASan runtime on many systems intercepts cxa_throw just so it can call asan_handle_no

[libcxxabi] r312609 - Revert "[libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return"

2017-09-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Sep 5 20:00:42 2017 New Revision: 312609 URL: http://llvm.org/viewvc/llvm-project?rev=312609&view=rev Log: Revert "[libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return" This reverts commit r312606 because it's causing an error on libcxx-libcxxabi-

r312989 - [Driver] Fuchsia targets default to -fasynchronous-unwind-tables

2017-09-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Sep 11 18:28:37 2017 New Revision: 312989 URL: http://llvm.org/viewvc/llvm-project?rev=312989&view=rev Log: [Driver] Fuchsia targets default to -fasynchronous-unwind-tables This regressed for x86-64 in r307856 because it's no longer inherited from Generic_GCC. We'd never

r313173 - [Fuchsia] Set ENABLE_X86_RELAX_RELOCATIONS for Fuchsia builds

2017-09-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Sep 13 12:17:41 2017 New Revision: 313173 URL: http://llvm.org/viewvc/llvm-project?rev=313173&view=rev Log: [Fuchsia] Set ENABLE_X86_RELAX_RELOCATIONS for Fuchsia builds This is a "Does your linker support it?" option, and all ours do. Patch by Roland McGrath Differenti

[libcxxabi] r313215 - Reland "When built with ASan, __cxa_throw calls __asan_handle_no_return"

2017-09-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Sep 13 16:35:07 2017 New Revision: 313215 URL: http://llvm.org/viewvc/llvm-project?rev=313215&view=rev Log: Reland "When built with ASan, __cxa_throw calls __asan_handle_no_return" The ASan runtime on many systems intercepts cxa_throw just so it can call asan_handle_no_re

[libunwind] r362055 - [runtimes] Check if pragma comment(lib, ...) is supported first

2019-05-29 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 29 21:40:21 2019 New Revision: 362055 URL: http://llvm.org/viewvc/llvm-project?rev=362055&view=rev Log: [runtimes] Check if pragma comment(lib, ...) is supported first This fixes the issue introduced by r362048 where we always use pragma comment(lib, ...) for dependen

[libunwind] r362057 - [runtimes] Use -Wunknown-pragmas for the pragma check

2019-05-29 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 29 22:38:06 2019 New Revision: 362057 URL: http://llvm.org/viewvc/llvm-project?rev=362057&view=rev Log: [runtimes] Use -Wunknown-pragmas for the pragma check This is a follow up to r362055, we need -Wunknown-pragmas otherwise the check is going to succeed it the pragm

[libunwind] r362065 - [CMake] Use find_package(LLVM) instead of LLVMConfig

2019-05-30 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 30 00:34:39 2019 New Revision: 362065 URL: http://llvm.org/viewvc/llvm-project?rev=362065&view=rev Log: [CMake] Use find_package(LLVM) instead of LLVMConfig This addresses an issues introduced in r362047. Differential Revision: https://reviews.llvm.org/D62640 Modifi

r362181 - [CMake][Fuchsia] Use libc++ ABI v2 on Darwin as well

2019-05-30 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 30 18:16:43 2019 New Revision: 362181 URL: http://llvm.org/viewvc/llvm-project?rev=362181&view=rev Log: [CMake][Fuchsia] Use libc++ ABI v2 on Darwin as well Since we share headers between host and target builds, we need to use the same version for both. Differential

r362185 - [CMake] Provide an option to use relative paths in debug info

2019-05-30 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 30 18:34:51 2019 New Revision: 362185 URL: http://llvm.org/viewvc/llvm-project?rev=362185&view=rev Log: [CMake] Provide an option to use relative paths in debug info CMake always uses absolute file paths in the generated compiler invocation which results in absolute f

r362580 - [Clang] Disable new PM for tests that use optimization level -O1, -O2 and -O3

2019-06-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jun 4 20:17:11 2019 New Revision: 362580 URL: http://llvm.org/viewvc/llvm-project?rev=362580&view=rev Log: [Clang] Disable new PM for tests that use optimization level -O1, -O2 and -O3 Tests that use -O1, -O2 and -O3 would often produce different results with the new pas

r362585 - [CMake][Fuchsia] Use libc++ ABIv2 for the first stage build

2019-06-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jun 4 23:58:41 2019 New Revision: 362585 URL: http://llvm.org/viewvc/llvm-project?rev=362585&view=rev Log: [CMake][Fuchsia] Use libc++ ABIv2 for the first stage build This also unifies flags between macOS and Linux builds. Modified: cfe/trunk/cmake/caches/Fuchsia.cm

r365808 - [Driver] -noprofilelib flag

2019-07-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Jul 11 12:06:38 2019 New Revision: 365808 URL: http://llvm.org/viewvc/llvm-project?rev=365808&view=rev Log: [Driver] -noprofilelib flag This flag is analoguous to other flags like -nostdlib or -nolibc and could be used to disable linking of profile runtime library. This i

r365845 - [CMake][Fuchsia] Use RelWithDebInfo to build runtimes

2019-07-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Jul 11 16:49:39 2019 New Revision: 365845 URL: http://llvm.org/viewvc/llvm-project?rev=365845&view=rev Log: [CMake][Fuchsia] Use RelWithDebInfo to build runtimes We want to preserve debug info in our runtimes to aid symbolization and debugging; for shared libraries this w

r365994 - [CMake][Fuchsia] Define asan+noexcept multilib

2019-07-13 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Jul 13 01:07:10 2019 New Revision: 365994 URL: http://llvm.org/viewvc/llvm-project?rev=365994&view=rev Log: [CMake][Fuchsia] Define asan+noexcept multilib Using noexcept multilib with -fno-exceptions can lead to significant space savings when statically linking libc++abi

r366979 - Revert "[Sema] Enable -Wimplicit-float-conversion for integral to floating point precision loss"

2019-07-24 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jul 24 20:11:49 2019 New Revision: 366979 URL: http://llvm.org/viewvc/llvm-project?rev=366979&view=rev Log: Revert "[Sema] Enable -Wimplicit-float-conversion for integral to floating point precision loss" This reverts commit r366972 which broke the following tests: Cl

r367166 - Revert "[ARM] Set default alignment to 64bits"

2019-07-26 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Jul 26 18:59:23 2019 New Revision: 367166 URL: http://llvm.org/viewvc/llvm-project?rev=367166&view=rev Log: Revert "[ARM] Set default alignment to 64bits" This reverts commit r367119. This broke several bots: http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/

r367794 - [Driver] Support for disabling sanitizer runtime linking

2019-08-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Aug 4 15:24:14 2019 New Revision: 367794 URL: http://llvm.org/viewvc/llvm-project?rev=367794&view=rev Log: [Driver] Support for disabling sanitizer runtime linking This change introduces a pair of -fsanitize-link-runtime and -fno-sanitize-link-runtime flags which can be

r367796 - [Driver] Always use -z separate-code with lld on Fuchsia

2019-08-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Aug 4 18:15:33 2019 New Revision: 367796 URL: http://llvm.org/viewvc/llvm-project?rev=367796&view=rev Log: [Driver] Always use -z separate-code with lld on Fuchsia Previously -z separate-code was the default lld behavior, but now it has to be explicitly requested by spec

r367797 - [Driver] Derive Fuchsia Linker directly from Tool

2019-08-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Aug 4 18:36:51 2019 New Revision: 367797 URL: http://llvm.org/viewvc/llvm-project?rev=367797&view=rev Log: [Driver] Derive Fuchsia Linker directly from Tool Fuchsia Linker tool doesn't need any of the GnuTool behavior. Modified: cfe/trunk/lib/Driver/ToolChains/Fuchs

r367799 - [Driver] Don't disable -fsanitizer-coverage for safe-stack or shadow-call-stack

2019-08-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Aug 4 21:48:56 2019 New Revision: 367799 URL: http://llvm.org/viewvc/llvm-project?rev=367799&view=rev Log: [Driver] Don't disable -fsanitizer-coverage for safe-stack or shadow-call-stack These "sanitizers" are hardened ABIs that are wholly orthogonal to the SanitizerCove

r360991 - [Analysis] Only run plugins tests if plugins are actually enabled

2019-05-16 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 16 23:07:37 2019 New Revision: 360991 URL: http://llvm.org/viewvc/llvm-project?rev=360991&view=rev Log: [Analysis] Only run plugins tests if plugins are actually enabled When plugins aren't enabled, don't try to run plugins tests. Don't enable plugins unconditionally

r361340 - [Analysis] Link library dependencies to Analysis plugins

2019-05-21 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue May 21 17:47:37 2019 New Revision: 361340 URL: http://llvm.org/viewvc/llvm-project?rev=361340&view=rev Log: [Analysis] Link library dependencies to Analysis plugins These are needed to avoid undefined symbols which aren't satisfied by Clang itself. Differential Revision:

[libunwind] r361432 - [runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++

2019-05-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 22 14:08:33 2019 New Revision: 361432 URL: http://llvm.org/viewvc/llvm-project?rev=361432&view=rev Log: [runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++ This change is a consequence of the discussion in "RFC: Place libs in Clang-dedi

r361432 - [runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++

2019-05-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 22 14:08:33 2019 New Revision: 361432 URL: http://llvm.org/viewvc/llvm-project?rev=361432&view=rev Log: [runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++ This change is a consequence of the discussion in "RFC: Place libs in Clang-dedi

r361456 - [CMake][Fuchsia] Use cannonical triples for runtimes

2019-05-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 22 19:35:12 2019 New Revision: 361456 URL: http://llvm.org/viewvc/llvm-project?rev=361456&view=rev Log: [CMake][Fuchsia] Use cannonical triples for runtimes This ensures that whether the user uses short or cannonical version of the triple, Clang will still find the ru

r361504 - [Driver] Try normalized triple when looking for C++ libraries

2019-05-23 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 23 08:23:16 2019 New Revision: 361504 URL: http://llvm.org/viewvc/llvm-project?rev=361504&view=rev Log: [Driver] Try normalized triple when looking for C++ libraries This addresses the issue introduced in r361432 where we would only try effective triple but not the no

r361709 - [Driver] Update handling of c++ and runtime directories

2019-05-25 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat May 25 20:39:07 2019 New Revision: 361709 URL: http://llvm.org/viewvc/llvm-project?rev=361709&view=rev Log: [Driver] Update handling of c++ and runtime directories This is a follow up to r361432 and r361504 which addresses issues introduced by those changes. Specifically,

r361784 - [Driver] Change layout of per-target runtimes to resemble multiarch

2019-05-27 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon May 27 16:23:50 2019 New Revision: 361784 URL: http://llvm.org/viewvc/llvm-project?rev=361784&view=rev Log: [Driver] Change layout of per-target runtimes to resemble multiarch This is a follow up to r361432, changing the layout of per-target runtimes to more closely resem

r361903 - [Driver] Search the toolchain dir with -print-file-name

2019-05-28 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue May 28 17:01:05 2019 New Revision: 361903 URL: http://llvm.org/viewvc/llvm-project?rev=361903&view=rev Log: [Driver] Search the toolchain dir with -print-file-name This is useful when looking for directories or files relative to the toolchain root, e.g. include/c++/v1. Th

[libunwind] r362048 - [runtimes] Support ELF dependent libraries feature

2019-05-29 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 29 18:34:41 2019 New Revision: 362048 URL: http://llvm.org/viewvc/llvm-project?rev=362048&view=rev Log: [runtimes] Support ELF dependent libraries feature As of r360984, LLD supports dependent libraries feature for ELF. libunwind, libc++abi and libc++ have library dep

r350202 - [CMake][Fuchsia] Include check-lld in the list of bootstrap targets

2019-01-01 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jan 1 21:11:57 2019 New Revision: 350202 URL: http://llvm.org/viewvc/llvm-project?rev=350202&view=rev Log: [CMake][Fuchsia] Include check-lld in the list of bootstrap targets This allows running lld tests when doing 2-stage toolchain build. Differential Revision: https:

r350459 - [CMake][Fuchsia] Enable --build-id linker flag by default

2019-01-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Jan 4 23:57:38 2019 New Revision: 350459 URL: http://llvm.org/viewvc/llvm-project?rev=350459&view=rev Log: [CMake][Fuchsia] Enable --build-id linker flag by default This enables passing --build-id to linker by default. Differential Revision: https://reviews.llvm.org/D56

r350461 - [CMake][Fuchsia] Enable experimental new pass manager by default

2019-01-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Jan 4 23:57:53 2019 New Revision: 350461 URL: http://llvm.org/viewvc/llvm-project?rev=350461&view=rev Log: [CMake][Fuchsia] Enable experimental new pass manager by default This change enableds experimental new pass manager. Differential Revision: https://reviews.llvm.or

r350460 - [CMake][Fuchsia] Enable x86 relaxation by default

2019-01-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Jan 4 23:57:46 2019 New Revision: 350460 URL: http://llvm.org/viewvc/llvm-project?rev=350460&view=rev Log: [CMake][Fuchsia] Enable x86 relaxation by default This enables x86 relaxation by default. This depends on a linker new enough to support the new reloc types but sin

r350484 - Revert "[CMake][Fuchsia] Enable experimental new pass manager by default"

2019-01-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Jan 5 15:45:31 2019 New Revision: 350484 URL: http://llvm.org/viewvc/llvm-project?rev=350484&view=rev Log: Revert "[CMake][Fuchsia] Enable experimental new pass manager by default" This reverts commit r350461 as it causes many of the Clang tests to fail. Modified: c

r350486 - [CMake][Fuchsia] Enable build ID, relaxations for first stage

2019-01-05 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sat Jan 5 20:14:51 2019 New Revision: 350486 URL: http://llvm.org/viewvc/llvm-project?rev=350486&view=rev Log: [CMake][Fuchsia] Enable build ID, relaxations for first stage We want these to be used for the second stage compiler as well. Differential Revision: https://review

r350491 - [CMake] Use hidden visibility for static libc++ in Fuchsia

2019-01-06 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Jan 6 00:23:56 2019 New Revision: 350491 URL: http://llvm.org/viewvc/llvm-project?rev=350491&view=rev Log: [CMake] Use hidden visibility for static libc++ in Fuchsia This is enables the use of libc++ in contexts such as device drivers. Differential Revision: https://rev

r371484 - clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM

2019-09-09 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Sep 9 20:11:39 2019 New Revision: 371484 URL: http://llvm.org/viewvc/llvm-project?rev=371484&view=rev Log: clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM This patch contains the basic functionality for reporting potentially incorrect usage

r371488 - Revert "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM"

2019-09-09 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Sep 9 23:25:13 2019 New Revision: 371488 URL: http://llvm.org/viewvc/llvm-project?rev=371488&view=rev Log: Revert "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" This reverts commit r371484: this broke sanitizer-x86_64-linux-fast bot. Re

r371584 - clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM

2019-09-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Sep 10 18:09:16 2019 New Revision: 371584 URL: http://llvm.org/viewvc/llvm-project?rev=371584&view=rev Log: clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM This patch contains the basic functionality for reporting potentially incorrect usage

r371635 - Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM"

2019-09-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Sep 11 09:19:50 2019 New Revision: 371635 URL: http://llvm.org/viewvc/llvm-project?rev=371635&view=rev Log: Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" This patch contains the basic functionality for reporting potentially incorr

[libcxx] r329983 - [CMake] Set the default ABI version for Fuchsia in CMake as well

2018-04-12 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Apr 12 18:59:15 2018 New Revision: 329983 URL: http://llvm.org/viewvc/llvm-project?rev=329983&view=rev Log: [CMake] Set the default ABI version for Fuchsia in CMake as well This is neeeded since the CMake value is used for the SOVERSION. Differential Revision: https://re

r329984 - [CMake][Fuchsia] Don't specify libc++ ABI version for Fuchsia

2018-04-12 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu Apr 12 19:02:13 2018 New Revision: 329984 URL: http://llvm.org/viewvc/llvm-project?rev=329984&view=rev Log: [CMake][Fuchsia] Don't specify libc++ ABI version for Fuchsia This is now set automatically in libc++ config header. Differential Revision: https://reviews.llvm.or

r330855 - [CMake] Enable libc++ for Fuchsia toolchain on Darwin

2018-04-25 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Apr 25 11:30:55 2018 New Revision: 330855 URL: http://llvm.org/viewvc/llvm-project?rev=330855&view=rev Log: [CMake] Enable libc++ for Fuchsia toolchain on Darwin This is necessary in order to get a working C++ compiler on Darwin since Clang expects libc++ headers to be pa

r331425 - [CMake][Cache] Stop pretending that Fuchsia is UNIX

2018-05-02 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed May 2 18:44:03 2018 New Revision: 331425 URL: http://llvm.org/viewvc/llvm-project?rev=331425&view=rev Log: [CMake][Cache] Stop pretending that Fuchsia is UNIX This changes some aspects of the build that are not relevant or useful for Fuchsia like setting the RPATH/RUNPAT

r331717 - [CMake] Pass additional CMake flags in Fuchsia cache files

2018-05-07 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon May 7 19:47:13 2018 New Revision: 331717 URL: http://llvm.org/viewvc/llvm-project?rev=331717&view=rev Log: [CMake] Pass additional CMake flags in Fuchsia cache files This allows passing additional CMake flags to builtins and runtimes build through Fuchsia cache files. D

<    1   2   3   4   5   6   7   8   9   10   >