diff options
author | Mike Pall <mike> | 2019-04-29 18:02:50 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2019-04-29 18:02:50 +0200 |
commit | 9bd5a722bee2ee2c5b159a89937778b81be49915 (patch) | |
tree | 2f7a7ae003e38c10a85aee0fc9664ffdc4ba084f /src | |
parent | 5802ab56b6435e8ea39616d04751b32b9996bfb7 (diff) | |
download | luajit2-9bd5a722bee2ee2c5b159a89937778b81be49915.tar.gz |
ARM: Fix GCC 7 -Wimplicit-fallthrough warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_asm.c | 2 | ||||
-rw-r--r-- | src/lj_asm_arm.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index dd7186f6..8ce7bbd6 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c @@ -1719,8 +1719,8 @@ static void asm_setup_regsp(ASMState *as) #if LJ_SOFTFP case IR_MIN: case IR_MAX: if ((ir+1)->o != IR_HIOP) break; - /* fallthrough */ #endif + /* fallthrough */ /* C calls evict all scratch regs and return results in RID_RET. */ case IR_SNEW: case IR_XSNEW: case IR_NEWREF: if (REGARG_NUMGPR < 3 && as->evenspill < 3) diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h index 8e0ebd7a..ccd20545 100644 --- a/src/lj_asm_arm.h +++ b/src/lj_asm_arm.h @@ -1046,7 +1046,7 @@ static ARMIns asm_fxloadins(IRIns *ir) case IRT_I16: return ARMI_LDRSH; case IRT_U16: return ARMI_LDRH; case IRT_NUM: lua_assert(!LJ_SOFTFP); return ARMI_VLDR_D; - case IRT_FLOAT: if (!LJ_SOFTFP) return ARMI_VLDR_S; + case IRT_FLOAT: if (!LJ_SOFTFP) return ARMI_VLDR_S; /* fallthrough */ default: return ARMI_LDR; } } @@ -1057,7 +1057,7 @@ static ARMIns asm_fxstoreins(IRIns *ir) case IRT_I8: case IRT_U8: return ARMI_STRB; case IRT_I16: case IRT_U16: return ARMI_STRH; case IRT_NUM: lua_assert(!LJ_SOFTFP); return ARMI_VSTR_D; - case IRT_FLOAT: if (!LJ_SOFTFP) return ARMI_VSTR_S; + case IRT_FLOAT: if (!LJ_SOFTFP) return ARMI_VSTR_S; /* fallthrough */ default: return ARMI_STR; } } |