public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghc9.8] rawhide: fix rts build with gcc16 (!16165)
@ 2026-08-08 13:39 Jens Petersen
0 siblings, 0 replies; only message in thread
From: Jens Petersen @ 2026-08-08 13:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ghc9.8
Branch : rawhide
Commit : 54142d68c2041dae226cda98eafca9dbd7d4bc21
Author : Jens Petersen <petersen@redhat.com>
Date : 2026-08-08T21:38:37+08:00
Stats : +39/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ghc9.8/c/54142d68c2041dae226cda98eafca9dbd7d4bc21?branch=rawhide
Log:
fix rts build with gcc16 (!16165)
---
diff --git a/16165.patch b/16165.patch
new file mode 100644
index 0000000..18c172a
--- /dev/null
+++ b/16165.patch
@@ -0,0 +1,35 @@
+Fedora backport to 9.8
+
+From 4ccb6634c53cfdeb34a2b045a4b68fedfaa2cc2f Mon Sep 17 00:00:00 2001
+From: Zubin Duggal <zubin.duggal@gmail.com>
+Date: Wed, 10 Jun 2026 21:44:30 +0530
+Subject: [PATCH] rts: fix validate build with gcc 16.
+ `__attribute__((regparm(1)))` is ignored on x86_64 and now gcc warns that it
+ is ignored:
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+rts/sm/Evac.h:35:1: error:
+ error: ‘regparm’ attribute ignored [-Werror=attributes]
+
+See https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=ccead81bbc39668376eb5cf47066acb446cc43f3
+
+Fixes #27366
+---
+ rts/sm/Evac.h | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/rts/sm/Evac.h b/rts/sm/Evac.h
+index 22dce7261a3..fffa953dc69 100644
+--- a/rts/sm/Evac.h
++++ b/rts/sm/Evac.h
+@@ -25,7 +25,7 @@
+ // registers EAX, EDX, and ECX instead of on the stack. Functions that
+ // take a variable number of arguments will continue to be passed all of
+ // their arguments on the stack.
+-#if __GNUC__ >= 2 && (defined(x86_64_HOST_ARCH) || defined(i386_HOST_ARCH))
++#if defined(i386_HOST_ARCH)
+ #define REGPARM1 __attribute__((regparm(1)))
+ #else
+ #define REGPARM1
diff --git a/ghc9.8.spec b/ghc9.8.spec
index 4b0ebea..5e69042 100644
--- a/ghc9.8.spec
+++ b/ghc9.8.spec
@@ -95,6 +95,9 @@ Patch6: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12026.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2430571
# https://gitlab.haskell.org/ghc/ghc/-/issues/26792 (hadrian speedhack)
Patch7: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15370.patch
+# fix rts build with gcc16
+# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/16165
+Patch9: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/16165.patch
# for unregisterized
Patch16: ghc-hadrian-s390x-rts--qg.patch
@@ -415,6 +418,7 @@ Installing this package causes %{name}-*-prof packages corresponding to
%patch -P5 -p1 -b .orig
%patch -P6 -p1 -b .orig
%patch -P7 -p1 -b .orig
+%patch -P9 -p1 -b .orig
rm libffi-tarballs/libffi-*.tar.gz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-08 13:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-08 13:39 [rpms/ghc9.8] rawhide: fix rts build with gcc16 (!16165) Jens Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox