public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jens Petersen <petersen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ghc9.8] rawhide: fix rts build with gcc16 (!16165)
Date: Sat, 08 Aug 2026 13:39:23 GMT	[thread overview]
Message-ID: <178619636348.1.2482017118909390416.rpms-ghc9.8-54142d68c204@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-08-08 13:39 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=178619636348.1.2482017118909390416.rpms-ghc9.8-54142d68c204@fedoraproject.org \
    --to=petersen@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