Skip to content

Commit 388a56e

Browse files
committed
8294467: Fix sequence-point warnings in Hotspot
Reviewed-by: dholmes, thartmann, roland
1 parent ceb5b08 commit 388a56e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

make/hotspot/lib/CompileJvm.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
161161
DISABLED_WARNINGS_gcc_cgroupV2Subsystem_linux.cpp := address, \
162162
DISABLED_WARNINGS_gcc_interp_masm_x86.cpp := uninitialized, \
163163
DISABLED_WARNINGS_gcc_javaClasses.cpp := misleading-indentation, \
164-
DISABLED_WARNINGS_gcc_loopnode.cpp := sequence-point, \
165164
DISABLED_WARNINGS_gcc_postaloc.cpp := address, \
166165
DISABLED_WARNINGS_gcc_sharedRuntimeTrig.cpp := misleading-indentation, \
167166
DISABLED_WARNINGS_gcc_shenandoahBarrierSet.cpp := misleading-indentation, \

src/hotspot/share/opto/loopnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ void PhaseIdealLoop::transform_long_range_checks(int stride_con, const Node_List
13941394
set_ctrl(K, this->C->root());
13951395
Node* scaled_iv = new MulINode(inner_phi, K);
13961396
register_new_node(scaled_iv, c);
1397-
Node* scaled_iv_plus_offset = scaled_iv_plus_offset = new AddINode(scaled_iv, L_2);
1397+
Node* scaled_iv_plus_offset = new AddINode(scaled_iv, L_2);
13981398
register_new_node(scaled_iv_plus_offset, c);
13991399

14001400
Node* new_rc_cmp = new CmpUNode(scaled_iv_plus_offset, R_2);

0 commit comments

Comments
 (0)