public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] f45: Merge branch 'rawhide' into f45
Date: Thu, 05 Nov 2026 15:46:55 GMT	[thread overview]
Message-ID: <179389361575.1.3895291589049095972.rpms-llvm-fec3fa921a73@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/llvm
Branch : f45
Commit : fec3fa921a735bd996a66c7c9321948734b78c8d
Author : Timm Bäder <tbaeder@redhat.com>
Date   : 2026-11-05T06:33:15+01:00
Stats  : +224/-9 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/llvm/c/fec3fa921a735bd996a66c7c9321948734b78c8d?branch=f45

Log:
Merge branch 'rawhide' into f45

---
diff --git a/238649.patch b/238649.patch
new file mode 100644
index 0000000..a0653f7
--- /dev/null
+++ b/238649.patch
@@ -0,0 +1,45 @@
+From be0849148294222a28ebcd994fe211ebad6f9893 Mon Sep 17 00:00:00 2001
+From: Mark Zhuang <mark.zhuang@spacemit.com>
+Date: Wed, 4 Nov 2026 10:38:32 +0800
+Subject: [PATCH] [flang][OpenMP] Fix DECLARE_SIMD warning annotations in
+ linear-clause01.f90
+
+release/23.x picked 2cc5b8ca (warn on ignored DECLARE_SIMD) before
+94467edd (REF modifier verification), the reverse of their order on main.
+2cc5b8ca therefore annotated only Case 1-4, and 94467edd later appended
+Case 5-7 without the warning annotation, failing check-flang at lines
+76/83/90.
+
+Assisted-by: Claude
+---
+ flang/test/Semantics/OpenMP/linear-clause01.f90 | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/flang/test/Semantics/OpenMP/linear-clause01.f90 b/flang/test/Semantics/OpenMP/linear-clause01.f90
+index 81a69b902ce4f5..c0b7f74fe06d3e 100644
+--- a/flang/test/Semantics/OpenMP/linear-clause01.f90
++++ b/flang/test/Semantics/OpenMP/linear-clause01.f90
+@@ -72,6 +72,7 @@ end subroutine linear_clause_04
+ ! Case 5
+ subroutine linear_clause_05(x)
+     integer :: x(:)
++    !WARNING: DECLARE SIMD directive is not implemented yet and will be ignored
+     !ERROR: The list item `x` specified with the REF 'linear-modifier' must not be a polymorphic variable, an assumed-shape array, or a variable with the `ALLOCATABLE` attribute
+     !$omp declare simd linear(x : ref)
+ end subroutine linear_clause_05
+@@ -79,6 +80,7 @@ end subroutine linear_clause_05
+ ! Case 6
+ subroutine linear_clause_06(x)
+     integer, allocatable :: x(:)
++    !WARNING: DECLARE SIMD directive is not implemented yet and will be ignored
+     !ERROR: The list item `x` specified with the REF 'linear-modifier' must not be a polymorphic variable, an assumed-shape array, or a variable with the `ALLOCATABLE` attribute
+     !$omp declare simd linear(x : ref)
+ end subroutine linear_clause_06
+@@ -86,6 +88,7 @@ end subroutine linear_clause_06
+ ! Case 7
+ subroutine linear_clause_07(x)
+     type(*) :: x(:)
++    !WARNING: DECLARE SIMD directive is not implemented yet and will be ignored
+     !ERROR: The list item `x` specified with the REF 'linear-modifier' must not be a polymorphic variable, an assumed-shape array, or a variable with the `ALLOCATABLE` attribute
+     !$omp declare simd linear(x : ref)
+ end subroutine linear_clause_07

diff --git a/80ef20addc82619c07b6deaec5f9995000b5dd16.patch b/80ef20addc82619c07b6deaec5f9995000b5dd16.patch
new file mode 100644
index 0000000..12258bd
--- /dev/null
+++ b/80ef20addc82619c07b6deaec5f9995000b5dd16.patch
@@ -0,0 +1,129 @@
+From 80ef20addc82619c07b6deaec5f9995000b5dd16 Mon Sep 17 00:00:00 2001
+From: Nikita Popov <npopov@redhat.com>
+Date: Thu, 15 Oct 2026 09:13:33 +0200
+Subject: [PATCH] [bolt] Don't compile installed binary with --emit-relocs
+ (#231819)
+
+Bolt has a smoke-test that uses `merge-fdata` as a non-trivial binary.
+This requires it to be compiled with `--emit-relocs`. However, this is
+also an installed binary, so it ends up installed with relocations.
+
+This always ends up being flagged by our downstream binary analysis
+tooling. It would be easy enough to strip relocations and symbols on our
+side, but I don't think that the build system should be producing any
+"weird" installed binaries. Either we should automatically strip during
+installation, or we should not emit relocations for a binary that gets
+installed.
+
+I'm using the second approach here, compiling a separate
+merge-fdata-for-test binary that does not get installed. I assume that
+we're not particularly concerned about the cost of building an
+additional tiny binary here.
+---
+ bolt/test/CMakeLists.txt                |  1 +
+ bolt/test/lit.cfg.py                    |  1 +
+ bolt/test/runtime/meta-merge-fdata.test | 12 ++++++------
+ bolt/tools/merge-fdata/CMakeLists.txt   | 18 +++++++++++++++---
+ 4 files changed, 23 insertions(+), 9 deletions(-)
+
+diff --git a/bolt/test/CMakeLists.txt b/bolt/test/CMakeLists.txt
+index 64737901a0eaaa..efa90f20a88c84 100644
+--- a/bolt/test/CMakeLists.txt
++++ b/bolt/test/CMakeLists.txt
+@@ -54,6 +54,7 @@ list(APPEND BOLT_TEST_DEPS
+   llvm-strip
+   llvm-objcopy
+   merge-fdata
++  merge-fdata-for-test
+   not
+   split-file
+   yaml2obj
+diff --git a/bolt/test/lit.cfg.py b/bolt/test/lit.cfg.py
+index 30cfc8fa549018..f92631d071a9aa 100644
+--- a/bolt/test/lit.cfg.py
++++ b/bolt/test/lit.cfg.py
+@@ -132,6 +132,7 @@
+     ),
+     ToolSubst("process-debug-line", unresolved="fatal"),
+     ToolSubst("merge-fdata", unresolved="fatal"),
++    ToolSubst("merge-fdata-for-test", unresolved="fatal"),
+     ToolSubst("llvm-readobj", unresolved="fatal"),
+     ToolSubst("llvm-dwp", unresolved="fatal"),
+     ToolSubst("split-file", unresolved="fatal"),
+diff --git a/bolt/test/runtime/meta-merge-fdata.test b/bolt/test/runtime/meta-merge-fdata.test
+index 6972e75c64de7b..c117b8ce607b1a 100644
+--- a/bolt/test/runtime/meta-merge-fdata.test
++++ b/bolt/test/runtime/meta-merge-fdata.test
+@@ -1,4 +1,4 @@
+-# Meta test using merge-fdata binary
++# Meta test using merge-fdata-for-test binary
+ UNSUPPORTED: asan
+ # Instrumentation currently only works on X86
+ REQUIRES: x86_64-linux,bolt-runtime
+@@ -7,7 +7,7 @@ REQUIRES: x86_64-linux,bolt-runtime
+ # - Direct branches
+ # - Unmapped calls coming from uninstrumented code (libc)
+ # - Direct calls
+-RUN: llvm-bolt merge-fdata -o %t.inst --instrument \
++RUN: llvm-bolt merge-fdata-for-test -o %t.inst --instrument \
+ RUN:   --instrumentation-file=%t.fdata
+ 
+ # Execute with no input
+@@ -20,7 +20,7 @@ RUN: cat %t.fdata1 | FileCheck %s --check-prefix=CHECK-FDATA
+ CHECK-FDATA: 0 [unknown] 0 1 _start 0 0 1
+ 
+ # Check that BOLT works with this profile
+-RUN: llvm-bolt merge-fdata -o %t.bolt --data %t.fdata1 \
++RUN: llvm-bolt merge-fdata-for-test -o %t.bolt --data %t.fdata1 \
+ RUN:   --reorder-blocks=ext-tsp --reorder-functions=hfsort+ \
+ RUN:   --split-functions 2>&1 \
+ RUN:   | FileCheck %s --check-prefix=CHECK-BOLT1
+@@ -31,18 +31,18 @@ RUN: %t.inst --help
+ RUN: mv %t.fdata %t.fdata2
+ 
+ # Check profile coverage
+-RUN: llvm-boltdiff merge-fdata merge-fdata \
++RUN: llvm-boltdiff merge-fdata-for-test merge-fdata-for-test \
+ RUN:   --data %t.fdata1 --data2 %t.fdata2 --display-count=20 | \
+ RUN:   FileCheck %s --check-prefix=CHECK-BOLTDIFF
+ CHECK-BOLTDIFF: Inputs share [[#]] functions
+ 
+ # Check that instrumented binary produces the same result
+-RUN: merge-fdata %t.fdata1 %t.fdata2 > %t.fdata.base
++RUN: merge-fdata-for-test %t.fdata1 %t.fdata2 > %t.fdata.base
+ RUN: %t.inst %t.fdata1 %t.fdata2 > %t.fdata.inst
+ RUN: cmp %t.fdata.base %t.fdata.inst
+ 
+ # Optimize using merged fdata
+-RUN: llvm-bolt merge-fdata -o %t.opt --data %t.fdata.base \
++RUN: llvm-bolt merge-fdata-for-test -o %t.opt --data %t.fdata.base \
+ RUN:   --reorder-blocks=ext-tsp --reorder-functions=hfsort+ \
+ RUN:   --split-functions 2>&1 \
+ RUN:   | FileCheck %s --check-prefix=CHECK-BOLT2
+diff --git a/bolt/tools/merge-fdata/CMakeLists.txt b/bolt/tools/merge-fdata/CMakeLists.txt
+index f6a87a2268982e..cfd991bc8ac058 100644
+--- a/bolt/tools/merge-fdata/CMakeLists.txt
++++ b/bolt/tools/merge-fdata/CMakeLists.txt
+@@ -11,7 +11,19 @@ add_bolt_tool(merge-fdata
+ 
+ add_dependencies(bolt merge-fdata)
+ 
+-# Emit relocations for BOLT meta test (bolt/test/runtime/meta-merge-fdata.test)
+-if (BOLT_INCLUDE_TESTS AND UNIX AND NOT APPLE)
+-  target_link_options(merge-fdata PRIVATE LINKER:--emit-relocs)
++if (BOLT_INCLUDE_TESTS)
++  # Compile another binary using --emit-relocs for BOLT meta test in
++  # bolt/test/runtime/meta-merge-fdata.test.
++  set(EXCLUDE_FROM_ALL ON)
++  add_bolt_executable(merge-fdata-for-test
++    merge-fdata.cpp
++
++    DISABLE_LLVM_LINK_LLVM_DYLIB
++
++    DEPENDS
++    intrinsics_gen
++  )
++  if (UNIX AND NOT APPLE)
++    target_link_options(merge-fdata-for-test PRIVATE LINKER:--emit-relocs)
++  endif()
+ endif()

diff --git a/llvm.spec b/llvm.spec
index 36fbb3b..898a5b7 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -2,7 +2,7 @@
 #region version
 %global maj_ver 23
 %global min_ver 1
-%global patch_ver 4
+%global patch_ver 5
 #global rc_ver rc3
 
 %bcond_with snapshot_build
@@ -300,6 +300,13 @@ end
 %bcond_without multilib
 %endif
 
+# openpgpverify is not available on RHEL <= 10
+%if 0%{?rhel} && 0%{?rhel} <= 10
+%global use_openpgpverify 0
+%else
+%global use_openpgpverify 1
+%endif
+
 # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
 # https://bugzilla.redhat.com/show_bug.cgi?id=2158587
 %undefine _include_frame_pointers
@@ -627,6 +634,10 @@ Patch2207: 0001-AggressiveInstCombine-Fix-crash-when-folding-consecu.patch
 # https://github.com/llvm/llvm-project/pull/227851
 Patch2307: 227851.patch
 
+# Temporary backport of https://github.com/llvm/llvm-project/pull/238649 for
+# 23.1.5.
+Patch2309: 238649.patch
+
 %if 0%{?rhel} == 8
 %global python3_pkgversion 3.12
 %global __python3 /usr/bin/python3.12
@@ -712,8 +723,12 @@ BuildRequires:	python%{python3_pkgversion}-setuptools
 BuildRequires:	python%{python3_pkgversion}-rpm-macros
 %endif
 
-# For gpg source verification
+# For source verification
+%if %{use_openpgpverify}
+BuildRequires:	openpgpverify
+%else
 BuildRequires:	gnupg2
+%endif
 
 BuildRequires:	swig
 BuildRequires:	libxml2-devel
@@ -1435,15 +1450,27 @@ Mesa OpenCL support with RustiCL.
 %prep
 %if %{without snapshot_build}
 # llvm
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%else
 %{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%endif
 
 %if %{build_docs} == 0
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE43}' --data='%{SOURCE42}'
+%else
 %{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE43}' --data='%{SOURCE42}'
 %endif
 %endif
+%endif
 
 %if %{with bundle_compat_lib}
+%if %{use_openpgpverify}
+%{openpgpverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3001}' --data='%{SOURCE3000}'
+%else
 %{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3001}' --data='%{SOURCE3000}'
+%endif
 %setup -T -q -b 3000 -n llvm-project-%{compat_ver}.src
 
 # Apply all patches with number < 500 (unconditionally)
@@ -1615,6 +1642,15 @@ cd llvm/utils/lit
 %endif
 %endif
 
+%ifarch riscv64
+%if 0%{?rhel} >= 11
+%global cfg_file_content %{cfg_file_content} -march=rva23u64
+%else
+# Fedora, RHEL 10
+%global cfg_file_content %{cfg_file_content} -march=rv64gc
+%endif
+%endif
+
 %ifarch s390x
 %if 0%{?rhel} >= 11 || 0%{?fedora} >= 45
 %global cfg_file_content %{cfg_file_content} -march=z15 -mtune=z17
@@ -1716,6 +1752,13 @@ popd
 	%global cmake_common_args %{cmake_common_args} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG"
 %endif
 
+%if %{maj_ver} >= 24
+# ClangIR got enabled by default in LLVM 24.
+# Building CIR means that parts of MLIR are installed. We cannot support this
+# in CentOS/RHEL. Disable it in all builds for now.
+%global cmake_common_args %{cmake_common_args} -DCLANG_ENABLE_CIR=OFF
+%endif
+
 %global cmake_config_args %{cmake_common_args}
 
 #region clang options
@@ -3373,6 +3416,7 @@ fi
 %else
 %{expand_bins %{expand:
     llvm-calc-occupancy
+    UnicodeCharSetsGenerator
 }}
 %endif
 

diff --git a/sources b/sources
index b1e1fc2..c816b92 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (llvm_man_pages-23.1.4.tar.xz) = 8c90e549c9634f2375ba6325bb426769902c9eaf99ce16d6f7d304499615d54f1045fcd6f981d2e534a5006b10f3baaab35e5e8de9354ccdca51156007a00eab
-SHA512 (llvm-project-23.1.4.src.tar.xz.sig) = 1c37a50413faffb4f73c76583bbc3148d7e28005126aed0a41f63882aae174ba840aeaf6b43e56649d64e749fe9503c8f41435c7bdcf62468b1c0b4b93515802
-SHA512 (llvm-project-23.1.4.src.tar.xz) = 1443531768d7040677302e4468b95b345511f10881a072e703814e9e10316d6ce12f56e8d1fbab5c350550380ae8d242acebb68c833fa385ea7777f05d8bde23
-SHA512 (llvm_man_pages-23.1.4.tar.xz.sig) = 7fe9338415eb39b869fe981b0a9213863c94fa463ea56f78e0dba9f0a3b56afcfab77a6fbf38d42096f1a94bed2f7af0454014ccee35cb7139506dff20682299
+SHA512 (llvm_man_pages-23.1.5.tar.xz.sig) = ee3732b73c6e2eb1c43c90a72c2ab90e2f14d56433973e738f2be4afbce2563e5cfde7156f5d4f88d0e7dfcb1a0493b72a8400b231bd3e4f500172bf0e50d172
+SHA512 (llvm_man_pages-23.1.5.tar.xz) = 3eeab503c580ffa2b4efae582bf02a4146571d2d2bb4dabc8d72f93227cecd1b711a4eafcef83ce242a206d08780825f6e59e608a793760a90f3f89740393461
+SHA512 (llvm-project-23.1.5.src.tar.xz.sig) = 7937df41a9d66b2f227e5f708f78b191cc8e062299c03d70308b2c56d2885e4c1734661b76418747402099a4cd6d699dcf47ce193104e800676dc963724e317b
+SHA512 (llvm-project-23.1.5.src.tar.xz) = fae39af451683ad864299f497167616e63d3a1bb5719f0d5123119e7398972cb602aef8cc271b8433910064afa88e1e7b8eede3fdd1ff58664c3189cf4ab5880

diff --git a/llvm.spec b/llvm.spec
index 6be8489..898a5b7 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -634,9 +634,6 @@ Patch2207: 0001-AggressiveInstCombine-Fix-crash-when-folding-consecu.patch
 # https://github.com/llvm/llvm-project/pull/227851
 Patch2307: 227851.patch
 
-# Fix bolt rpminspect failure.
-Patch2308: 80ef20addc82619c07b6deaec5f9995000b5dd16.patch
-
 # Temporary backport of https://github.com/llvm/llvm-project/pull/238649 for
 # 23.1.5.
 Patch2309: 238649.patch

                 reply	other threads:[~2026-11-05 15:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179389361575.1.3895291589049095972.rpms-llvm-fec3fa921a73@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox