https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82004
--- Comment #38 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 43776 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43776&action=edit gcc8-pr82004.patch Variant fix, instead of trying to optimize it some way (which is even less precise than what we do right now), this just reverts to GCC 7 behavior if we detect a SPEC2k17-like pow call. If/once glibc has a fast exp10, we can use exp10 in that case instead of leaving pow around.