Skip to content

Commit 9f94503

Browse files
committed
Merge
2 parents c95fd63 + 66d2736 commit 9f94503

File tree

339 files changed

+4548
-1959
lines changed

Some content is hidden

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

339 files changed

+4548
-1959
lines changed

make/hotspot/lib/CompileJvm.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ CFLAGS_VM_VERSION := \
8484
# Disabled warnings
8585

8686
DISABLED_WARNINGS_gcc := array-bounds comment delete-non-virtual-dtor \
87-
empty-body ignored-qualifiers implicit-fallthrough int-in-bool-context \
87+
empty-body implicit-fallthrough int-in-bool-context \
8888
maybe-uninitialized missing-field-initializers parentheses \
8989
shift-negative-value unknown-pragmas
9090

91-
DISABLED_WARNINGS_clang := ignored-qualifiers sometimes-uninitialized \
91+
DISABLED_WARNINGS_clang := sometimes-uninitialized \
9292
missing-braces delete-non-abstract-non-virtual-dtor unknown-pragmas
9393

9494
ifneq ($(DEBUG_LEVEL), release)

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ ifeq ($(call isTargetOs, windows macosx), false)
251251
DISABLED_WARNINGS_gcc_XRBackendNative.c := maybe-uninitialized, \
252252
DISABLED_WARNINGS_gcc_XToolkit.c := unused-result, \
253253
DISABLED_WARNINGS_gcc_XWindow.c := unused-function, \
254+
DISABLED_WARNINGS_clang_awt_Taskbar.c := parentheses, \
255+
DISABLED_WARNINGS_clang_gtk2_interface.c := parentheses, \
256+
DISABLED_WARNINGS_clang_gtk3_interface.c := parentheses, \
257+
DISABLED_WARNINGS_clang_OGLBufImgOps.c := format-nonliteral, \
258+
DISABLED_WARNINGS_clang_OGLPaints.c := format-nonliteral, \
259+
DISABLED_WARNINGS_clang_screencast_pipewire.c := format-nonliteral, \
260+
DISABLED_WARNINGS_clang_sun_awt_X11_GtkFileDialogPeer.c := parentheses, \
254261
DISABLED_WARNINGS_clang_aix := deprecated-non-prototype, \
255262
DISABLED_WARNINGS_clang_aix_awt_Taskbar.c := parentheses, \
256263
DISABLED_WARNINGS_clang_aix_OGLPaints.c := format-nonliteral, \

make/modules/java.security.jgss/Lib.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJ2GSS, \
3333
CFLAGS := $(CFLAGS_JDKLIB), \
3434
DISABLED_WARNINGS_gcc := undef, \
3535
DISABLED_WARNINGS_clang_aix := undef, \
36+
DISABLED_WARNINGS_clang := undef, \
3637
LDFLAGS := $(LDFLAGS_JDKLIB) \
3738
$(call SET_SHARED_LIBRARY_ORIGIN), \
3839
LIBS := $(LIBDL), \

make/modules/jdk.hotspot.agent/Lib.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2015, 2023, 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
@@ -61,6 +61,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBSA, \
6161
OPTIMIZATION := HIGH, \
6262
DISABLED_WARNINGS_gcc := sign-compare, \
6363
DISABLED_WARNINGS_gcc_ps_core.c := pointer-arith, \
64+
DISABLED_WARNINGS_clang_ps_core.c := pointer-arith, \
6465
DISABLED_WARNINGS_clang := sign-compare, \
6566
DISABLED_WARNINGS_clang_libproc_impl.c := format-nonliteral, \
6667
DISABLED_WARNINGS_clang_sadis.c := format-nonliteral, \

make/modules/jdk.jpackage/Lib.gmk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2018, 2023, 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
@@ -65,6 +65,8 @@ $(eval $(call SetupJdkExecutable, BUILD_JPACKAGE_APPLAUNCHEREXE, \
6565
INCLUDE_FILES := $(JPACKAGE_APPLAUNCHER_INCLUDE_FILES), \
6666
TOOLCHAIN := $(JPACKAGE_APPLAUNCHER_TOOLCHAIN), \
6767
OPTIMIZATION := LOW, \
68+
DISABLED_WARNINGS_clang_LinuxPackage.c := format-nonliteral, \
69+
DISABLED_WARNINGS_clang_JvmLauncherLib.c := format-nonliteral, \
6870
CXXFLAGS := $(call JpackageWithStaticCrt, $(CXXFLAGS_JDKEXE)) \
6971
$(JPACKAGE_APPLAUNCHER_INCLUDES), \
7072
CFLAGS := $(call JpackageWithStaticCrt, $(CFLAGS_JDKEXE)) \
@@ -103,6 +105,8 @@ ifeq ($(call isTargetOs, linux), true)
103105
EXCLUDE_FILES := LinuxLauncher.c LinuxPackage.c, \
104106
TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
105107
OPTIMIZATION := LOW, \
108+
DISABLED_WARNINGS_clang_JvmLauncherLib.c := format-nonliteral, \
109+
DISABLED_WARNINGS_clang_tstrings.cpp := format-nonliteral, \
106110
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(JPACKAGE_LIBAPPLAUNCHER_INCLUDES), \
107111
CFLAGS := $(CFLAGS_JDKLIB) $(JPACKAGE_LIBAPPLAUNCHER_INCLUDES), \
108112
LDFLAGS := $(LDFLAGS_JDKLIB), \

make/modules/jdk.management/Lib.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2015, 2023, 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
@@ -44,6 +44,7 @@ endif
4444
$(eval $(call SetupJdkLibrary, BUILD_LIBMANAGEMENT_EXT, \
4545
NAME := management_ext, \
4646
OPTIMIZATION := $(LIBMANAGEMENT_EXT_OPTIMIZATION), \
47+
DISABLED_WARNINGS_clang_UnixOperatingSystem.c := format-nonliteral, \
4748
CFLAGS := $(CFLAGS_JDKLIB) $(LIBMANAGEMENT_EXT_CFLAGS), \
4849
LDFLAGS := $(LDFLAGS_JDKLIB) \
4950
$(call SET_SHARED_LIBRARY_ORIGIN), \

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,7 @@ int HandlerImpl::emit_deopt_handler(CodeBuffer& cbuf)
22852285

22862286
//=============================================================================
22872287

2288-
const bool Matcher::match_rule_supported(int opcode) {
2288+
bool Matcher::match_rule_supported(int opcode) {
22892289
if (!has_match_rule(opcode))
22902290
return false;
22912291

@@ -2320,7 +2320,7 @@ const TypeVectMask* Matcher::predicate_reg_type(const Type* elemTy, int length)
23202320
}
23212321

23222322
// Vector calling convention not yet implemented.
2323-
const bool Matcher::supports_vector_calling_convention(void) {
2323+
bool Matcher::supports_vector_calling_convention(void) {
23242324
return false;
23252325
}
23262326

@@ -2340,7 +2340,7 @@ bool Matcher::is_short_branch_offset(int rule, int br_size, int offset) {
23402340
}
23412341

23422342
// Vector width in bytes.
2343-
const int Matcher::vector_width_in_bytes(BasicType bt) {
2343+
int Matcher::vector_width_in_bytes(BasicType bt) {
23442344
// The MaxVectorSize should have been set by detecting SVE max vector register size.
23452345
int size = MIN2((UseSVE > 0) ? 256 : 16, (int)MaxVectorSize);
23462346
// Minimum 2 values in vector
@@ -2351,11 +2351,11 @@ const int Matcher::vector_width_in_bytes(BasicType bt) {
23512351
}
23522352

23532353
// Limits on vector size (number of elements) loaded into vector.
2354-
const int Matcher::max_vector_size(const BasicType bt) {
2354+
int Matcher::max_vector_size(const BasicType bt) {
23552355
return vector_width_in_bytes(bt)/type2aelembytes(bt);
23562356
}
23572357

2358-
const int Matcher::min_vector_size(const BasicType bt) {
2358+
int Matcher::min_vector_size(const BasicType bt) {
23592359
int max_size = max_vector_size(bt);
23602360
// Limit the min vector size to 8 bytes.
23612361
int size = 8 / type2aelembytes(bt);
@@ -2370,17 +2370,17 @@ const int Matcher::min_vector_size(const BasicType bt) {
23702370
return MIN2(size, max_size);
23712371
}
23722372

2373-
const int Matcher::superword_max_vector_size(const BasicType bt) {
2373+
int Matcher::superword_max_vector_size(const BasicType bt) {
23742374
return Matcher::max_vector_size(bt);
23752375
}
23762376

23772377
// Actual max scalable vector register length.
2378-
const int Matcher::scalable_vector_reg_size(const BasicType bt) {
2378+
int Matcher::scalable_vector_reg_size(const BasicType bt) {
23792379
return Matcher::max_vector_size(bt);
23802380
}
23812381

23822382
// Vector ideal reg.
2383-
const uint Matcher::vector_ideal_reg(int len) {
2383+
uint Matcher::vector_ideal_reg(int len) {
23842384
if (UseSVE > 0 && 16 < len && len <= 256) {
23852385
return Op_VecA;
23862386
}

src/hotspot/cpu/aarch64/aarch64_vector.ad

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ source %{
125125
}
126126
}
127127

128-
const bool Matcher::match_rule_supported_superword(int opcode, int vlen, BasicType bt) {
128+
bool Matcher::match_rule_supported_superword(int opcode, int vlen, BasicType bt) {
129129
if (UseSVE == 0) {
130130
// These operations are not profitable to be vectorized on NEON, because no direct
131131
// NEON instructions support them. But the match rule support for them is profitable for
@@ -148,7 +148,7 @@ source %{
148148

149149
// Identify extra cases that we might want to provide match rules for vector nodes and
150150
// other intrinsics guarded with vector length (vlen) and element type (bt).
151-
const bool Matcher::match_rule_supported_vector(int opcode, int vlen, BasicType bt) {
151+
bool Matcher::match_rule_supported_vector(int opcode, int vlen, BasicType bt) {
152152
if (!match_rule_supported(opcode)) {
153153
return false;
154154
}
@@ -232,7 +232,7 @@ source %{
232232
return vector_size_supported(bt, vlen);
233233
}
234234

235-
const bool Matcher::match_rule_supported_vector_masked(int opcode, int vlen, BasicType bt) {
235+
bool Matcher::match_rule_supported_vector_masked(int opcode, int vlen, BasicType bt) {
236236
// Only SVE supports masked operations.
237237
if (UseSVE == 0) {
238238
return false;
@@ -271,7 +271,7 @@ source %{
271271
return match_rule_supported_vector(opcode, vlen, bt);
272272
}
273273

274-
const bool Matcher::vector_needs_partial_operations(Node* node, const TypeVect* vt) {
274+
bool Matcher::vector_needs_partial_operations(Node* node, const TypeVect* vt) {
275275
// Only SVE has partial vector operations
276276
if (UseSVE == 0) {
277277
return false;

src/hotspot/cpu/aarch64/aarch64_vector_ad.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ source %{
115115
}
116116
}
117117

118-
const bool Matcher::match_rule_supported_superword(int opcode, int vlen, BasicType bt) {
118+
bool Matcher::match_rule_supported_superword(int opcode, int vlen, BasicType bt) {
119119
if (UseSVE == 0) {
120120
// These operations are not profitable to be vectorized on NEON, because no direct
121121
// NEON instructions support them. But the match rule support for them is profitable for
@@ -138,7 +138,7 @@ source %{
138138

139139
// Identify extra cases that we might want to provide match rules for vector nodes and
140140
// other intrinsics guarded with vector length (vlen) and element type (bt).
141-
const bool Matcher::match_rule_supported_vector(int opcode, int vlen, BasicType bt) {
141+
bool Matcher::match_rule_supported_vector(int opcode, int vlen, BasicType bt) {
142142
if (!match_rule_supported(opcode)) {
143143
return false;
144144
}
@@ -222,7 +222,7 @@ source %{
222222
return vector_size_supported(bt, vlen);
223223
}
224224

225-
const bool Matcher::match_rule_supported_vector_masked(int opcode, int vlen, BasicType bt) {
225+
bool Matcher::match_rule_supported_vector_masked(int opcode, int vlen, BasicType bt) {
226226
// Only SVE supports masked operations.
227227
if (UseSVE == 0) {
228228
return false;
@@ -261,7 +261,7 @@ source %{
261261
return match_rule_supported_vector(opcode, vlen, bt);
262262
}
263263

264-
const bool Matcher::vector_needs_partial_operations(Node* node, const TypeVect* vt) {
264+
bool Matcher::vector_needs_partial_operations(Node* node, const TypeVect* vt) {
265265
// Only SVE has partial vector operations
266266
if (UseSVE == 0) {
267267
return false;

src/hotspot/cpu/aarch64/assembler_aarch64.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4211,7 +4211,7 @@ Instruction_aarch64::~Instruction_aarch64() {
42114211
#undef starti
42124212

42134213
// Invert a condition
4214-
inline const Assembler::Condition operator~(const Assembler::Condition cond) {
4214+
inline Assembler::Condition operator~(const Assembler::Condition cond) {
42154215
return Assembler::Condition(int(cond) ^ 1);
42164216
}
42174217

0 commit comments

Comments
 (0)