Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234362

k_standard.c is not needed and should be removed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 14
    • core-libs
    • None
    • generic
    • generic

      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.

            fweimer Florian Weimer
            fweimer Florian Weimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: