https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84829
--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- As I said in https://sourceware.org/bugzilla/show_bug.cgi?id=22951#c2 I think uses of -mieee-fp are cargo-culted just like those of -lieee. I think the appropriate GCC fix is simply to make -mieee-fp not imply -lieee (unconditionally, not depending on whether target libc provides libieee.a); -lieee never reliably avoided errno setting, only for some functions.