[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Tue Aug 22 10:20:46 CEST 2023
details: /var/hg/gmp/rev/6ba50b389ed4
changeset: 18444:6ba50b389ed4
user: Marc Glisse <marc.glisse at inria.fr>
date: Tue Aug 22 09:58:40 2023 +0200
description:
autoconf: Add AC_PROG_SED before testing NM
details: /var/hg/gmp/rev/510152c4ca97
changeset: 18445:510152c4ca97
user: Marc Glisse <marc.glisse at inria.fr>
date: Tue Aug 22 10:20:40 2023 +0200
description:
Some main(void).
diffstat:
ChangeLog | 3 +++
acinclude.m4 | 20 ++++++++++----------
configure.ac | 4 ++++
3 files changed, 17 insertions(+), 10 deletions(-)
diffs (120 lines):
diff -r dbd9a550c0be -r 510152c4ca97 ChangeLog
--- a/ChangeLog Mon Aug 21 14:12:09 2023 +0200
+++ b/ChangeLog Tue Aug 22 10:20:40 2023 +0200
@@ -17,6 +17,9 @@
* acinclude.m4, configure.ac: AC_TRY_* -> AC_*_IFELSE.
+ * configure.ac: Add AC_PROG_SED before testing NM.
+ * acinclude.m4: Some main() -> main(void).
+
2023-08-19 Marc Glisse <marc.glisse at inria.fr>
* doc/gmp.texi: Rename IEEE P754. Remove @refill.
diff -r dbd9a550c0be -r 510152c4ca97 acinclude.m4
--- a/acinclude.m4 Mon Aug 21 14:12:09 2023 +0200
+++ b/acinclude.m4 Tue Aug 22 10:20:40 2023 +0200
@@ -802,7 +802,7 @@
AC_DEFUN([GMP_PROG_CC_WORKS_PART],
[GMP_PROG_CC_WORKS_PART_MAIN([$1],[$2],
[$3]
-[int main () { return 0; }])
+[int main (void) { return 0; }])
])
dnl Called: GMP_PROG_CC_WORKS_PART_MAIN(CC+CFLAGS,FAIL-MESSAGE,CODE)
@@ -870,7 +870,7 @@
cat >conftest.c <<EOF
long long foo;
long long bar () { return foo; }
-int main () { return 0; }
+int main (void) { return 0; }
EOF
gmp_prog_cc_works=no
gmp_compile="$1 -c conftest.c >&AS_MESSAGE_LOG_FD"
@@ -912,7 +912,7 @@
AC_MSG_CHECKING([compiler $1 has sizeof($gmp_sizeof_type)==$gmp_sizeof_want])
cat >conftest.c <<EOF
[int
-main ()
+main (void)
{
static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
test_array[0] = 0;
@@ -1145,7 +1145,7 @@
AC_MSG_CHECKING([compiler $2 $3 -no-cpp-precomp])
result=no
cat >conftest.c <<EOF
-int main () { return 0; }
+int main (void) { return 0; }
EOF
gmp_compile="$2 $3 -no-cpp-precomp conftest.c >conftest.out 2>&1"
if AC_TRY_EVAL(gmp_compile); then
@@ -1204,7 +1204,7 @@
[AC_MSG_CHECKING([assembler $1 $2])
result=no
cat >conftest.c <<EOF
-int main () {}
+int main (void) {}
EOF
gmp_compile="$1 $2 -c conftest.c >conftest.out 2>&1"
if AC_TRY_EVAL(gmp_compile); then
@@ -3271,7 +3271,7 @@
-123456789.0,
{ '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
};
-int main(){
+int main(void){
int i;
for (i = 0; i < 8; i++) {
printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x);
@@ -3711,7 +3711,7 @@
}
int
-main ()
+main (void)
{
$i
}
@@ -3822,7 +3822,7 @@
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
int
-main ()
+main (void)
{
return 0;
}
@@ -3896,7 +3896,7 @@
gmp_cv_prog_exeext_for_build,
[cat >conftest.c <<EOF
int
-main ()
+main (void)
{
return 0;
}
@@ -3967,7 +3967,7 @@
[cat >conftest.c <<EOF
#include <math.h>
int
-main ()
+main (void)
{
return 0;
}
diff -r dbd9a550c0be -r 510152c4ca97 configure.ac
--- a/configure.ac Mon Aug 21 14:12:09 2023 +0200
+++ b/configure.ac Tue Aug 22 10:20:40 2023 +0200
@@ -2701,6 +2701,10 @@
CL_AS_NOEXECSTACK
+AC_PROG_SED
+# FIXME: AC_PROG_SED above is a hack (LT_PATH_NM uses $SED), it normally
+# happens as part of LT_INIT, and we are not supposed to call LT_PATH_NM before
+# LT_INIT, but the comments in acinclude.m4 say we want it before LT_INIT...
GMP_PROG_AR
GMP_PROG_NM
More information about the gmp-commit
mailing list