[Gmp-commit] /var/hg/gmp: Remove broken __builtin_alloca configure test
mercurial at gmplib.org
mercurial at gmplib.org
Fri Sep 19 17:18:42 CEST 2025
details: /var/hg/gmp/rev/1dc7d5dabc8d
changeset: 18488:1dc7d5dabc8d
user: Marc Glisse <marc.glisse at inria.fr>
date: Fri Sep 19 17:18:39 2025 +0200
description:
Remove broken __builtin_alloca configure test
diffstat:
ChangeLog | 4 ++++
acinclude.m4 | 17 -----------------
2 files changed, 4 insertions(+), 17 deletions(-)
diffs (38 lines):
diff -r b06ade444025 -r 1dc7d5dabc8d ChangeLog
--- a/ChangeLog Wed Aug 27 08:08:18 2025 +0200
+++ b/ChangeLog Fri Sep 19 17:18:39 2025 +0200
@@ -1,3 +1,7 @@
+2025-09-19 Marc Glisse <marc.glisse at inria.fr>
+
+ * acinclude.m4 (alloca array): Remove broken test.
+
2025-03-15 Khem Raj <raj.khem at gmail.com>
* acinclude.m4: Add parameter names to function prototype.
diff -r b06ade444025 -r 1dc7d5dabc8d acinclude.m4
--- a/acinclude.m4 Wed Aug 27 08:08:18 2025 +0200
+++ b/acinclude.m4 Fri Sep 19 17:18:39 2025 +0200
@@ -564,23 +564,6 @@
}
])
-# __builtin_alloca is not available everywhere, check it exists before
-# seeing that it works
-GMP_PROG_CC_WORKS_PART_TEST([$1],[__builtin_alloca availability],
-[int k; int foo () { __builtin_alloca (k); }],
- [GMP_PROG_CC_WORKS_PART([$1], [alloca array],
-[/* The following provokes an internal compiler error from Itanium HP-UX cc
- under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
-int k;
-int foo ()
-{
- int i, **a;
- a = __builtin_alloca (k);
- for (i = 0; i <= k; i++)
- a[i] = __builtin_alloca (1 << i);
-}
-])])
-
GMP_PROG_CC_WORKS_PART([$1], [abs int -> double conversion],
[/* The following provokes an internal error from the assembler on
power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
More information about the gmp-commit
mailing list