https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105428
--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> --- (In reply to jos...@codesourcery.com from comment #1) > What MPC version are you using? Thank you for the reply. If I understand the backtrace correctly I am using the libraries downloaded by the contrib/download_prerequisites script: mpc-1.2.1, mpfr-4.1.0; the same behavior can be observed with system libraries as well, which are the same version + gentoo patches. > There have been a few fixes for slowness > in the MPC inverse trigonometric and hyperbolic functions over the years, > though there may still be scope for substantial further improvements by > choosing different algorithms for different ranges of inputs. If you're > using current MPC then this case should probably be reported to the MPC > maintainers. Similar to PR105384 and PR105385 - if you tell me to open a PR against MPC / MPRF, I will try to do. But I can't tell if this is a bug in the library, or expected behavior and gcc shouldn't use the library to evaluate the value at compilation time.