@@ -83,26 +83,22 @@ CFLAGS_VM_VERSION := \
83
83
################################################################################
84
84
# Disabled warnings
85
85
86
- DISABLED_WARNINGS_gcc := parentheses comment unknown-pragmas address \
87
- delete-non-virtual-dtor char-subscripts array-bounds int-in-bool-context \
88
- ignored-qualifiers missing-field-initializers implicit-fallthrough \
89
- empty-body strict-overflow sequence-point maybe-uninitialized \
90
- misleading-indentation cast-function-type shift-negative-value
91
-
92
- ifeq ($(call check-jvm-feature, zero), true)
93
- DISABLED_WARNINGS_gcc += return-type switch clobbered
94
- endif
86
+ DISABLED_WARNINGS_gcc := array-bounds comment delete-non-virtual-dtor \
87
+ empty-body ignored-qualifiers implicit-fallthrough int-in-bool-context \
88
+ maybe-uninitialized missing-field-initializers parentheses \
89
+ shift-negative-value unknown-pragmas
90
+
91
+ DISABLED_WARNINGS_clang := ignored-qualifiers sometimes-uninitialized \
92
+ missing-braces delete-non-abstract-non-virtual-dtor unknown-pragmas
95
93
96
- DISABLED_WARNINGS_clang := tautological-compare \
97
- undefined-var-template sometimes-uninitialized unknown-pragmas \
98
- delete-non-virtual-dtor missing-braces char-subscripts \
99
- ignored-qualifiers missing-field-initializers mismatched-tags \
100
- shift-negative-value misleading-indentation
94
+ ifneq ($(DEBUG_LEVEL), release)
95
+ # Assert macro gives warning
96
+ DISABLED_WARNINGS_clang += tautological-constant-out-of-range-compare
97
+ endif
101
98
102
99
DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value
103
100
104
- DISABLED_WARNINGS_microsoft := 4100 4127 4146 4201 4244 4291 4351 \
105
- 4511 4512 4514 4624
101
+ DISABLED_WARNINGS_microsoft := 4624 4244 4291 4146 4127
106
102
107
103
################################################################################
108
104
# Platform specific setup
@@ -156,7 +152,41 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
156
152
abstract_vm_version.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
157
153
arguments.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
158
154
DISABLED_WARNINGS_gcc := $(DISABLED_WARNINGS_gcc), \
155
+ DISABLED_WARNINGS_gcc_ad_$(HOTSPOT_TARGET_CPU_ARCH).cpp := nonnull, \
156
+ DISABLED_WARNINGS_gcc_assembler_aarch64.cpp := misleading-indentation, \
157
+ DISABLED_WARNINGS_gcc_c1_LIR.cpp := misleading-indentation, \
158
+ DISABLED_WARNINGS_gcc_cgroupV1Subsystem_linux.cpp := address, \
159
+ DISABLED_WARNINGS_gcc_cgroupV2Subsystem_linux.cpp := address, \
160
+ DISABLED_WARNINGS_gcc_dict.cpp := char-subscripts, \
161
+ DISABLED_WARNINGS_gcc_interp_masm_x86.cpp := uninitialized, \
162
+ DISABLED_WARNINGS_gcc_javaClasses.cpp := misleading-indentation, \
163
+ DISABLED_WARNINGS_gcc_loopnode.cpp := sequence-point, \
164
+ DISABLED_WARNINGS_gcc_postaloc.cpp := address, \
165
+ DISABLED_WARNINGS_gcc_sharedRuntimeTrig.cpp := misleading-indentation, \
166
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSet.cpp := misleading-indentation, \
167
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetAssembler_aarch64.cpp := misleading-indentation, \
168
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetAssembler_ppc.cpp := misleading-indentation, \
169
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetAssembler_riscv.cpp := misleading-indentation, \
170
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetAssembler_x86.cpp := misleading-indentation, \
171
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetC1_aarch64.cpp := misleading-indentation, \
172
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetC1_ppc.cpp := misleading-indentation, \
173
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetC1_riscv.cpp := misleading-indentation, \
174
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetC1_x86.cpp := misleading-indentation, \
175
+ DISABLED_WARNINGS_gcc_shenandoahBarrierSetC1.cpp := misleading-indentation, \
176
+ DISABLED_WARNINGS_gcc_signals_posix.cpp := cast-function-type, \
177
+ DISABLED_WARNINGS_gcc_templateTable.cpp := cast-function-type, \
159
178
DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang), \
179
+ DISABLED_WARNINGS_clang_arguments.cpp := missing-field-initializers, \
180
+ DISABLED_WARNINGS_clang_codeBuffer.cpp := tautological-undefined-compare, \
181
+ DISABLED_WARNINGS_clang_dict.cpp := char-subscripts, \
182
+ DISABLED_WARNINGS_clang_directivesParser.cpp := missing-field-initializers, \
183
+ DISABLED_WARNINGS_clang_g1ParScanThreadState.cpp := delete-abstract-non-virtual-dtor, \
184
+ DISABLED_WARNINGS_clang_g1YoungGCPostEvacuateTasks.cpp := delete-abstract-non-virtual-dtor, \
185
+ DISABLED_WARNINGS_clang_management.cpp := missing-field-initializers, \
186
+ DISABLED_WARNINGS_clang_os_posix.cpp := mismatched-tags missing-field-initializers, \
187
+ DISABLED_WARNINGS_clang_postaloc.cpp := tautological-undefined-compare, \
188
+ DISABLED_WARNINGS_clang_vm_version_x86.cpp := missing-field-initializers, \
189
+ DISABLED_WARNINGS_clang_zTracer.cpp := undefined-var-template, \
160
190
DISABLED_WARNINGS_xlc := $(DISABLED_WARNINGS_xlc), \
161
191
DISABLED_WARNINGS_microsoft := $(DISABLED_WARNINGS_microsoft), \
162
192
ASFLAGS := $(JVM_ASFLAGS), \
0 commit comments