Sun Studio 11 compile on Solaris 10 fails "make check"

Torbjorn Granlund tg at swox.com
Thu Jan 3 20:12:03 CET 2008


Nicholas Oxhøj <nicholas at oxhoej.dk> writes:

  I seem to have fixed the problem by setting "-fsimple=0" in line 3366 of 
  the configure script, such that the compiler now generates code 
  complying with the IEEE-754 floating-point arithmetic standard.
  
  3361c3361
  <             # -fns=no and -fsimple=1 disable some transformations that
  ---
   >             # -fns=no and -fsimple=0 disable some transformations that
  3366c3366
  <             cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9"
  ---
   >             cc_64_cflags="-fast -fns=no -fsimple=0 -xarch=v9"
  
Thanks.

Perhaps the best change would be to stop using -fast, an inherently
dangerous option.  It is documented as performing various invalid
transformations, and newer compilers seem to perform more invalid
transformations than older ones.

-- 
Torbjörn


More information about the gmp-bugs mailing list