https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123958
--- Comment #6 from Roger Sayle <roger at nextmovesoftware dot com> --- A detail I forgot to mention above. Adding -fno-math-errno resolves/works around the issue, so the problem is squarely with gimple_expand_builtin_pow returning NULL_TREE with flag_errno_math, and not with the clean-up of fold_const_pow.
