]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Fix GCC 7 -Wimplicit-fallthrough warnings.
authorMike Pall <mike>
Mon, 29 Apr 2019 16:02:50 +0000 (18:02 +0200)
committerMike Pall <mike>
Mon, 29 Apr 2019 16:02:50 +0000 (18:02 +0200)
src/lj_asm.c
src/lj_asm_arm.h

index dd7186f6de2810d68084d87ca751afafc4508780..8ce7bbd68cdda98fbbbfebeeb5c1a8cd55755b95 100644 (file)
@@ -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)
index 8e0ebd7a6001ebaa74320177bd760ac7f2d5ac96..ccd2054558a0e45eb33eebdf4abf2c544b6a3745 100644 (file)
@@ -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;
   }
 }