Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package llvm13 for openSUSE:Factory checked in at 2023-05-13 17:17:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm13 (Old) and /work/SRC/openSUSE:Factory/.llvm13.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm13" Sat May 13 17:17:37 2023 rev:14 rq:1086803 version:13.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm13/llvm13.changes 2023-03-26 20:19:27.703040990 +0200 +++ /work/SRC/openSUSE:Factory/.llvm13.new.1533/llvm13.changes 2023-05-13 17:17:49.534444739 +0200 @@ -1,0 +2,12 @@ +Tue May 9 21:37:34 UTC 2023 - Aaron Puchert <aaronpuch...@alice-dsl.net> + +- Don't use gold for linking anymore: on s390x we use ld.bfd with + LLVMgold.so, on ppc64 we disable ThinLTO for now. (boo#1210688) +- Using ld.bfd on s390x exposed an issue with the existing + llvm_build_tablegen_component_as_shared_library.patch: linking + llvm-tblgen with libLLVM.so means we also have to link libraries + used for that (like LLVMTableGenGlobalISel) with libLLVM.so. +- Rewrite summary and description for llvm-gold to point out that + it can also be used with ld.bfd, recommend with binutils. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm13.spec ++++++ --- /var/tmp/diff_new_pack.oeogJx/_old 2023-05-13 17:17:50.686451367 +0200 +++ /var/tmp/diff_new_pack.oeogJx/_new 2023-05-13 17:17:50.690451391 +0200 @@ -39,11 +39,10 @@ %bcond_with openmp %endif -# We use gold where we want to use ThinLTO, but where lld isn't supported (well). -%ifarch %{ix86} ppc64 s390x -%bcond_without gold +%ifarch s390x +%bcond_with use_lld %else -%bcond_with gold +%bcond_without use_lld %endif %ifarch x86_64 @@ -55,7 +54,7 @@ %endif # Disabled on ARM because it's awfully slow and often times out. (boo#1178070) -%ifarch %{ix86} ppc64 ppc64le s390x x86_64 +%ifarch %{ix86} ppc64le s390x x86_64 %bcond_without thin_lto %else %bcond_with thin_lto @@ -184,9 +183,6 @@ Requires(postun):update-alternatives # llvm does not work on s390 ExcludeArch: s390 -%if %{with gold} -BuildRequires: binutils-gold -%endif %if %{with ffi} BuildRequires: pkgconfig(libffi) %endif @@ -382,14 +378,18 @@ This package contains the link-time optimizer for LLVM. %package gold -Summary: Gold linker plugin for LLVM +Summary: LLVM LTO plugin for ld.bfd and ld.gold Group: Development/Tools/Building Conflicts: llvm-gold-provider < %{version} Provides: llvm-gold-provider = %{version} +Supplements: packageand(clang%{_sonum}:binutils) Supplements: packageand(clang%{_sonum}:binutils-gold) %description gold -This package contains the Gold linker plugin for LLVM. +This package contains a plugin for link-time optimization in binutils linkers. + +Despite the name, it can also be used with ld.bfd. It is required for using +Clang with -flto=full or -flto=thin when linking with one of those linkers. %package -n libomp%{_sonum}-devel Summary: MPI plugin for LLVM @@ -765,10 +765,10 @@ ninja -v %{?_smp_mflags} clang llvm-tblgen clang-tblgen \ %if %{with thin_lto} llvm-ar llvm-ranlib \ -%if %{with gold} - LLVMgold -%else +%if %{with use_lld} lld +%else + LLVMgold %endif %endif @@ -830,15 +830,10 @@ -DLLVM_ENABLE_LTO=Thin \ -DCMAKE_AR="${LLVM_AR}" \ -DCMAKE_RANLIB="${LLVM_RANLIB}" \ -%if %{with gold} - -DCMAKE_LINKER=%{_bindir}/ld.gold \ - -DLLVM_USE_LINKER=gold \ -%else +%if %{with use_lld} -DCMAKE_LINKER=${LLD} \ -DLLVM_USE_LINKER=${LLD} \ %endif -%else - -DCMAKE_LINKER=%{_bindir}/ld \ %endif %ifarch %arm ppc s390 %{ix86} -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1 -DNDEBUG" \ ++++++ llvm_build_tablegen_component_as_shared_library.patch ++++++ --- /var/tmp/diff_new_pack.oeogJx/_old 2023-05-13 17:17:50.838452243 +0200 +++ /var/tmp/diff_new_pack.oeogJx/_new 2023-05-13 17:17:50.838452243 +0200 @@ -55,4 +55,17 @@ ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/TableGen +Index: llvm-13.0.1.src/utils/TableGen/GlobalISel/CMakeLists.txt +=================================================================== +--- llvm-13.0.1.src.orig/utils/TableGen/GlobalISel/CMakeLists.txt ++++ llvm-13.0.1.src/utils/TableGen/GlobalISel/CMakeLists.txt +@@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS + TableGen + ) + +-add_llvm_library(LLVMTableGenGlobalISel STATIC DISABLE_LLVM_LINK_LLVM_DYLIB ++add_llvm_library(LLVMTableGenGlobalISel STATIC + CodeExpander.cpp + GIMatchDag.cpp + GIMatchDagEdge.cpp