Skip to content

Commit ca6e6c5

Browse files
committed
gmp: add GCC 15 patches to fix compilation as defaults to std=23
1 parent 3269ad6 commit ca6e6c5

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# HG changeset patch
3+
# User Marc Glisse <[email protected]>
4+
# Date 1738186682 -3600
5+
# Node ID 8e7bb4ae7a18b1405ea7f9cbcda450b7d920a901
6+
# Parent e84c5c785bbe8ed8c3620194e50b65adfc2f5d83
7+
Complete function prototype in acinclude.m4 for C23 compatibility
8+
9+
diff -r e84c5c785bbe -r 8e7bb4ae7a18 acinclude.m4
10+
--- a/acinclude.m4 Wed Dec 04 18:26:27 2024 +0100
11+
+++ b/acinclude.m4 Wed Jan 29 22:38:02 2025 +0100
12+
@@ -609,7 +609,7 @@
13+
14+
#if defined (__GNUC__) && ! defined (__cplusplus)
15+
typedef unsigned long long t1;typedef t1*t2;
16+
-void g(){}
17+
+void g(int a,t1 const*b,t1 c,t2 d,t1 const*e,int f){}
18+
void h(){}
19+
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
20+
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
21+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- a/configure 2023-07-29 14:42:22.000000000 +0100
2+
+++ b/configure 2025-11-05 10:38:24.245436328 +0000
3+
@@ -6568,7 +6568,7 @@
4+
5+
#if defined (__GNUC__) && ! defined (__cplusplus)
6+
typedef unsigned long long t1;typedef t1*t2;
7+
-void g(){}
8+
+void g(int a,t1 const*b,t1 c,t2 d,t1 const*e,int f){}
9+
void h(){}
10+
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
11+
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
12+
@@ -8187,7 +8187,7 @@
13+
14+
#if defined (__GNUC__) && ! defined (__cplusplus)
15+
typedef unsigned long long t1;typedef t1*t2;
16+
-void g(){}
17+
+void g(int a,t1 const*b,t1 c,t2 d,t1 const*e,int f){}
18+
void h(){}
19+
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
20+
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}

0 commit comments

Comments
 (0)