File: Don-t-optimize-fdlibm-fork-for-Zero-on-linux-sparc-Z.patch

package info (click to toggle)
openjdk-17 17.0.16%2B8-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 767,080 kB
  • sloc: java: 5,310,235; xml: 1,291,711; cpp: 1,201,484; ansic: 427,819; asm: 404,978; objc: 20,837; sh: 14,729; javascript: 10,771; python: 6,402; makefile: 2,396; perl: 357; awk: 351; sed: 172; jsp: 24; csh: 3
file content (27 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 7ce2609d6ff5299f2ed3ff6850a3cab4a16125f8 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Fri, 21 Dec 2018 15:18:17 +0300
Subject: [PATCH] Don't optimize fdlibm-fork for Zero on linux-sparc (Zero)

---
 make/hotspot/lib/JvmOverrideFiles.gmk | 9 +++++++++
 1 file changed, 9 insertions(+)

--- a/make/hotspot/lib/JvmOverrideFiles.gmk
+++ b/make/hotspot/lib/JvmOverrideFiles.gmk
@@ -48,6 +48,15 @@
 # by using -ffp-contract=off on GCC/Clang platforms.
 ifneq ($(FDLIBM_CFLAGS), )
   LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NORM)
+  # Don't optimize fdlibm-fork for Zero on Linux sparc
+  # See JDK-XXXX
+  ifeq ($(call check-jvm-feature, zero), true)
+    ifeq ($(OPENJDK_TARGET_OS), linux)
+      ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
+        LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)
+      endif
+    endif
+  endif
 endif
 
 ifeq ($(call isTargetOs, linux), true)