From 3eb57f6d46b4375cb02b575739a1c12f71e088cf Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Thu, 6 Feb 2025 08:08:59 +0000 Subject: [PATCH] 8349140: Size optimization (opt-size) build fails after recent PCH changes Reviewed-by: jwaters, erikj, ihse --- make/hotspot/lib/JvmOverrideFiles.gmk | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/make/hotspot/lib/JvmOverrideFiles.gmk b/make/hotspot/lib/JvmOverrideFiles.gmk index f57afb7b5dd..047a785eb8a 100644 --- a/make/hotspot/lib/JvmOverrideFiles.gmk +++ b/make/hotspot/lib/JvmOverrideFiles.gmk @@ -55,21 +55,11 @@ ifeq ($(call isTargetOs, linux), true) BUILD_LIBJVM_sharedRuntimeTrig.cpp_CXXFLAGS := $(FDLIBM_CFLAGS) $(LIBJVM_FDLIBM_COPY_OPT_FLAG) BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := $(FDLIBM_CFLAGS) $(LIBJVM_FDLIBM_COPY_OPT_FLAG) - ifeq ($(TOOLCHAIN_TYPE), clang) - JVM_PRECOMPILED_HEADER_EXCLUDE := \ - sharedRuntimeTrig.cpp \ - sharedRuntimeTrans.cpp \ - $(OPT_SPEED_SRC) \ - # - endif - - ifeq ($(call isTargetCpu, ppc64le)+$(TOOLCHAIN_TYPE), true+gcc) - JVM_PRECOMPILED_HEADER_EXCLUDE := \ - sharedRuntimeTrig.cpp \ - sharedRuntimeTrans.cpp \ - $(OPT_SPEED_SRC) \ - # - endif + JVM_PRECOMPILED_HEADER_EXCLUDE := \ + sharedRuntimeTrig.cpp \ + sharedRuntimeTrans.cpp \ + $(OPT_SPEED_SRC) \ + # ifeq ($(call isTargetCpu, x86), true) # Performance measurements show that by compiling GC related code, we could @@ -151,13 +141,12 @@ else ifeq ($(call isTargetOs, aix), true) else ifeq ($(call isTargetOs, windows), true) JVM_PRECOMPILED_HEADER_EXCLUDE := \ - bytecodeInterpreter.cpp \ - bytecodeInterpreterWithChecks.cpp \ opcodes.cpp \ os_windows.cpp \ os_windows_x86.cpp \ osThread_windows.cpp \ jvmciCompilerToVMInit.cpp \ + $(OPT_SPEED_SRC) \ # # Workaround for jvmciCompilerToVM.cpp long compilation time