[clang] [CMake][Fuchsia] Build libc++ on top libc for baremetal (PR #99009)

2024-07-16 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/99009 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake][Fuchsia] Use escaped double quote (PR #99246)

2024-07-16 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/99246 Using single quotes made the build to break on Windows. >From 526401e3da96c366f04ba98cfb453a72fd67cc76 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 16 Jul 2024 14:47:58 -0700 Subject: [PATCH] [CMake][F

[clang] [CMake][Fuchsia] Add LLVM_NO_BAREMETAL_RUNTIMES option (PR #99253)

2024-07-16 Thread Petr Hosek via cfe-commits
@@ -32,6 +32,8 @@ set(LLVM_USE_RELATIVE_PATHS_IN_FILES ON CACHE BOOL "") set(LLDB_ENABLE_CURSES OFF CACHE BOOL "") set(LLDB_ENABLE_LIBEDIT OFF CACHE BOOL "") +set(LLVM_NO_BAREMETAL_RUNTIMES OFF CACHE BOOL "") petrhosek wrote: This is not an official LLVM buil

[clang] [CMake][Fuchsia] Include new/delete in baremetal targets (PR #99279)

2024-07-16 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/99279 These don't include libcxxabi yet so we need new/delete in libcxx. >From 9bf2e8ae0deeb04aaf85f35f5c15ebe8f85d71a7 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 16 Jul 2024 23:50:54 -0700 Subject: [PATCH

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-17 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/99287 Provide an option to build libc++ against LLVM libc and set the CMake compile and link options appropriately when the option is enabled. >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001

[clang] [CMake][Fuchsia] Include new/delete in baremetal targets (PR #99279)

2024-07-17 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/99279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake][Fuchsia] Install libc++ for baremetal targets (PR #99372)

2024-07-17 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/99372 We already build the library and want to install it also. >From bced10358296d34adedaff825d9d67150a6d243b Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 11:44:41 -0700 Subject: [PATCH] [CMake]

[clang] [CMake][Fuchsia] Install libc++ for baremetal targets (PR #99372)

2024-07-17 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/99372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix diagnostics-dsym.test on mac-arm64 (PR #99399)

2024-07-17 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/99399 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/2] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
@@ -293,6 +293,7 @@ option(LIBCXX_ENABLE_THREADS "Build libc++ with support for threads." ON) option(LIBCXX_ENABLE_MONOTONIC_CLOCK "Build libc++ with support for a monotonic clock. This option may only be set to OFF when LIBCXX_ENABLE_THREADS=OFF." ON) +option(LIBCXX_USE_

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
@@ -0,0 +1,34 @@ +#=== +# Define targets for linking against the selected C library +# +# After including this file, the following targets are defined: +# - libcxx-libc-headers: An interface target that al

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/3] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
@@ -27,6 +27,9 @@ if (NOT LIBCXX_USE_COMPILER_RT) endif() endif() +check_cxx_compiler_flag(-nostdlibinc CXX_SUPPORTS_NOSTDLIBINC_FLAG) +check_cxx_compiler_flag(-nolibc CXX_SUPPORTS_NOLIBC_FLAG) petrhosek wrote: They're used now that I moved `-nostdlibinc` a

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
@@ -784,6 +794,10 @@ config_define_if_not(LIBCXX_ENABLE_WIDE_CHARACTERS _LIBCPP_HAS_NO_WIDE_CHARACTER config_define_if_not(LIBCXX_ENABLE_TIME_ZONE_DATABASE _LIBCPP_HAS_NO_TIME_ZONE_DATABASE) config_define_if_not(LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS _LIBCPP_HAS_NO_VEN

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
@@ -0,0 +1,34 @@ +#=== +# Define targets for linking against the selected C library +# +# After including this file, the following targets are defined: +# - libcxx-libc-headers: An interface target that al

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
@@ -226,6 +226,15 @@ set(LIBCXX_ABI_DEFINES "" CACHE STRING "A semicolon separated list of ABI macros set(LIBCXX_EXTRA_SITE_DEFINES "" CACHE STRING "Extra defines to add into __config_site") option(LIBCXX_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF) +# C Library

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/4] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/5] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/6] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/7] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/99287 >From 7d7a7882b713e056f9194b2dd7d792fb9bb86bb5 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 17 Jul 2024 00:32:39 -0700 Subject: [PATCH 1/7] [libc][libcxx] Support for building libc++ against LLVM libc

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-18 Thread Petr Hosek via cfe-commits
petrhosek wrote: > I like this approach much better. In a future refactor, I would move > `-nostdlibinc` and `-nostdlib` to the interface target, and eventually > libc++abi and libunwind should use those targets too when building. But this > is a fine first step. I believe I address all comme

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/99287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Fuchsia] Remove linker flags from stage2 pass through (PR #99722)

2024-07-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/99722 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Normalize the baremetal handling of libc++ and runtimes (PR #101259)

2024-08-29 Thread Petr Hosek via cfe-commits
@@ -382,38 +382,6 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs, } } -void BareMetal::AddCXXStdlibLibArgs(const ArgList &Args, -ArgStringList &CmdArgs) const { - switch (GetCXXStdlibType(Args)) { - case ToolC

[clang] [Driver] Normalize the baremetal handling of libc++ and runtimes (PR #101259)

2024-08-29 Thread Petr Hosek via cfe-commits
petrhosek wrote: > Gentle ping @petrhosek I'd like to go ahead and merge this PR but I still need someone to approve this change. https://github.com/llvm/llvm-project/pull/101259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [compiler-rt] [llvm] [CMake][compiler-rt] Support for using compiler-rt atomic library (PR #106603)

2024-08-29 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/106603 Not every toolchain provides and want to use libatomic which is a part of GCC, some toolchains may opt into using compiler-rt atomic library. >From 18814eb544e4e8d9274583c41e65b7f16c3bdfcc Mon Sep 17 00:00:00

[clang] [compiler-rt] [llvm] [CMake][compiler-rt] Support for using compiler-rt atomic library (PR #106603)

2024-08-29 Thread Petr Hosek via cfe-commits
petrhosek wrote: > Seems reasonable to me, I would wait for other approvals, as I'm relatively > new here. > > Just ensure this is good to go with rtsan, I recommend running the tests > locally, as I don't think they're a part of the default pre-commit set > > ``` > ninja check-rtsan > ``` I

[clang] [compiler-rt] [llvm] [CMake][compiler-rt] Support for using compiler-rt atomic library (PR #106603)

2024-08-30 Thread Petr Hosek via cfe-commits
petrhosek wrote: I'm building on Linux so I believe we use the atomic CAS spinlock. There's an option to use pthreads though: https://github.com/llvm/llvm-project/blob/130eddf7a13f15c9c48b7fa7faf60e9bbee4f703/compiler-rt/lib/builtins/CMakeLists.txt#L240-L242 I'll check if enabling the use of pth

[clang] [libc] [libc] Use correct names for locale variants in spec.td (PR #106806)

2024-08-30 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/106806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [libc] Use correct names for locale variants in spec.td (PR #106806)

2024-08-30 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/106806 This addresses issue introduced in #105718. >From ef70fea3ffa9fc1787c4f8aa1fde591adda5fd6b Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 30 Aug 2024 14:57:29 -0700 Subject: [PATCH] [libc] Use correct n

[clang] [clang] [docs] Clarify the issue with compiler-rt on Windows/MSVC (PR #106875)

2024-09-03 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/106875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [CMake][compiler-rt] Support for using compiler-rt atomic library (PR #106603)

2024-09-03 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/106603 >From 18814eb544e4e8d9274583c41e65b7f16c3bdfcc Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 29 Aug 2024 18:18:42 + Subject: [PATCH 1/2] [CMake][compiler-rt] Support for using compiler-rt atomic li

[clang] [compiler-rt] [llvm] [CMake][compiler-rt] Support for using compiler-rt atomic library (PR #106603)

2024-09-03 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/106603 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake][Fuchsia] -fvisibility=hidden for baremetal runtimes (PR #98049)

2024-07-09 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/98049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake][Fuchsia] Revert back to using normalized triples (PR #98189)

2024-07-09 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/98189 We switched to denormalized triples in #89425 but that introduced a lot of downstream issues so switch back to normalized triples. >From ba10fe4c761cefaecbde0828d320d05e359d5e7f Mon Sep 17 00:00:00 2001 From:

[clang] [Fuchsia][CMake] Use MinSizeRel for baremetal runtimes (PR #98835)

2024-07-14 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/98835 Size matters more than performance for these targets. >From 7125521d0fd280a89f5a5576eec512bb99aa7dde Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Sun, 14 Jul 2024 13:27:08 -0700 Subject: [PATCH] [Fuchsia][C

[clang] [Fuchsia][CMake] Use MinSizeRel for baremetal runtimes (PR #98835)

2024-07-14 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/98835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-14 Thread Petr Hosek via cfe-commits
petrhosek wrote: I think we should go ahead and revert this change given that it's been almost an entire day and the builders are still broken. https://github.com/llvm/llvm-project/pull/83131 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-03 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/91028 When set, the compiler will use separate unique sections for global symbols in named special sections (e.g. symbols that are annotated with __attribute__((section(.... Doing so enables linker GC to collect

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-03 Thread Petr Hosek via cfe-commits
petrhosek wrote: This is an alternative approach to address the issue described in https://discourse.llvm.org/t/rfc-support-for-memory-regions-in-elf/78570 which doesn't require a custom section type. https://github.com/llvm/llvm-project/pull/91028 _

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/91028 >From 78193f68a149e378fbb180a1a5fa1f4551f2af66 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 3 May 2024 15:48:31 -0700 Subject: [PATCH 1/2] [Clang] -fseparate-named-sections option When set, the compile

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/91028 >From 78193f68a149e378fbb180a1a5fa1f4551f2af66 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 3 May 2024 15:48:31 -0700 Subject: [PATCH 1/3] [Clang] -fseparate-named-sections option When set, the compile

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
@@ -75,6 +75,10 @@ static cl::opt JumpTableInFunctionSection( "jumptable-in-function-section", cl::Hidden, cl::init(false), cl::desc("Putting Jump Table in function section")); +static cl::opt UniqueExplicitSections( +"unique-explicit-sections", cl::Hidden, cl::ini

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
petrhosek wrote: > > This is an alternative approach to address the issue described in > > [discourse.llvm.org/t/rfc-support-for-memory-regions-in-elf/78570](https://discourse.llvm.org/t/rfc-support-for-memory-regions-in-elf/78570) > > which doesn't require a custom section type. > > This RFC

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/91028 >From 78193f68a149e378fbb180a1a5fa1f4551f2af66 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 3 May 2024 15:48:31 -0700 Subject: [PATCH 1/4] [Clang] -fseparate-named-sections option When set, the compile

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
@@ -733,16 +733,22 @@ calcUniqueIDUpdateFlagsAndSize(const GlobalObject *GO, StringRef SectionName, Ctx.isELFGenericMergeableSection(SectionName); // If this is the first ocurrence of this section name, treat it as the // generic section - if (!SymbolMergeable && !S

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-04 Thread Petr Hosek via cfe-commits
@@ -0,0 +1,36 @@ +; Test that global values with explicit sections are placed into unique sections. + +; RUN: llc < %s 2>&1 | FileCheck %s petrhosek wrote: Done. https://github.com/llvm/llvm-project/pull/91028 ___ cfe

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/91028 >From 78193f68a149e378fbb180a1a5fa1f4551f2af66 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 3 May 2024 15:48:31 -0700 Subject: [PATCH 1/5] [Clang] -fseparate-named-sections option When set, the compile

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-07 Thread Petr Hosek via cfe-commits
@@ -277,6 +277,8 @@ namespace llvm { /// Use unique names for basic block sections. unsigned UniqueBasicBlockSectionNames : 1; +unsigned SeparateNamedSections : 1; petrhosek wrote: Done https://github.com/llvm/llvm-project/pull/91028

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-07 Thread Petr Hosek via cfe-commits
@@ -221,6 +221,11 @@ New Compiler Flags - ``-fexperimental-modules-reduced-bmi`` enables the Reduced BMI for C++20 named modules. See the document of standard C++ modules for details. +- ``-fseparate-named-sections`` uses separate unique sections for global + symbols in na

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/91028 >From 78193f68a149e378fbb180a1a5fa1f4551f2af66 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 3 May 2024 15:48:31 -0700 Subject: [PATCH 1/5] [Clang] -fseparate-named-sections option When set, the compile

[clang] [llvm] [Clang] -fseparate-named-sections option (PR #91028)

2024-05-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/91028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Pass -fseparate-named-sections from the driver (PR #91567)

2024-05-09 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/91567 This is a follow up to #91028. >From ca2b9d52d31866a657e2eb19585cdcd11bcad7d3 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 9 May 2024 00:28:33 -0700 Subject: [PATCH] [Clang] Pass -fseparate-named-secti

[clang] [Clang] Pass -fseparate-named-sections from the driver (PR #91567)

2024-05-10 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/91567 >From ca2b9d52d31866a657e2eb19585cdcd11bcad7d3 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 9 May 2024 00:28:33 -0700 Subject: [PATCH 1/2] [Clang] Pass -fseparate-named-sections from the driver This is

[clang] [Clang] Pass -fseparate-named-sections from the driver (PR #91567)

2024-05-10 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/91567 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [lldb] [llvm] [Support] Remove terminfo dependency (PR #92865)

2024-05-23 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/92865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Correctly apply libdir subdir for multilib (PR #93354)

2024-05-24 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/93354 We weren't applying applying the libdir subdir to header directories but this is necessary for corretness when building e.g. ASan variant. This change also updates path construction logic accross all runtimes

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Correctly apply libdir subdir for multilib (PR #93354)

2024-05-24 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/93354 >From b7b4e6bf186e798d23d24a506461741e12ac79da Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 24 May 2024 23:15:19 + Subject: [PATCH 1/2] [runtimes] Correctly apply libdir subdir for multilib We were

[clang] [Driver] Include crt0.o in the baremetal link (PR #101258)

2024-07-31 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/101258 >From 245a552033793bab479c9be805aacf33cfe64493 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 30 Jul 2024 15:17:13 -0700 Subject: [PATCH 1/2] [Driver] Include crt0.o in the baremetal link The common bar

[clang] [Driver] Include crt0.o in the baremetal link (PR #101258)

2024-07-31 Thread Petr Hosek via cfe-commits
@@ -105,6 +109,10 @@ // CHECK-V6M-LIBCXX-USR-SAME: "-lc++" "-lc++abi" "-lunwind" // CHECK-V6M-LIBCXX-USR-SAME: "-lc" "-lm" "{{[^"]*}}libclang_rt.builtins.a" +// RUN: %clangxx --target=arm-none-eabi -nostartfiles -v 2>&1 \ petrhosek wrote: Done. https://githu

[clang] [Driver] Normalize the baremetal handling of libc++ and runtimes (PR #101259)

2024-08-01 Thread Petr Hosek via cfe-commits
@@ -382,38 +382,6 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs, } } -void BareMetal::AddCXXStdlibLibArgs(const ArgList &Args, -ArgStringList &CmdArgs) const { - switch (GetCXXStdlibType(Args)) { - case ToolC

[clang] [Driver] Normalize the baremetal handling of libc++ and runtimes (PR #101259)

2024-08-01 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek edited https://github.com/llvm/llvm-project/pull/101259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake][Fuchsia] Use standard spelling for Arm baremetal targets (PR #101302)

2024-08-01 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/101302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Include crt0.o in the baremetal link (PR #101258)

2024-08-01 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/101258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxxabi] [libunwind] [libcxxabi][libunwind] Support for using LLVM libc (PR #101688)

2024-08-02 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/101688 This is analogous to #99287 and provides an option to build libc++abi and libunwind against LLVM libc when selected. >From eb619c826eda5a4b0b27db17b43222748b5f2861 Mon Sep 17 00:00:00 2001 From: Petr Hosek D

[libcxxabi] [libunwind] [libcxxabi][libunwind] Support for using LLVM libc (PR #101688)

2024-08-02 Thread Petr Hosek via cfe-commits
petrhosek wrote: @ldionne I'm starting to think that we should have a generic module in https://github.com/llvm/llvm-project/tree/main/cmake/Modules that would be controlled by `LLVM_USE_LIBC` and define `libc-headers`, `libc-static` and `libc-shared`. That way we could avoid duplicating this

[libcxxabi] [libunwind] [libcxxabi][libunwind] Support for using LLVM libc (PR #101688)

2024-08-02 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/101688 >From eb619c826eda5a4b0b27db17b43222748b5f2861 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 2 Aug 2024 08:25:53 -0700 Subject: [PATCH 1/2] [libcxxabi][libunwind] Support for using LLVM libc This is an

[clang] [Fuchsia][CMake] Check correct triple to set -mcpu (PR #101910)

2024-08-04 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/101910 We use armv8m.main-none-eabi now, not armv8m.main-unknown-eabi. >From e039c097f997cb95f2f3725c4efa6420c8ed48c0 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Sun, 4 Aug 2024 16:30:35 -0700 Subject: [PATCH] [

[clang] [Fuchsia][CMake] Check correct triple to set -mcpu (PR #101910)

2024-08-04 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/101910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lld] [llvm] [mlir] [CMake] Fold export_executable_symbols_* into function args. (PR #101741)

2024-08-05 Thread Petr Hosek via cfe-commits
petrhosek wrote: This breaks the build with the following error: ``` CMake Error at cmake/modules/AddLLVM.cmake:970 (add_library): Cannot find source file: EXPORT_SYMBOLS_FOR_PLUGINS Call Stack (most recent call first): /b/s/w/ir/x/w/llvm-llvm-project/lld/cmake/modules/AddLLD.cmake:48 (

[clang] [Fuchsia][CMake] Enable new libc header gen (PR #102371)

2024-08-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/102371 All issues blocking this were resolved. >From 6dbb8be2352d0cdad44d293f7cc5c13f55ec243d Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 7 Aug 2024 07:40:09 + Subject: [PATCH] [Fuchsia][CMake] Enable n

[clang] [Fuchsia][CMake] Remove new/delete from baremetal libc++ (PR #102415)

2024-08-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/102415 This is causing issues for some baremetal targets. >From c5a744607dc4a16c67982051befe6681c5c8db3d Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 7 Aug 2024 19:42:39 -0700 Subject: [PATCH] [Fuchsia][CMak

[clang] [Fuchsia][CMake] Remove new/delete from baremetal libc++ (PR #102415)

2024-08-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/102415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fe0c530 - [Fuchsia] Remove i386 from iossim architectures

2022-01-24 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-01-24T14:48:47-08:00 New Revision: fe0c5309c4a8bf022b2ec66a0d28513e7fb1441b URL: https://github.com/llvm/llvm-project/commit/fe0c5309c4a8bf022b2ec66a0d28513e7fb1441b DIFF: https://github.com/llvm/llvm-project/commit/fe0c5309c4a8bf022b2ec66a0d28513e7fb1441b.diff LO

[clang] c39d22d - [CMake] Set sanitizer test C++ library on Linux

2022-01-25 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-01-25T11:09:48-08:00 New Revision: c39d22d1968cf07e54b5816ba76dccef8acaace1 URL: https://github.com/llvm/llvm-project/commit/c39d22d1968cf07e54b5816ba76dccef8acaace1 DIFF: https://github.com/llvm/llvm-project/commit/c39d22d1968cf07e54b5816ba76dccef8acaace1.diff LO

[clang] 2fcdd68 - [CMake][Fuchsia] Drop 32-bit ios runtimes

2022-01-26 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-01-26T18:57:21-08:00 New Revision: 2fcdd685bd0213b75f45597b970ea9858a3a9d89 URL: https://github.com/llvm/llvm-project/commit/2fcdd685bd0213b75f45597b970ea9858a3a9d89 DIFF: https://github.com/llvm/llvm-project/commit/2fcdd685bd0213b75f45597b970ea9858a3a9d89.diff LO

[clang] 792a409 - [CMake][Fuchsia] Only build iossim runtimes for arm64

2022-01-27 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-01-27T02:28:13-08:00 New Revision: 792a4095c5514c89330571e764e8981b484bd6ca URL: https://github.com/llvm/llvm-project/commit/792a4095c5514c89330571e764e8981b484bd6ca DIFF: https://github.com/llvm/llvm-project/commit/792a4095c5514c89330571e764e8981b484bd6ca.diff LO

[clang-tools-extra] ab3b898 - Revert "enable plugins for clang-tidy"

2022-01-31 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-01-31T00:55:43-08:00 New Revision: ab3b89855c5318f0009e1f016ffe5b1483507fd0 URL: https://github.com/llvm/llvm-project/commit/ab3b89855c5318f0009e1f016ffe5b1483507fd0 DIFF: https://github.com/llvm/llvm-project/commit/ab3b89855c5318f0009e1f016ffe5b1483507fd0.diff LO

[clang] eec3488 - [CMake][Fuchsia] Disable assertions and analyzer for stage 1

2022-02-21 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-02-21T13:31:13-08:00 New Revision: eec3488cf1d84d3503d5a8535b64374b79287bb9 URL: https://github.com/llvm/llvm-project/commit/eec3488cf1d84d3503d5a8535b64374b79287bb9 DIFF: https://github.com/llvm/llvm-project/commit/eec3488cf1d84d3503d5a8535b64374b79287bb9.diff LO

[clang] 45340ef - [Driver] Specify -ccc-install-dir for linux-cross test

2021-04-22 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-22T10:58:26-07:00 New Revision: 45340efb4c7d9b2f58bb27bc41cbd90cbbe3eac3 URL: https://github.com/llvm/llvm-project/commit/45340efb4c7d9b2f58bb27bc41cbd90cbbe3eac3 DIFF: https://github.com/llvm/llvm-project/commit/45340efb4c7d9b2f58bb27bc41cbd90cbbe3eac3.diff LO

[clang] d5f433d - Revert "Re-land "[Driver] Support default libc++ library location on Darwin""

2021-04-22 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-22T14:04:24-07:00 New Revision: d5f433d3302eedd455889d581d8312715289b582 URL: https://github.com/llvm/llvm-project/commit/d5f433d3302eedd455889d581d8312715289b582 DIFF: https://github.com/llvm/llvm-project/commit/d5f433d3302eedd455889d581d8312715289b582.diff LO

[clang] b4537c3 - [Driver] Push multiarch path setup to individual drivers

2021-04-26 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-26T22:17:26-07:00 New Revision: b4537c3f51bc6c011ddd9c10b80043ac4ce16a01 URL: https://github.com/llvm/llvm-project/commit/b4537c3f51bc6c011ddd9c10b80043ac4ce16a01 DIFF: https://github.com/llvm/llvm-project/commit/b4537c3f51bc6c011ddd9c10b80043ac4ce16a01.diff LO

[clang] 3a3fbbe - [Fuchsia] Use correct target triple for ARM

2021-04-26 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-26T23:48:12-07:00 New Revision: 3a3fbbe21720839e8ad9f7eb70db7b0b7cda1c4f URL: https://github.com/llvm/llvm-project/commit/3a3fbbe21720839e8ad9f7eb70db7b0b7cda1c4f DIFF: https://github.com/llvm/llvm-project/commit/3a3fbbe21720839e8ad9f7eb70db7b0b7cda1c4f.diff LO

[clang] 887bdff - [Driver] Fix tests failing in per-target multiarch layout

2021-04-27 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-27T10:19:00-07:00 New Revision: 887bdff8bae74ae0cedadbbe35f39141da3642c9 URL: https://github.com/llvm/llvm-project/commit/887bdff8bae74ae0cedadbbe35f39141da3642c9 DIFF: https://github.com/llvm/llvm-project/commit/887bdff8bae74ae0cedadbbe35f39141da3642c9.diff LO

[clang] a921d2d - [Driver] Add -print-multiarch

2021-04-27 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-27T16:04:54-07:00 New Revision: a921d2d2fb46b898794091e7410426c518a4f0cc URL: https://github.com/llvm/llvm-project/commit/a921d2d2fb46b898794091e7410426c518a4f0cc DIFF: https://github.com/llvm/llvm-project/commit/a921d2d2fb46b898794091e7410426c518a4f0cc.diff LO

[clang] 36430d4 - [Driver] Use normalized triples for per-target runtimes

2021-04-27 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-27T22:31:36-07:00 New Revision: 36430d44edba9063a08493c89864edf5f071d08c URL: https://github.com/llvm/llvm-project/commit/36430d44edba9063a08493c89864edf5f071d08c DIFF: https://github.com/llvm/llvm-project/commit/36430d44edba9063a08493c89864edf5f071d08c.diff LO

[clang] ea12d77 - [libc++] Support per-target __config_site in per-target runtime build

2021-04-28 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-28T14:27:16-07:00 New Revision: ea12d779bc238c387511fe7462020f4ecf4a8246 URL: https://github.com/llvm/llvm-project/commit/ea12d779bc238c387511fe7462020f4ecf4a8246 DIFF: https://github.com/llvm/llvm-project/commit/ea12d779bc238c387511fe7462020f4ecf4a8246.diff LO

[clang] ba63124 - [CMake] Set correct CXX_FLAGS for relative-vtables variants

2021-04-29 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-04-29T10:34:37-07:00 New Revision: ba631240ae9ccbf70f57c0ba22cf2dd5a3592da2 URL: https://github.com/llvm/llvm-project/commit/ba631240ae9ccbf70f57c0ba22cf2dd5a3592da2 DIFF: https://github.com/llvm/llvm-project/commit/ba631240ae9ccbf70f57c0ba22cf2dd5a3592da2.diff LO

[clang] 9d3dbcd - [Driver] Move -print-runtime-dir and -print-resource-dir tests

2021-05-05 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-05-05T15:23:49-07:00 New Revision: 9d3dbcd24c7d61e83fe5b3c4e7b7e4ecf9d70cd7 URL: https://github.com/llvm/llvm-project/commit/9d3dbcd24c7d61e83fe5b3c4e7b7e4ecf9d70cd7 DIFF: https://github.com/llvm/llvm-project/commit/9d3dbcd24c7d61e83fe5b3c4e7b7e4ecf9d70cd7.diff LO

[clang] 8cb191b - [Fuchsia][CMake] Update OSX deployment target

2021-05-06 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-05-06T12:06:16-07:00 New Revision: 8cb191b724b734a7432a63eb49f54cb9f4333d51 URL: https://github.com/llvm/llvm-project/commit/8cb191b724b734a7432a63eb49f54cb9f4333d51 DIFF: https://github.com/llvm/llvm-project/commit/8cb191b724b734a7432a63eb49f54cb9f4333d51.diff LO

[clang] 6b00b34 - [BareMetal] Ensure that sysroot always comes after library paths

2021-05-07 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-05-07T13:21:07-07:00 New Revision: 6b00b34b8a05896f79b18a1963811299b83d5b21 URL: https://github.com/llvm/llvm-project/commit/6b00b34b8a05896f79b18a1963811299b83d5b21 DIFF: https://github.com/llvm/llvm-project/commit/6b00b34b8a05896f79b18a1963811299b83d5b21.diff LO

[clang] f97ada2 - Revert "[BareMetal] Ensure that sysroot always comes after library paths"

2021-05-07 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-05-07T13:38:04-07:00 New Revision: f97ada27aaf64207a2ffad937ce3ccf009e81bd8 URL: https://github.com/llvm/llvm-project/commit/f97ada27aaf64207a2ffad937ce3ccf009e81bd8 DIFF: https://github.com/llvm/llvm-project/commit/f97ada27aaf64207a2ffad937ce3ccf009e81bd8.diff LO

[clang] 167906c - [BareMetal] Ensure that sysroot always comes after library paths

2021-05-07 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-05-07T14:42:02-07:00 New Revision: 167906c10932f5eda97b480ee084b17746c362e7 URL: https://github.com/llvm/llvm-project/commit/167906c10932f5eda97b480ee084b17746c362e7 DIFF: https://github.com/llvm/llvm-project/commit/167906c10932f5eda97b480ee084b17746c362e7.diff LO

[clang] ce97d8e - Revert "[WoA][MSVC] Use default linker setting in MSVC-compatible driver"

2021-03-18 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-03-18T23:42:31-07:00 New Revision: ce97d8e6c7409501e9b42de3db34ae0486115e25 URL: https://github.com/llvm/llvm-project/commit/ce97d8e6c7409501e9b42de3db34ae0486115e25 DIFF: https://github.com/llvm/llvm-project/commit/ce97d8e6c7409501e9b42de3db34ae0486115e25.diff LO

[clang] 933d146 - Revert "[Driver] -m32: Add /usr/include/i386-linux-gnu for Debian"

2021-03-22 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-03-22T11:58:28-07:00 New Revision: 933d146f38c6d77a9b4fdde2b6b394f6ad9f8bf5 URL: https://github.com/llvm/llvm-project/commit/933d146f38c6d77a9b4fdde2b6b394f6ad9f8bf5 DIFF: https://github.com/llvm/llvm-project/commit/933d146f38c6d77a9b4fdde2b6b394f6ad9f8bf5.diff LO

[clang] 21b211a - Revert "[Driver] Clean up Debian multiarch /usr/include/ madness"

2021-03-22 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-03-22T11:58:28-07:00 New Revision: 21b211a8f24f8ecfab8b380ff761a90d9cf73924 URL: https://github.com/llvm/llvm-project/commit/21b211a8f24f8ecfab8b380ff761a90d9cf73924 DIFF: https://github.com/llvm/llvm-project/commit/21b211a8f24f8ecfab8b380ff761a90d9cf73924.diff LO

[clang] 39f3e9a - [CMake][Fuchsia] Include llvm-lipo

2021-03-24 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-03-24T14:21:40-07:00 New Revision: 39f3e9a9e07db547b8daac67155abf3a56b34181 URL: https://github.com/llvm/llvm-project/commit/39f3e9a9e07db547b8daac67155abf3a56b34181 DIFF: https://github.com/llvm/llvm-project/commit/39f3e9a9e07db547b8daac67155abf3a56b34181.diff LO

[clang] fcf6800 - [Driver] Move detectLibcxxIncludePath to ToolChain

2021-03-31 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2021-03-31T10:50:44-07:00 New Revision: fcf6800506862586e2d409aaa03a1cff818edfcc URL: https://github.com/llvm/llvm-project/commit/fcf6800506862586e2d409aaa03a1cff818edfcc DIFF: https://github.com/llvm/llvm-project/commit/fcf6800506862586e2d409aaa03a1cff818edfcc.diff LO

<    3   4   5   6   7   8   9   10   >