https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91858
--- Comment #5 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> --- I can reproduce the issue on my Debian machine. Do you know which values are passed to MPC? I've tried with mpc_init2 (x, 24); mpc_init2 (y, 24); mpc_set_ui_ui (x, 10000, 10000, MPC_RNDNN); mpc_tan (y, x, MPC_RNDNN); including with a reduced exponent range, but this is very fast. And according to ldd, the same versions of the GMP/MPFR/MPC libraries are used here with both GCC and my MPC test.