Skip to content

Commit a1e7a30

Browse files
committed
8320212: Disable GCC stringop-overflow warning for affected files
Reviewed-by: ihse, dcubed
1 parent 0881f2b commit a1e7a30

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

make/hotspot/lib/CompileJvm.gmk

+4-7
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,6 @@ DISABLED_WARNINGS_gcc := array-bounds comment delete-non-virtual-dtor \
8888
maybe-uninitialized missing-field-initializers parentheses \
8989
shift-negative-value unknown-pragmas
9090

91-
ifeq ($(DEBUG_LEVEL), fastdebug)
92-
ifeq ($(call And, $(call isTargetOs, linux) $(call isTargetCpu, aarch64)), true)
93-
# False positive warnings for atomic_linux_aarch64.hpp on GCC >= 13
94-
DISABLED_WARNINGS_gcc += stringop-overflow
95-
endif
96-
endif
97-
9891
DISABLED_WARNINGS_clang := sometimes-uninitialized \
9992
missing-braces delete-non-abstract-non-virtual-dtor unknown-pragmas
10093

@@ -171,8 +164,12 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
171164
DISABLED_WARNINGS_gcc_ad_$(HOTSPOT_TARGET_CPU_ARCH).cpp := nonnull, \
172165
DISABLED_WARNINGS_gcc_cgroupV1Subsystem_linux.cpp := address, \
173166
DISABLED_WARNINGS_gcc_cgroupV2Subsystem_linux.cpp := address, \
167+
DISABLED_WARNINGS_gcc_handshake.cpp := stringop-overflow, \
174168
DISABLED_WARNINGS_gcc_interp_masm_x86.cpp := uninitialized, \
169+
DISABLED_WARNINGS_gcc_jvmciCodeInstaller.cpp := stringop-overflow, \
170+
DISABLED_WARNINGS_gcc_jvmtiTagMap.cpp := stringop-overflow, \
175171
DISABLED_WARNINGS_gcc_postaloc.cpp := address, \
172+
DISABLED_WARNINGS_gcc_synchronizer.cpp := stringop-overflow, \
176173
DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang), \
177174
DISABLED_WARNINGS_clang_arguments.cpp := missing-field-initializers, \
178175
DISABLED_WARNINGS_clang_codeBuffer.cpp := tautological-undefined-compare, \

0 commit comments

Comments
 (0)