public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] rawhide: [libclc] mark __clc_flush_denormal_if_not_supported as static inline
@ 2026-08-05  6:47 Konrad Kleine
  0 siblings, 0 replies; only message in thread
From: Konrad Kleine @ 2026-08-05  6:47 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : rawhide
            Commit : 1591c5fab9ca3e1c7a3f6298b69b7edfe6dccf30
            Author : Konrad Kleine <kkleine@redhat.com>
            Date   : 2026-08-02T08:06:09+02:00
            Stats  : +34/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/1591c5fab9ca3e1c7a3f6298b69b7edfe6dccf30?branch=rawhide

            Log:
            [libclc] mark __clc_flush_denormal_if_not_supported as static inline

See upstream PR: https://github.com/llvm/llvm-project/pull/207264

---
diff --git a/207264.patch b/207264.patch
new file mode 100644
index 0000000..5d1eeae
--- /dev/null
+++ b/207264.patch
@@ -0,0 +1,30 @@
+From 4ee4864ec296d9dc07f0919f18a0c03c19083b1b Mon Sep 17 00:00:00 2001
+From: Karol Herbst <kherbst@redhat.com>
+Date: Thu, 2 Jul 2026 21:44:04 +0200
+Subject: [PATCH] [libclc] mark __clc_flush_denormal_if_not_supported as static
+ inline
+
+The compiled SPIR-V libclc binaries ended up with an empty definition for
+__clc_flush_denormal_if_not_supported.
+
+b8a5888d8d32 ("[libclc] Fix memory fence scope mapping for OpenCL (#170542)")
+also added the static keyword probably due to the same issue.
+
+Fixes: 7f3661128b1e ("[libclc] Remove __attribute__((always_inline)) (#158791)")
+---
+ libclc/clc/include/clc/math/math.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libclc/clc/include/clc/math/math.h b/libclc/clc/include/clc/math/math.h
+index c2647f66b4006..b6a2c864d522a 100644
+--- a/libclc/clc/include/clc/math/math.h
++++ b/libclc/clc/include/clc/math/math.h
+@@ -65,7 +65,7 @@ bool __attribute__((noinline)) __clc_runtime_has_hw_fma32(void);
+ 
+ #define LOG_MAGIC_NUM_SP32 (1 + NUMEXPBITS_SP32 - EXPBIAS_SP32)
+ 
+-_CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x) {
++_CLC_OVERLOAD static _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x) {
+   int ix = __clc_as_int(x);
+   if (!__clc_fp32_subnormals_supported() && ((ix & EXPBITS_SP32) == 0) &&
+       ((ix & MANTBITS_SP32) != 0)) {

diff --git a/llvm.spec b/llvm.spec
index 013a11b..c124e0a 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -579,6 +579,10 @@ Patch2302: 0001-22-polly-shared-libs.patch
 Patch2401: 0001-22-polly-shared-libs.patch
 #endregion polly patches
 
+#region libclc patches
+Patch2217: 207264.patch
+#endregion libclc patches
+
 #region RHEL patches
 # RHEL 8 only
 Patch501: 0001-Fix-page-size-constant-on-aarch64-and-ppc64le.patch

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-05  6:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-05  6:47 [rpms/llvm] rawhide: [libclc] mark __clc_flush_denormal_if_not_supported as static inline Konrad Kleine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox