https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86420
--- Comment #5 from nsz at gcc dot gnu.org --- this fixed the glibc test failures for me. (-ftrapping-math does not affect the const folding of arithmetics, i guess for library functions it does, it would be less confusing if that was consistent)