[Gmp-commit] /var/hg/gmp: (GMP_C_DOUBLE_FORMAT): Compile conftest.c to execut...

mercurial at gmplib.org mercurial at gmplib.org
Tue Jul 2 15:56:26 UTC 2019


details:   /var/hg/gmp/rev/33eb0998a052
changeset: 17776:33eb0998a052
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Tue Jul 02 17:56:21 2019 +0200
description:
(GMP_C_DOUBLE_FORMAT): Compile conftest.c to executable in order to trigger final compile in case of LTO.

diffstat:

 acinclude.m4 |  17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 3300fbb5d615 -r 33eb0998a052 acinclude.m4
--- a/acinclude.m4	Mon Jun 17 00:11:50 2019 +0200
+++ b/acinclude.m4	Tue Jul 02 17:56:21 2019 +0200
@@ -3306,9 +3306,16 @@
   { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
   -123456789.0,
   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
-};]
+};
+int main(){
+  int i;
+  for (i = 0; i < 8; i++) {
+    printf ("%d %d %f\n", foo.before[i] + foo.after[i], foo.x);
+  }
+  return 0;
+}]
 EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&AC_FD_CC 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest >&AC_FD_CC 2>&1"
 if AC_TRY_EVAL(gmp_compile); then
 cat >conftest.awk <<\EOF
 [
@@ -3461,11 +3468,11 @@
 }
 ]
 EOF
-  gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
+  gmp_cv_c_double_format=`od -b conftest | $AWK -f conftest.awk`
   case $gmp_cv_c_double_format in
   unknown*)
-    echo "cannot match anything, conftest.$OBJEXT contains" >&AC_FD_CC
-    od -b conftest.$OBJEXT >&AC_FD_CC
+    echo "cannot match anything, conftest contains" >&AC_FD_CC
+    od -b conftest >&AC_FD_CC
     ;;
   esac
 else


More information about the gmp-commit mailing list