public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Konrad Kleine <kkleine@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] f44: [libclc] mark __clc_flush_denormal_if_not_supported as static inline
Date: Wed, 05 Aug 2026 06:47:35 GMT [thread overview]
Message-ID: <178591245532.1.16356256479662502435.rpms-llvm-2f31a5df0f89@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/llvm
Branch : f44
Commit : 2f31a5df0f896b85656f6020036d046a8fe39332
Author : Konrad Kleine <kkleine@redhat.com>
Date : 2026-08-02T08:12:16+02:00
Stats : +34/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/llvm/c/2f31a5df0f896b85656f6020036d046a8fe39332?branch=f44
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 4d1ff92..cb7c06f 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -530,6 +530,10 @@ Patch2202: 0001-22-polly-shared-libs.patch
Patch2302: 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
reply other threads:[~2026-08-05 6:47 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=178591245532.1.16356256479662502435.rpms-llvm-2f31a5df0f89@fedoraproject.org \
--to=kkleine@redhat.com \
--cc=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