On 6/24/19 8:57 PM, Marc Glisse wrote:
> On Mon, 24 Jun 2019, Martin Liška wrote:
> 
>> Using -flto one can see a test failure:
> 
> This is well known, see the archives for details. It is a combination of 2 
> issues:
> - (thin) LTO prevents configure from guessing the floating point format
> - a bug in the generic GMP code (fixed in master IIRC)
> 

Hi.

I've got a patch for the wrong configure of floating point format.

Can you please Mark upstream it?
Thanks,
Martin
diff --git a/acinclude.m4 b/acinclude.m4
index 3c3ecf5..9c2675e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3308,7 +3308,7 @@ struct foo foo = {
   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
 };]
 EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&AC_FD_CC 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS -fno-lto -c conftest.c >&AC_FD_CC 2>&1"
 if AC_TRY_EVAL(gmp_compile); then
 cat >conftest.awk <<\EOF
 [
diff --git a/configure b/configure
index 12ddffd..a7890ed 100755
--- a/configure
+++ b/configure
@@ -24563,7 +24563,7 @@ struct foo foo = {
   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
 };
 EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS -fno-lto -c conftest.c >&5 2>&1"
 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
   (eval $gmp_compile) 2>&5
   ac_status=$?
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to