GMP test fails with -flto

Torbjörn Granlund tg at gmplib.org
Mon Jul 1 14:36:23 UTC 2019


Vincent Lefevre <vincent at vinc17.net> writes:

  I suggest another solution:

  First try like now. If the format is unknown, check whether the
  object file contains the string ".gnu.lto" (which should mean
  that GCC was used with LTO), and in this case, try again with
  "-fno-lto" as the patch was doing.

That might work, but it is a bit more complex that ideally.  I believe
some grep commands do not cope well with binaries.

I have forgotten why lto hurts the GMP_C_DOUBLE_FORMAT test.  (That's
the problematic test, right?)

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list