[PATCH] autoconf: add missing main() for __builtin_alloca check

mochaaP mochaaap at gmail.com
Tue Sep 9 21:52:49 CEST 2025


From: Zephyr Lykos <self at mochaa.ws>

# HG changeset patch
# User Zephyr Lykos <self at mochaa.ws>
# Date 1750155278 -28800
#      Tue Jun 17 18:14:38 2025 +0800
# Node ID 1e575f491a8046e67c5759e8369284860d58b969
# Parent  d66d66d82dbbe4f561920d28c1e1cbe6818452c7
autoconf: add missing main() for __builtin_alloca check.

diff --git a/acinclude.m4 b/acinclude.m4
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -566,7 +566,7 @@ param_init ()

 # __builtin_alloca is not available everywhere, check it exists before
 # seeing that it works
-GMP_PROG_CC_WORKS_PART_TEST([$1],[__builtin_alloca availability],
+GMP_PROG_CC_WORKS_PART([$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


More information about the gmp-devel mailing list