Skip to content

Commit 08828a5

Browse files
author
Andrew Haley
committed
8211170: AArch64: Warnings in C1 and template interpreter
Reviewed-by: adinn
1 parent 03e4400 commit 08828a5

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,6 +1709,7 @@ void LIR_Assembler::arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr
17091709
default: ShouldNotReachHere();
17101710
}
17111711
break;
1712+
default:
17121713
ShouldNotReachHere();
17131714
}
17141715
} else {

src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ void LIRGenerator::do_ArithmeticOp(ArithmeticOp* x) {
584584
case doubleTag: do_ArithmeticOp_FPU(x); return;
585585
case longTag: do_ArithmeticOp_Long(x); return;
586586
case intTag: do_ArithmeticOp_Int(x); return;
587+
default: ShouldNotReachHere(); return;
587588
}
588-
ShouldNotReachHere();
589589
}
590590

591591
// _ishl, _lshl, _ishr, _lshr, _iushr, _lushr
@@ -792,9 +792,13 @@ void LIRGenerator::do_MathIntrinsic(Intrinsic* x) {
792792
__ abs(value.result(), dst, LIR_OprFact::illegalOpr);
793793
break;
794794
}
795+
default:
796+
ShouldNotReachHere();
795797
}
796798
break;
797799
}
800+
default:
801+
ShouldNotReachHere();
798802
}
799803
}
800804

src/hotspot/cpu/aarch64/templateTable_aarch64.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,7 @@ void TemplateTable::resolve_cache_and_index(int byte_no,
23292329
switch (code) {
23302330
case Bytecodes::_nofast_getfield: code = Bytecodes::_getfield; break;
23312331
case Bytecodes::_nofast_putfield: code = Bytecodes::_putfield; break;
2332+
default: break;
23322333
}
23332334

23342335
assert(byte_no == f1_byte || byte_no == f2_byte, "byte_no out of range");
@@ -2953,6 +2954,7 @@ void TemplateTable::jvmti_post_fast_field_mod()
29532954
case Bytecodes::_fast_dputfield: __ pop_d(); break;
29542955
case Bytecodes::_fast_fputfield: __ pop_f(); break;
29552956
case Bytecodes::_fast_lputfield: __ pop_l(r0); break;
2957+
default: break;
29562958
}
29572959
__ bind(L2);
29582960
}

0 commit comments

Comments
 (0)