From 2d22e13bb1569fc231798797efb36f0463360443 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Tue, 25 Feb 2025 13:55:30 +0000 Subject: [PATCH] 8349150: Support precompiled headers on AIX Backport-of: beae8843b9b2433af5e9fbe420b17e663cbdb960 --- make/hotspot/lib/CompileJvm.gmk | 6 ++---- make/hotspot/lib/JvmOverrideFiles.gmk | 13 ++++++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/make/hotspot/lib/CompileJvm.gmk b/make/hotspot/lib/CompileJvm.gmk index 49a96ec3273..e8fdab4bcd2 100644 --- a/make/hotspot/lib/CompileJvm.gmk +++ b/make/hotspot/lib/CompileJvm.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -125,9 +125,7 @@ else ifeq ($(call And, $(call isTargetOs, linux) $(call isTargetCpu, aarch64)), endif endif -ifeq ($(call isTargetOs, linux macosx windows), true) - JVM_PRECOMPILED_HEADER := $(TOPDIR)/src/hotspot/share/precompiled/precompiled.hpp -endif +JVM_PRECOMPILED_HEADER := $(TOPDIR)/src/hotspot/share/precompiled/precompiled.hpp ifeq ($(call isTargetCpu, x86), true) JVM_EXCLUDE_PATTERNS += x86_64 diff --git a/make/hotspot/lib/JvmOverrideFiles.gmk b/make/hotspot/lib/JvmOverrideFiles.gmk index 6a513e10c61..f8777753573 100644 --- a/make/hotspot/lib/JvmOverrideFiles.gmk +++ b/make/hotspot/lib/JvmOverrideFiles.gmk @@ -110,11 +110,7 @@ else ifeq ($(call isTargetOs, macosx), true) endif else ifeq ($(call isTargetOs, aix), true) - ifeq ($(TOOLCHAIN_TYPE), clang) - BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -fno-inline - else - BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -qnoinline - endif + BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -fno-inline BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE) # Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp # and sharedRuntimeTrans.cpp on ppc64. @@ -138,6 +134,13 @@ else ifeq ($(call isTargetOs, aix), true) # Disable ELF decoder on AIX (AIX uses XCOFF). JVM_EXCLUDE_PATTERNS += elf + JVM_PRECOMPILED_HEADER_EXCLUDE := \ + sharedRuntimeTrig.cpp \ + sharedRuntimeTrans.cpp \ + synchronizer.cpp \ + $(OPT_SPEED_SRC) \ + # + else ifeq ($(call isTargetOs, windows), true) JVM_PRECOMPILED_HEADER_EXCLUDE := \ bytecodeInterpreter.cpp \