2017-07-30 14:29:23 +00:00
|
|
|
commit b4416f9a54ca0f27adc4a5a2d576779ec1288047
|
|
|
|
Author: sezero <sezero@users.sourceforge.net>
|
|
|
|
Date: Thu Jun 15 09:50:00 2017 +0300
|
|
|
|
|
|
|
|
gendef.c (getMemonic): add /* fallthru */ comments in the switch to avoid -Wimplicit-fallthrough
|
|
|
|
|
2017-12-02 20:44:39 +00:00
|
|
|
---
|
|
|
|
mingw-w64-tools/gendef/src/gendef.c | 10 +++++-----
|
|
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
|
2017-07-30 14:29:23 +00:00
|
|
|
--- a/mingw-w64-tools/gendef/src/gendef.c
|
|
|
|
+++ b/mingw-w64-tools/gendef/src/gendef.c
|
2017-12-02 20:44:39 +00:00
|
|
|
@@ -820,7 +820,7 @@
|
2017-07-30 14:29:23 +00:00
|
|
|
if (!sz || code == c_ill)
|
|
|
|
{
|
|
|
|
PRDEBUG(" %s = 0x08%x ILL (%u) at least one==%d\n",name,
|
|
|
|
- (unsigned int) pc, (unsigned int) sz,atleast_one[0]);
|
|
|
|
+ (unsigned int) pc, (unsigned int) sz,atleast_one[0]);
|
|
|
|
#if ENABLE_DEBUG == 1
|
|
|
|
{
|
|
|
|
unsigned char *ppc = (unsigned char *) map_va (pc);
|
2017-12-02 20:44:39 +00:00
|
|
|
@@ -1015,10 +1015,10 @@
|
2017-07-30 14:29:23 +00:00
|
|
|
PRDEBUG(" 0x%x illegal ", (unsigned int) b);
|
|
|
|
#endif
|
|
|
|
*aCode=c_ill; return 0;
|
|
|
|
- case c_4: sz++;
|
|
|
|
- case c_3: sz++;
|
|
|
|
+ case c_4: sz++;/* fallthru */
|
|
|
|
+ case c_3: sz++;/* fallthru */
|
|
|
|
case c_lb:
|
|
|
|
- case c_2: sz++;
|
|
|
|
+ case c_2: sz++;/* fallthru */
|
|
|
|
case c_retn: case c_retf:
|
|
|
|
case c_iret: case c_int3:
|
|
|
|
case c_ad: case c_op:
|
2017-12-02 20:44:39 +00:00
|
|
|
@@ -1045,7 +1045,7 @@
|
2017-07-30 14:29:23 +00:00
|
|
|
p = (unsigned char *) map_va (pc + sz);
|
|
|
|
if (!p) { *aCode=c_ill; return 0; }
|
|
|
|
#if ENABLE_DEBUG == 1
|
|
|
|
- enter_save_insn(lw,p[0]);
|
|
|
|
+ enter_save_insn(lw,p[0]);
|
|
|
|
#endif
|
|
|
|
b&=~0x7; b|=(p[0]&7);
|
|
|
|
sz+=1;
|