I believe the function __kernel_standard/__j__kernel_standard is unused because jfdlibm.h defines _IEEE_LIBM unconditionally, so all call sites are #ifdef'ed out.
matherr was removed (turned into a run-time only compat symbol) in glibc 2.27, so its use would result in a link error on GNU/Linux anyway. The code only compiles because of the matherr declaration in fdlibm.h.
Removing this file will address a GCC 10 uninitialized variable warning on the return statement (which is arguably bogus).
The macro override from __kernel_standard to __j__kernel_standard in jfdlibm.h can be removed as well. The rest of fdlibm should probably be left untouched for compatibility concerns.
matherr was removed (turned into a run-time only compat symbol) in glibc 2.27, so its use would result in a link error on GNU/Linux anyway. The code only compiles because of the matherr declaration in fdlibm.h.
Removing this file will address a GCC 10 uninitialized variable warning on the return statement (which is arguably bogus).
The macro override from __kernel_standard to __j__kernel_standard in jfdlibm.h can be removed as well. The rest of fdlibm should probably be left untouched for compatibility concerns.