https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80042 --- Comment #3 from Craig Topper <craig.topper at gmail dot com> --- No -fmath-errno has no effect. It does have effect on other functions such as cosh or acos.