logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

icedtea-hotspot-stop-using-obsolete-isnanf.patch (1871B)


  1. From 1624e2dd3739fe208efa13b31abf4bc53ae2e5c1 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik at jci.com <https://lists.yoctoproject.org/listinfo/yocto>>
  3. Date: Tue, 27 Feb 2018 11:24:44 +0000
  4. Subject: [PATCH 1/9] hotspot: stop using obsolete isnanf()
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Compiling against musl-libc gives the following error:
  9. | hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp: In function 'int g_isnan(float)':
  10. | hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:238:39: error: 'isnanf' was not declared in this scope
  11. | inline int g_isnan(float f) { return isnanf(f); }
  12. | ^~~~~~
  13. isnanf() is obsolete, and musl doesn't implement it. isnan()
  14. is the right thing to use for all types (float and double),
  15. replacing isnanf(), even on glibc.
  16. Do so.
  17. Upstream-Status: Pending
  18. Signed-off-by: André Draszik <andre.draszik at jci.com <https://lists.yoctoproject.org/listinfo/yocto>>
  19. ---
  20. hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp | 2 +-
  21. 1 file changed, 1 insertion(+), 1 deletion(-)
  22. diff --git a/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp b/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
  23. index efa0b4e1..6df2302e 100644
  24. --- openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
  25. +++ openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
  26. @@ -235,7 +235,7 @@ inline int g_isnan(double f) { return isnand(f); }
  27. #elif defined(__APPLE__)
  28. inline int g_isnan(double f) { return isnan(f); }
  29. #elif defined(LINUX) || defined(_ALLBSD_SOURCE)
  30. -inline int g_isnan(float f) { return isnanf(f); }
  31. +inline int g_isnan(float f) { return isnan(f); }
  32. inline int g_isnan(double f) { return isnan(f); }
  33. #else
  34. #error "missing platform-specific definition here"
  35. --
  36. 2.16.2