Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package llvm22 for openSUSE:Factory checked in at 2026-05-11 16:48:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm22 (Old) and /work/SRC/openSUSE:Factory/.llvm22.new.1966 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm22" Mon May 11 16:48:24 2026 rev:3 rq:1352226 version:22.1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm22/llvm22.changes 2026-04-29 19:17:41.080692352 +0200 +++ /work/SRC/openSUSE:Factory/.llvm22.new.1966/llvm22.changes 2026-05-11 16:48:33.291041820 +0200 @@ -1,0 +2,15 @@ +Sat May 9 12:08:56 UTC 2026 - Aaron Puchert <[email protected]> + +- Update to version 22.1.5. + * This release contains bug-fixes for the LLVM 22.1.0 release. + This release is API and ABI compatible with 22.1.0. +- Add bolt-riscv-build-hugify-runtime.patch to enable the bolt + hugify runtime on riscv64. + +------------------------------------------------------------------- +Fri May 8 21:22:45 UTC 2026 - Aaron Puchert <[email protected]> + +- Make sure we don't lose the distribution compiler flags. +- Remove unnecessary dependency of llvm-devel on libtool. + +------------------------------------------------------------------- Old: ---- clang-docs-22.1.4.src.tar.xz llvm-docs-22.1.4.src.tar.xz llvm-project-22.1.4.src.tar.xz llvm-project-22.1.4.src.tar.xz.sig New: ---- bolt-riscv-build-hugify-runtime.patch clang-docs-22.1.5.src.tar.xz llvm-docs-22.1.5.src.tar.xz llvm-project-22.1.5.src.tar.xz llvm-project-22.1.5.src.tar.xz.sig ----------(New B)---------- New: This release is API and ABI compatible with 22.1.0. - Add bolt-riscv-build-hugify-runtime.patch to enable the bolt hugify runtime on riscv64. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm22.spec ++++++ --- /var/tmp/diff_new_pack.Kt1q96/_old 2026-05-11 16:48:37.183201288 +0200 +++ /var/tmp/diff_new_pack.Kt1q96/_new 2026-05-11 16:48:37.187201452 +0200 @@ -19,7 +19,7 @@ %global _sonum 22 %global _minor %{_sonum}.1 %global _soname %{_minor}%{?_rc:-rc%_rc} -%global _patch_level 4 +%global _patch_level 5 %global _relver %{_minor}.%{_patch_level} %global _version %_relver%{?_rc:-rc%_rc} %global _itsme22 1 @@ -436,6 +436,8 @@ Patch30: bolt-link-shared-library.patch # PATCH-FIX-UPSTREAM Add missing triple to RISCV64Triples (gh#llvm/llvm-project#164228) Patch31: clang-riscv-triple.patch +# PATCH-FIX-UPSTREAM Enable build of bolt's hugify runtime on riscv64. +Patch32: bolt-riscv-build-hugify-runtime.patch BuildRequires: %{python_pkg}-base >= 3.8 BuildRequires: binutils-devel >= 2.21.90 BuildRequires: cmake >= 3.13.4 @@ -491,7 +493,6 @@ Requires: libLLVM%{_sonum} = %{version} Requires: libLTO%{_sonum} = %{version} Requires: libstdc++-devel -Requires: libtool Requires: llvm%{_sonum}-gold %if %{with polly} # Referenced by LLVMExports.cmake @@ -932,6 +933,9 @@ # These tests often verify timing and can randomly fail if the system is under heavy load. It happens sometimes on our build machines. rm -rf libcxx/test/std/thread/ +# bolt +%patch -P 32 -p1 + %build %global sourcedir %{_builddir}/%{buildsubdir} @@ -1019,22 +1023,25 @@ # This reduces the total amount of disk space used during build. (bnc#1074625) find ./stage1 \( -name '*.o' -or -name '*.a' \) -delete -# 3) Remove -fstack-clash-protection on architectures where it isn't supported. -# Using it just prints a warning, but that warning prevents the configuration -# step, which uses -Werror, from recognizing the availability of other flags. -if ! ./stage1/bin/clang -c -xc -Werror -fstack-clash-protection -o /dev/null /dev/null; -then - flags=$(echo %flags | sed 's/-fstack-clash-protection//'); -fi -# 4) Add -fno-plt: With -Wl,-z,now the PLT is basically dead code, so we can +# 3) Add -fno-plt: With -Wl,-z,now the PLT is basically dead code, so we can # now go the direct route for quite frequent cross-DSO calls. This reduces # branches in a typical execution by ~5 percent, instructions/cycles # by ~4 percent, and reduces pressure on the instruction cache. We do this # only on x86_64 where it doesn't increase the code size significantly. %ifarch x86_64 -flags="$flags -fno-plt" +%global flags %flags -fno-plt %endif +# 4) Remove -fstack-clash-protection on architectures where it isn't supported. +# Using it just prints a warning, but that warning prevents the configuration +# step, which uses -Werror, from recognizing the availability of other flags. +if ! ./stage1/bin/clang -c -xc -Werror -fstack-clash-protection -o /dev/null /dev/null; +then + flags=$(echo "%flags" | sed 's/-fstack-clash-protection//'); +else + flags="%flags" +fi + CFLAGS=$flags CXXFLAGS=$flags ++++++ bolt-riscv-build-hugify-runtime.patch ++++++ diff --git a/bolt/runtime/hugify.cpp b/bolt/runtime/hugify.cpp index de896307f24f..d972ff9853cc 100644 --- a/bolt/runtime/hugify.cpp +++ b/bolt/runtime/hugify.cpp @@ -6,7 +6,8 @@ // //===---------------------------------------------------------------------===// -#if (defined(__x86_64__) || defined(__aarch64__) || defined(__arm64__)) && \ +#if (defined(__x86_64__) || defined(__aarch64__) || defined(__arm64__) || \ + defined(__riscv)) && \ !defined(__APPLE__) #include "common.h" @@ -181,6 +182,9 @@ extern "C" __attribute((naked)) void __bolt_hugify_self() { "add x16, x16, #:lo12:__bolt_hugify_start_program\n" "br x16\n" :::); +#elif defined(__riscv) + __asm__ __volatile__(SAVE_ALL "jal __bolt_hugify_self_impl\n" RESTORE_ALL + "tail __bolt_hugify_start_program"); #else __exit(1); #endif ++++++ clang-docs-22.1.4.src.tar.xz -> clang-docs-22.1.5.src.tar.xz ++++++ ++++ 3704 lines of diff (skipped) ++++++ llvm-docs-22.1.4.src.tar.xz -> llvm-docs-22.1.5.src.tar.xz ++++++ /work/SRC/openSUSE:Factory/llvm22/llvm-docs-22.1.4.src.tar.xz /work/SRC/openSUSE:Factory/.llvm22.new.1966/llvm-docs-22.1.5.src.tar.xz differ: char 15, line 1 ++++++ llvm-project-22.1.4.src.tar.xz -> llvm-project-22.1.5.src.tar.xz ++++++ /work/SRC/openSUSE:Factory/llvm22/llvm-project-22.1.4.src.tar.xz /work/SRC/openSUSE:Factory/.llvm22.new.1966/llvm-project-22.1.5.src.tar.xz differ: char 15, line 1
