-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openjdk21: fix build for clang 16 (#25879)
- Loading branch information
Showing
2 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
java/openjdk21/files/JDK-8340341-clang-16-workaround.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- make/hotspot/lib/JvmOverrideFiles.gmk.orig 2024-06-04 18:47:50 | ||
+++ make/hotspot/lib/JvmOverrideFiles.gmk 2024-09-22 23:45:41 | ||
@@ -89,6 +89,11 @@ | ||
# for the clang bug was still needed. | ||
BUILD_LIBJVM_loopTransform.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE) | ||
|
||
+ # See JDK-8340341 | ||
+ ifeq "$(firstword $(subst ., ,$(CXX_VERSION_NUMBER)))" "16" | ||
+ BUILD_LIBJVM_stackMapTable.cpp_CXXFLAGS := "-O1" | ||
+ endif | ||
+ | ||
# The following files are compiled at various optimization | ||
# levels due to optimization issues encountered at the | ||
# default level. The Clang compiler issues a compile |