Skip to content

Commit 397ad32

Browse files
authored
Merge pull request #352 from cscd98/gcc15-patch
gmp: add GCC 15 patch to fix compilation as defaults to std=23
2 parents 02d0077 + 2f22e42 commit 397ad32

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-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 <marc.glisse@inria.fr>
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+

depends/common/gmp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if(CORE_SYSTEM_NAME STREQUAL osx OR
2727

2828
externalproject_add(gmp
2929
SOURCE_DIR ${CMAKE_SOURCE_DIR}
30+
PATCH_COMMAND autoreconf -vif
3031
CONFIGURE_COMMAND
3132
bash --login -c
3233
"./configure \

0 commit comments

Comments
 (0)