Skip to content
forked from openjdk/jdk

Commit

Permalink
8294467: Fix sequence-point warnings in Hotspot
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, thartmann, roland
  • Loading branch information
shipilev committed Oct 19, 2022
1 parent ceb5b08 commit 388a56e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion make/hotspot/lib/CompileJvm.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
DISABLED_WARNINGS_gcc_cgroupV2Subsystem_linux.cpp := address, \
DISABLED_WARNINGS_gcc_interp_masm_x86.cpp := uninitialized, \
DISABLED_WARNINGS_gcc_javaClasses.cpp := misleading-indentation, \
DISABLED_WARNINGS_gcc_loopnode.cpp := sequence-point, \
DISABLED_WARNINGS_gcc_postaloc.cpp := address, \
DISABLED_WARNINGS_gcc_sharedRuntimeTrig.cpp := misleading-indentation, \
DISABLED_WARNINGS_gcc_shenandoahBarrierSet.cpp := misleading-indentation, \
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/loopnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ void PhaseIdealLoop::transform_long_range_checks(int stride_con, const Node_List
set_ctrl(K, this->C->root());
Node* scaled_iv = new MulINode(inner_phi, K);
register_new_node(scaled_iv, c);
Node* scaled_iv_plus_offset = scaled_iv_plus_offset = new AddINode(scaled_iv, L_2);
Node* scaled_iv_plus_offset = new AddINode(scaled_iv, L_2);
register_new_node(scaled_iv_plus_offset, c);

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

0 comments on commit 388a56e

Please sign in to comment.