From ebef93a096660e266e0361e96dfe8fe3701bd21f Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 10 Jul 2025 22:05:43 +0200 Subject: [PATCH] gmp: fix build with gcc15 (#5507) Fixes #5499 --- gmp/0001-gcc15.patch | 13 +++++++++++++ gmp/PKGBUILD | 11 ++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 gmp/0001-gcc15.patch diff --git a/gmp/0001-gcc15.patch b/gmp/0001-gcc15.patch new file mode 100644 index 00000000..41bdd02f --- /dev/null +++ b/gmp/0001-gcc15.patch @@ -0,0 +1,13 @@ +diff -r e84c5c785bbe -r 8e7bb4ae7a18 acinclude.m4 +--- a/acinclude.m4 Wed Dec 04 18:26:27 2024 +0100 ++++ b/acinclude.m4 Wed Jan 29 22:38:02 2025 +0100 +@@ -609,7 +609,7 @@ + + #if defined (__GNUC__) && ! defined (__cplusplus) + typedef unsigned long long t1;typedef t1*t2; +-void g(){} ++void g(int,t1 const*,t1,t2,t1 const*,int){} + void h(){} + static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) + {t1 c,x,r;int i;if(v0){c=1;for(i=1;i