https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108878
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the right way of fixing this is to have a builtin versions of "frexp" which return a complex type and that is pure for -fno-math-errno and such. And gets expanded to frexp correctly.