diff options
author | Chris Packham <judge.packham@gmail.com> | 2025-02-07 10:20:22 +1300 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2025-02-08 17:34:19 +1300 |
commit | 1e9bf8151513b054f60f34bc89507c31dc242cf0 (patch) | |
tree | 6425a43ae3fcd3ea0f5ce72a0e1f03fc4a5ee7f3 | |
parent | 7d8717a5bea034bfbd85b46f0e2a084c7441a483 (diff) | |
download | crosstool-ng-1e9bf8151513b054f60f34bc89507c31dc242cf0.tar.gz crosstool-ng-1e9bf8151513b054f60f34bc89507c31dc242cf0.tar.bz2 crosstool-ng-1e9bf8151513b054f60f34bc89507c31dc242cf0.zip |
gmp: Add upstream patch for C23 compatibility
Add a patch from upstream GMP that updates some custom configure checks
for C23 compatibility (gnu32 will be the default for GCC 15).
Reported-by: Marc Poulhiès <dkm@kataplop.net>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
-rw-r--r-- | packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch b/packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch new file mode 100644 index 00000000..55efaca2 --- /dev/null +++ b/packages/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch @@ -0,0 +1,31 @@ +From: Marc Glisse <marc.glisse@inria.fr> +Date: Wed, 29 Jan 2025 22:38:02 +0100 +Subject: [PATCH] Complete function prototype in acinclude.m4 for C23 + compatibility +--- + acinclude.m4 | 2 +- + configure | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -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<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;} +--- a/configure ++++ b/configure +@@ -6568,7 +6568,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<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;} |