Skip to content

Commit f502ab8

Browse files
DamonFoolshipilev
andcommitted
8295435: Build failure with GCC7 after JDK-8294314 due to strict-overflow warnings
Co-authored-by: Aleksey Shipilev <shade@openjdk.org> Reviewed-by: shade, ihse
1 parent 3f4964f commit f502ab8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

make/hotspot/lib/CompileJvm.gmk

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ DISABLED_WARNINGS_clang := ignored-qualifiers sometimes-uninitialized \
9494
ifneq ($(DEBUG_LEVEL), release)
9595
# Assert macro gives warning
9696
DISABLED_WARNINGS_clang += tautological-constant-out-of-range-compare
97+
# Some reasonable asserts produce warnings on GCC <= 7
98+
DISABLED_WARNINGS_gcc += strict-overflow
9799
endif
98100

99101
DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value

0 commit comments

Comments
 (0)