[Bug tree-optimization/88074] [7/8/9 Regression] g++ hangs on math expression
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 19 10:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88074
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
It has something to do with large real/imagparts, the actual numbers are not so
interesting. Somebody why knows how complex tan behaves might suggest a
workaround for GCC to drop to Inf/NaN at some point?
#include <mpc.h>
#include <mpfr.h>
int main()
{
mpc_t m, w;
mpc_init2 (m, 53);
mpfr_set_str (mpc_realref (m), "3.2e+8", 10, GMP_RNDN);
mpfr_set_str (mpc_imagref (m), "-4.0e+8", 10, GMP_RNDN);
mpfr_clear_flags ();
mpc_tan (m, m, 0);
return 0;
}
using 3.2e+5 and -4.0e+5 is faster (still several seconds compile-time).
More information about the Gcc-bugs
mailing list