Skip to content

Commit c33c1cf

Browse files
committed
8347909: Automatic precompiled.hpp inclusion
Reviewed-by: lkorinth, erikj, dholmes, ihse
1 parent f54e0bf commit c33c1cf

File tree

1,757 files changed

+1323
-3153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,757 files changed

+1323
-3153
lines changed

make/common/native/CompileFile.gmk

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -253,11 +253,13 @@ define CreatePrecompiledHeader
253253
$$(eval $$(call CreateCompiledNativeFile, $1_$$(notdir $$($1_GENERATED_PCH_SRC)), \
254254
FILE := $$($1_GENERATED_PCH_SRC), \
255255
BASE := $1, \
256-
EXTRA_CXXFLAGS := -Fp$$($1_PCH_FILE) -Yc$$(notdir $$($1_PRECOMPILED_HEADER)), \
256+
EXTRA_CXXFLAGS := -I$$(dir $$($1_PRECOMPILED_HEADER)) -Fp$$($1_PCH_FILE) \
257+
-Yc$$(notdir $$($1_PRECOMPILED_HEADER)), \
257258
))
258259

259260
$1_USE_PCH_FLAGS := \
260-
-Fp$$($1_PCH_FILE) -Yu$$(notdir $$($1_PRECOMPILED_HEADER))
261+
-FI$$(notdir $$($1_PRECOMPILED_HEADER)) -Fp$$($1_PCH_FILE) \
262+
-Yu$$(notdir $$($1_PRECOMPILED_HEADER))
261263

262264
$$($1_ALL_OBJS): $$($1_GENERATED_PCH_OBJ)
263265

@@ -271,7 +273,8 @@ define CreatePrecompiledHeader
271273
else ifneq ($(findstring $(TOOLCHAIN_TYPE), gcc clang), )
272274
ifeq ($(TOOLCHAIN_TYPE), gcc)
273275
$1_PCH_FILE := $$($1_OBJECT_DIR)/precompiled/$$(notdir $$($1_PRECOMPILED_HEADER)).gch
274-
$1_USE_PCH_FLAGS := -I$$($1_OBJECT_DIR)/precompiled
276+
$1_USE_PCH_FLAGS := -I$$($1_OBJECT_DIR)/precompiled \
277+
-include $$(notdir $$($1_PRECOMPILED_HEADER))
275278
else ifeq ($(TOOLCHAIN_TYPE), clang)
276279
$1_PCH_FILE := $$($1_OBJECT_DIR)/precompiled/$$(notdir $$($1_PRECOMPILED_HEADER)).pch
277280
$1_USE_PCH_FLAGS := -include-pch $$($1_PCH_FILE)

make/hotspot/lib/JvmFlags.gmk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,6 @@ JVM_SRC_DIRS += $(call uniq, $(wildcard $(foreach d, $(JVM_SRC_ROOTS), \
4343

4444
JVM_CFLAGS_INCLUDES += \
4545
$(patsubst %,-I%,$(JVM_SRC_DIRS)) \
46-
-I$(TOPDIR)/src/hotspot/share/precompiled \
4746
-I$(TOPDIR)/src/hotspot/share/include \
4847
-I$(TOPDIR)/src/hotspot/os/$(HOTSPOT_TARGET_OS_TYPE)/include \
4948
-I$(SUPPORT_OUTPUTDIR)/modules_include/java.base \

src/hotspot/cpu/aarch64/abstractInterpreter_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,7 +23,6 @@
2323
*
2424
*/
2525

26-
#include "precompiled.hpp"
2726
#include "interpreter/interpreter.hpp"
2827
#include "oops/constMethod.hpp"
2928
#include "oops/klass.inline.hpp"

src/hotspot/cpu/aarch64/assembler_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2020 Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -22,7 +22,6 @@
2222
* questions.
2323
*/
2424

25-
#include "precompiled.hpp"
2625
#include "asm/assembler.hpp"
2726
#include "asm/assembler.inline.hpp"
2827
#include "asm/macroAssembler.hpp"

src/hotspot/cpu/aarch64/bytecodes_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,7 +23,6 @@
2323
*
2424
*/
2525

26-
#include "precompiled.hpp"
2726
#include "interpreter/bytecodes.hpp"
2827

2928

src/hotspot/cpu/aarch64/c1_CodeStubs_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,7 +23,6 @@
2323
*
2424
*/
2525

26-
#include "precompiled.hpp"
2726
#include "asm/macroAssembler.inline.hpp"
2827
#include "c1/c1_CodeStubs.hpp"
2928
#include "c1/c1_FrameMap.hpp"

src/hotspot/cpu/aarch64/c1_FpuStackSim_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -28,4 +28,3 @@
2828
//--------------------------------------------------------
2929

3030
// No FPU stack on AARCH64
31-
#include "precompiled.hpp"

src/hotspot/cpu/aarch64/c1_FrameMap_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,7 +23,6 @@
2323
*
2424
*/
2525

26-
#include "precompiled.hpp"
2726
#include "c1/c1_FrameMap.hpp"
2827
#include "c1/c1_LIR.hpp"
2928
#include "runtime/sharedRuntime.hpp"

src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,7 +23,6 @@
2323
*
2424
*/
2525

26-
#include "precompiled.hpp"
2726
#include "asm/macroAssembler.inline.hpp"
2827
#include "asm/assembler.hpp"
2928
#include "c1/c1_CodeStubs.hpp"

src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,7 +23,6 @@
2323
*
2424
*/
2525

26-
#include "precompiled.hpp"
2726
#include "asm/macroAssembler.inline.hpp"
2827
#include "c1/c1_Compilation.hpp"
2928
#include "c1/c1_FrameMap.hpp"

0 commit comments

Comments
 (0)