-Wimplicit-fallthrough error fixes
authorAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2016 06:22:24 +0000 (16:52 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2016 23:09:56 +0000 (09:39 +1030)
Well, not all are errors, but a little more substantive than just
fiddling with comments.

bfd/
* coffcode.h (coff_slurp_symbol_table): Revert accidental commit
made 2015-01-08.
* elf32-nds32.c (nds32_elf_grok_psinfo): Add missing break.
* reloc.c (bfd_default_reloc_type_lookup): Add missing breaks.
opcodes/
* arc-ext.c (create_map): Add missing break.
* msp430-decode.opc (encode_as): Likewise.
* msp430-decode.c: Regenerate.
binutils/
* coffdump.c (dump_coff_where): Add missing break.
* stabs.c (stab_xcoff_builtin_type): Likewise.
gas/
* config/tc-arc.c (find_opcode_match): Add missing break.
* config/tc-i960.c (get_cdisp): Likewise.
* config/tc-metag.c (parse_swap, md_apply_fix): Likewise.
* config/tc-mt.c (md_parse_option): Likewise.
* config/tc-nds32.c (nds32_apply_fix): Likewise.
* config/tc-hppa.c (pa_ip): Assert rather than testing last
condition of multiple if statements.
* config/tc-s390.c (s390_exp_compare): Return 0 on error.
* config/tc-tic4x.c (tic4x_operand_parse): Add as_bad and break
out of case rather than falling into next case.  Formatting.
ld/
* plugin.c (asymbol_from_plugin_symbol): Avoid compiler warning
by adding return.

22 files changed:
bfd/ChangeLog
bfd/coffcode.h
bfd/elf32-nds32.c
bfd/reloc.c
binutils/ChangeLog
binutils/coffdump.c
binutils/stabs.c
gas/ChangeLog
gas/config/tc-arc.c
gas/config/tc-hppa.c
gas/config/tc-i960.c
gas/config/tc-metag.c
gas/config/tc-mt.c
gas/config/tc-nds32.c
gas/config/tc-s390.c
gas/config/tc-tic4x.c
ld/ChangeLog
ld/plugin.c
opcodes/ChangeLog
opcodes/arc-ext.c
opcodes/msp430-decode.c
opcodes/msp430-decode.opc

index 7ba9597315644e6849c07d87cdc41ce8e89b4ac6..11381ea1047dac35c25f069c015668a84e543c5a 100644 (file)
@@ -1,3 +1,10 @@
+2016-10-06  Alan Modra  <amodra@gmail.com>
+
+       * coffcode.h (coff_slurp_symbol_table): Revert accidental commit
+       made 2015-01-08.
+       * elf32-nds32.c (nds32_elf_grok_psinfo): Add missing break.
+       * reloc.c (bfd_default_reloc_type_lookup): Add missing breaks.
+
 2016-10-06  Alan Modra  <amodra@gmail.com>
 
        * elf32-epiphany.c (epiphany_final_link_relocate): Use bitwise
index 20829fc89cee7f0bb1ee3942d90efac75b4e723c..31050ec8acbb35737c56fab4e06fa6b61dd254a6 100644 (file)
@@ -5055,14 +5055,14 @@ coff_slurp_symbol_table (bfd * abfd)
 #if defined(TIC80COFF) || defined(TICOFF)
            case C_UEXT:        /* Tentative external definition.  */
 #endif
+           case C_EXTLAB:      /* External load time label.  */
+           case C_HIDDEN:      /* Ext symbol in dmert public lib.  */
            default:
              _bfd_error_handler
                (_("%B: Unrecognized storage class %d for %s symbol `%s'"),
                 abfd, src->u.syment.n_sclass,
                 dst->symbol.section->name, dst->symbol.name);
              ret = FALSE;
-           case C_EXTLAB:      /* External load time label.  */
-           case C_HIDDEN:      /* Ext symbol in dmert public lib.  */
              dst->symbol.flags = BSF_DEBUGGING;
              dst->symbol.value = (src->u.syment.n_value);
              break;
index fc47c7f0a560da8294e676c036b34b5b81d988f9..0f2d6dab6c2bdb1a53ce7da5d4649ca91d5b6a93 100644 (file)
@@ -3046,6 +3046,7 @@ nds32_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
        _bfd_elfcore_strndup (abfd, note->descdata + 28, 16);
       elf_tdata (abfd)->core->command =
        _bfd_elfcore_strndup (abfd, note->descdata + 44, 80);
+      break;
 
     default:
       return FALSE;
index dbaa6a93f6121f95e04394acc3a179964ff1961e..58cffdf13e64f547f6fb724bb4415319589e96ce 100644 (file)
@@ -7770,10 +7770,12 @@ bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code)
        {
        case 64:
          BFD_FAIL ();
+         break;
        case 32:
          return &bfd_howto_32;
        case 16:
          BFD_FAIL ();
+         break;
        default:
          BFD_FAIL ();
        }
index c40ceda1181d28d6d176f891df920a3d365662c1..bef5ec0a2acaff295666c66d1552fe94363915db 100644 (file)
@@ -1,3 +1,8 @@
+2016-10-06  Alan Modra  <amodra@gmail.com>
+
+       * coffdump.c (dump_coff_where): Add missing break.
+       * stabs.c (stab_xcoff_builtin_type): Likewise.
+
 2016-09-29  Alan Modra  <amodra@gmail.com>
 
        * readelf.c (process_arch_specific): Call process_power_specific
index e9aa76fcf783f6560c809cf1f168bbf8903cc59e..640445830de49c140f2def780da07ed5723c83e1 100644 (file)
@@ -267,6 +267,7 @@ dump_coff_where (struct coff_where *p)
       break;
     case coff_where_strtag:
       printf ("STRTAG");
+      break;
     case coff_where_entag:
       printf ("ENTAG");
       break;
index aebde7afe97214d0d4fce7ad351c4dc22ee6c3ea..d209094d03130283be9440a91c5f59c75b1fc746 100644 (file)
@@ -3432,6 +3432,7 @@ stab_xcoff_builtin_type (void *dhandle, struct stab_handle *info,
     case 9:
       name = "unsigned";
       rettype = debug_make_int_type (dhandle, 4, TRUE);
+      break;
     case 10:
       name = "unsigned long";
       rettype = debug_make_int_type (dhandle, 4, TRUE);
index 22a948daf4981d2c2594688a2e25bc94a7771e07..80ab144d3facdc5feee07003e9f39a94cb397637 100644 (file)
@@ -1,3 +1,16 @@
+2016-10-06  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-arc.c (find_opcode_match): Add missing break.
+       * config/tc-i960.c (get_cdisp): Likewise.
+       * config/tc-metag.c (parse_swap, md_apply_fix): Likewise.
+       * config/tc-mt.c (md_parse_option): Likewise.
+       * config/tc-nds32.c (nds32_apply_fix): Likewise.
+       * config/tc-hppa.c (pa_ip): Assert rather than testing last
+       condition of multiple if statements.
+       * config/tc-s390.c (s390_exp_compare): Return 0 on error.
+       * config/tc-tic4x.c (tic4x_operand_parse): Add as_bad and break
+       out of case rather than falling into next case.  Formatting.
+
 2016-10-06  Alan Modra  <amodra@gmail.com>
 
        * config/rl78-parse.y: Don't use deprecated %name-prefix.
index 58adf0b341caf2dce4889c4597d6743dbde94208..d480bf1a1e9f8b7fc331629ed82ba10d71d47023 100644 (file)
@@ -1929,6 +1929,7 @@ find_opcode_match (const struct arc_opcode_hash_entry *entry,
                    case O_absent:
                      if (!generic_reloc_p (operand->default_reloc))
                        goto match_failed;
+                     break;
                    default:
                      break;
                    }
index aea78dc953688035809ffd224b564e0bf5cacb0b..f5cdc2c09ff9ae23cddef28d551c719a96dc788f 100644 (file)
@@ -3505,8 +3505,9 @@ pa_ip (char *str)
                        /* M bit is explicit in the major opcode.  */
                        INSERT_FIELD_AND_CONTINUE (opcode, a, 2);
                      }
-                   else if (*args == 'e')
+                   else
                      {
+                       gas_assert (*args == 'e');
                        /* Stash the ma/mb flag temporarily in the
                           instruction.  We will use (and remove it)
                           later when handling 'J', 'K', '<' & '>'.  */
index 59ef760af318b349792f162b2a1a37e09190d3d7..5afbb6f313c2d3c03e10c90e68ac872af30b39fc 100644 (file)
@@ -577,6 +577,7 @@ get_cdisp (const char *dispP, /* Displacement as specified in source instruction
     {
     case O_illegal:
       as_bad (_("expression syntax error"));
+      break;
 
     case O_symbol:
       if (S_GET_SEGMENT (e.X_add_symbol) == now_seg
index bbc34f7ccd699fad6b960a7e763c1f58a75b9761..e9f86876dd25bb80c148d1bef663c3c35d2fbaf4 100644 (file)
@@ -2040,6 +2040,7 @@ parse_swap (const char *line, metag_insn *insn,
          as_bad (_("PC, CT, TR and TT are treated as if they are a single unit but operands must be in different units"));
          return NULL;
        }
+      break;
 
     default:
       /* Registers must be in different units.  */
@@ -7109,6 +7110,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
       break;
     case BFD_RELOC_64:
       md_number_to_chars (buf, value, 8);
+      break;
 
     case BFD_RELOC_METAG_RELBRANCH:
       if (!value)
index bbcd87e1a0d81b928147b37d0e16431dcc536e60..1ae271ea4bc0691dda7221e0e012366bfda8426b 100644 (file)
@@ -133,6 +133,7 @@ md_parse_option (int c ATTRIBUTE_UNUSED, const char * arg)
          mt_mach_bitmask = 1 << MACH_MS2;
          mt_arch = ms2;
        }
+      break;
     case OPTION_NO_SCHED_REST:
       no_scheduling_restrictions = 1;
       break;
index f8a92774e817bbf102ffe944366fc41abdf07f05..de59f464c2072daacaa71c802433fa2c8aead3d3 100644 (file)
@@ -6605,6 +6605,7 @@ nds32_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
          break;
        case BFD_RELOC_64:
          md_number_to_chars (where, value, 8);
+         break;
        default:
          as_bad_where (fixP->fx_file, fixP->fx_line,
                        _("Internal error: Unknown fixup type %d (`%s')"),
index 356bbb0c7927c055de3bdccddd25c07d2a8248a3..bc318ee54c5d6a24423d06e712fc304c63019d94 100644 (file)
@@ -929,6 +929,7 @@ s390_exp_compare (expressionS *exp1, expressionS *exp2)
 
     case O_big:
       as_bad (_("Can't handle O_big in s390_exp_compare"));
+      return 0;
 
     case O_symbol:     /* X_add_symbol & X_add_number must be equal.  */
     case O_symbol_rva:
index 407fe177c01225973f9ddcc8ec0a6721dbf61381..84c9ece720ae4e2c28f09cc26d334bd6c7feae5c 100644 (file)
@@ -1553,10 +1553,10 @@ tic4x_operand_parse (char *s, tic4x_operand_t *operand)
       /* Allow ori ^foo, ar0 to be equivalent to ldi .hi.foo, ar0  */
       /* WARNING : The TI C40 assembler cannot do this.  */
       else if (exp->X_op == O_symbol)
-       {
-         operand->mode = M_HI;
-         break;
-       }
+       operand->mode = M_HI;
+      else
+       as_bad (_("Expecting a constant value"));
+      break;
 
     case '#':
       input_line_pointer = tic4x_expression (++input_line_pointer, exp);
@@ -1576,14 +1576,11 @@ tic4x_operand_parse (char *s, tic4x_operand_t *operand)
       /* Allow ori foo, ar0 to be equivalent to ldi .lo.foo, ar0  */
       /* WARNING : The TI C40 assembler cannot do this.  */
       else if (exp->X_op == O_symbol)
-       {
-         operand->mode = M_IMMED;
-         break;
-       }
-
+       operand->mode = M_IMMED;
       else
        as_bad (_("Expecting a constant value"));
       break;
+
     case '\\':
 #endif
     case '@':
index dd202295e5c0c5c38cd340a177de5338594ba41b..3660d87c9159c69fcf92006be5768201d9ee888f 100644 (file)
@@ -1,3 +1,8 @@
+2016-10-06  Alan Modra  <amodra@gmail.com>
+
+       * plugin.c (asymbol_from_plugin_symbol): Avoid compiler warning
+       by adding return.
+
 2016-10-04  Alan Modra  <amodra@gmail.com>
 
        * ld.texinfo (Expression Section): Update result of arithmetic
index 36094dd7c8cb6683e5521601b0768c81a2f8618d..80d22e222d097cbc8004759bf71ac7fa678f5461 100644 (file)
@@ -430,6 +430,8 @@ asymbol_from_plugin_symbol (bfd *abfd, asymbol *asym,
        default:
          einfo (_("%P%F: unknown ELF symbol visibility: %d!\n"),
                 ldsym->visibility);
+         return LDPS_ERR;
+
        case LDPV_DEFAULT:
          visibility = STV_DEFAULT;
          break;
index 83f435c3ec43f3fa9e79c6a2edc9f89c43c1d8dc..660276822e8e0c1ebc0813da937e260fb802fc28 100644 (file)
@@ -1,3 +1,9 @@
+2016-10-06  Alan Modra  <amodra@gmail.com>
+
+       * arc-ext.c (create_map): Add missing break.
+       * msp430-decode.opc (encode_as): Likewise.
+       * msp430-decode.c: Regenerate.
+
 2016-10-06  Alan Modra  <amodra@gmail.com>
 
        * cr16-dis.c (print_insn_cr16): Don't use boolean OR in arithmetic.
index c12cabee5804810beb248e9e09f5e47e8481a5cb..3cf3e2fe84ecbd95edd244d7a7f5514c86741286 100644 (file)
@@ -170,6 +170,7 @@ create_map (unsigned char *block,
            arc_extension_map.
              coreRegisters[number - FIRST_EXTENSION_CORE_REGISTER].name
              = xstrdup (name);
+           break;
          }
 
        case EXT_COND_CODE:
index c8cfc9a002bd3c858f37d67dd04debeb5a2849d6..137205f45177585b8b627fca480741cfa6a7e542 100644 (file)
@@ -238,6 +238,7 @@ encode_as (int reg, int as, LocalData *ld, int ext)
          break;
        case MSR_None:
          SA (0);
+         break;
        default:
          SM (reg, 0);
          break;
@@ -358,9 +359,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_1:
               {
                 /** 0000 srcr 0000 dstr                MOVA @%1, %0 */
-#line 438 "msp430-decode.opc"
+#line 439 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 438 "msp430-decode.opc"
+#line 439 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -371,7 +372,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA @%1, %0");
-#line 438 "msp430-decode.opc"
+#line 439 "msp430-decode.opc"
                 ID (MSO_mov); SM (srcr, 0); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -382,9 +383,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_2:
               {
                 /** 0000 srcr 0001 dstr                MOVA @%1+, %0 */
-#line 443 "msp430-decode.opc"
+#line 444 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 443 "msp430-decode.opc"
+#line 444 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -395,7 +396,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA @%1+, %0");
-#line 443 "msp430-decode.opc"
+#line 444 "msp430-decode.opc"
                 ID (MSO_mov); SI (srcr); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -406,9 +407,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_3:
               {
                 /** 0000 srcr 0010 dstr                MOVA &%1, %0 */
-#line 448 "msp430-decode.opc"
+#line 449 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 448 "msp430-decode.opc"
+#line 449 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -419,7 +420,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA &%1, %0");
-#line 448 "msp430-decode.opc"
+#line 449 "msp430-decode.opc"
                 ID (MSO_mov); SA ((srcr << 16) + IMMU(2)); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -430,9 +431,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_4:
               {
                 /** 0000 srcr 0011 dstr                MOVA %1, %0 */
-#line 453 "msp430-decode.opc"
+#line 454 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 453 "msp430-decode.opc"
+#line 454 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -443,7 +444,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA %1, %0");
-#line 453 "msp430-decode.opc"
+#line 454 "msp430-decode.opc"
                 ID (MSO_mov); SM (srcr, IMMS(2)); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -455,11 +456,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_5:
               {
                 /** 0000 bt00 010w dstr                RRCM.A %c, %0 */
-#line 520 "msp430-decode.opc"
+#line 521 "msp430-decode.opc"
                 int bt AU = (op[0] >> 2) & 0x03;
-#line 520 "msp430-decode.opc"
+#line 521 "msp430-decode.opc"
                 int w AU = (op[1] >> 4) & 0x01;
-#line 520 "msp430-decode.opc"
+#line 521 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -471,7 +472,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("RRCM.A %c, %0");
-#line 520 "msp430-decode.opc"
+#line 521 "msp430-decode.opc"
                 ID (MSO_rrc); DR (dstr); SR (dstr);
                 msp430->repeats = bt;
                 msp430->size = w ? 16 : 20;
@@ -484,9 +485,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_6:
               {
                 /** 0000 srcr 0110 dstr                MOVA %1, &%0 */
-#line 458 "msp430-decode.opc"
+#line 459 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 458 "msp430-decode.opc"
+#line 459 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -497,7 +498,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA %1, &%0");
-#line 458 "msp430-decode.opc"
+#line 459 "msp430-decode.opc"
                 ID (MSO_mov); SR (srcr); DA ((dstr << 16) + IMMU(2));
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -508,9 +509,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_7:
               {
                 /** 0000 srcr 0111 dstr                MOVA %1, &%0 */
-#line 463 "msp430-decode.opc"
+#line 464 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 463 "msp430-decode.opc"
+#line 464 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -521,7 +522,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA %1, &%0");
-#line 463 "msp430-decode.opc"
+#line 464 "msp430-decode.opc"
                 ID (MSO_mov); SR (srcr); DM (dstr, IMMS(2));
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -532,9 +533,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_8:
               {
                 /** 0000 srcr 1000 dstr                MOVA %1, %0 */
-#line 468 "msp430-decode.opc"
+#line 469 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 468 "msp430-decode.opc"
+#line 469 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -545,7 +546,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA %1, %0");
-#line 468 "msp430-decode.opc"
+#line 469 "msp430-decode.opc"
                 ID (MSO_mov); SC ((srcr << 16) + IMMU(2)); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -556,9 +557,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_9:
               {
                 /** 0000 srcr 1001 dstr                CMPA %1, %0 */
-#line 473 "msp430-decode.opc"
+#line 474 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 473 "msp430-decode.opc"
+#line 474 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -569,7 +570,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("CMPA %1, %0");
-#line 473 "msp430-decode.opc"
+#line 474 "msp430-decode.opc"
                 ID (MSO_cmp); SC ((srcr << 16) + IMMU(2)); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -581,9 +582,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_10:
               {
                 /** 0000 srcr 1010 dstr                ADDA %1, %0 */
-#line 479 "msp430-decode.opc"
+#line 480 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 479 "msp430-decode.opc"
+#line 480 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -594,7 +595,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("ADDA %1, %0");
-#line 479 "msp430-decode.opc"
+#line 480 "msp430-decode.opc"
                 ID (MSO_add); SC ((srcr << 16) + IMMU(2)); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -606,9 +607,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_11:
               {
                 /** 0000 srcr 1011 dstr                SUBA %1, %0 */
-#line 485 "msp430-decode.opc"
+#line 486 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 485 "msp430-decode.opc"
+#line 486 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -619,7 +620,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("SUBA %1, %0");
-#line 485 "msp430-decode.opc"
+#line 486 "msp430-decode.opc"
                 ID (MSO_sub); SC ((srcr << 16) + IMMU(2)); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -631,9 +632,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_12:
               {
                 /** 0000 srcr 1100 dstr                MOVA %1, %0 */
-#line 497 "msp430-decode.opc"
+#line 498 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 497 "msp430-decode.opc"
+#line 498 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -644,7 +645,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("MOVA %1, %0");
-#line 497 "msp430-decode.opc"
+#line 498 "msp430-decode.opc"
                 ID (MSO_mov); SR (srcr); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -655,9 +656,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_13:
               {
                 /** 0000 srcr 1101 dstr                CMPA %1, %0 */
-#line 502 "msp430-decode.opc"
+#line 503 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 502 "msp430-decode.opc"
+#line 503 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -668,7 +669,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("CMPA %1, %0");
-#line 502 "msp430-decode.opc"
+#line 503 "msp430-decode.opc"
                 ID (MSO_cmp); SR (srcr); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -680,9 +681,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_14:
               {
                 /** 0000 srcr 1110 dstr                ADDA %1, %0 */
-#line 508 "msp430-decode.opc"
+#line 509 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 508 "msp430-decode.opc"
+#line 509 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -693,7 +694,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("ADDA %1, %0");
-#line 508 "msp430-decode.opc"
+#line 509 "msp430-decode.opc"
                 ID (MSO_add); SR (srcr); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -705,9 +706,9 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_15:
               {
                 /** 0000 srcr 1111 dstr                SUBA %1, %0 */
-#line 514 "msp430-decode.opc"
+#line 515 "msp430-decode.opc"
                 int srcr AU = op[0] & 0x0f;
-#line 514 "msp430-decode.opc"
+#line 515 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -718,7 +719,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("SUBA %1, %0");
-#line 514 "msp430-decode.opc"
+#line 515 "msp430-decode.opc"
                 ID (MSO_sub); SR (srcr); DR (dstr);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -749,11 +750,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_16:
               {
                 /** 0000 bt01 010w dstr                RRAM.A %c, %0 */
-#line 527 "msp430-decode.opc"
+#line 528 "msp430-decode.opc"
                 int bt AU = (op[0] >> 2) & 0x03;
-#line 527 "msp430-decode.opc"
+#line 528 "msp430-decode.opc"
                 int w AU = (op[1] >> 4) & 0x01;
-#line 527 "msp430-decode.opc"
+#line 528 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -765,7 +766,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("RRAM.A %c, %0");
-#line 527 "msp430-decode.opc"
+#line 528 "msp430-decode.opc"
                 ID (MSO_rra); DR (dstr); SR (dstr);
                 msp430->repeats = bt;
                 msp430->size = w ? 16 : 20;
@@ -827,11 +828,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_17:
               {
                 /** 0000 bt10 010w dstr                RLAM.A %c, %0 */
-#line 534 "msp430-decode.opc"
+#line 535 "msp430-decode.opc"
                 int bt AU = (op[0] >> 2) & 0x03;
-#line 534 "msp430-decode.opc"
+#line 535 "msp430-decode.opc"
                 int w AU = (op[1] >> 4) & 0x01;
-#line 534 "msp430-decode.opc"
+#line 535 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -843,7 +844,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("RLAM.A %c, %0");
-#line 534 "msp430-decode.opc"
+#line 535 "msp430-decode.opc"
                 ID (MSO_add); DR (dstr); SR (dstr);
                 msp430->repeats = bt;
                 msp430->size = w ? 16 : 20;
@@ -905,11 +906,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_18:
               {
                 /** 0000 bt11 010w dstr                RRUM.A %c, %0 */
-#line 541 "msp430-decode.opc"
+#line 542 "msp430-decode.opc"
                 int bt AU = (op[0] >> 2) & 0x03;
-#line 541 "msp430-decode.opc"
+#line 542 "msp430-decode.opc"
                 int w AU = (op[1] >> 4) & 0x01;
-#line 541 "msp430-decode.opc"
+#line 542 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -921,7 +922,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("RRUM.A %c, %0");
-#line 541 "msp430-decode.opc"
+#line 542 "msp430-decode.opc"
                 ID (MSO_rru); DR (dstr); SR (dstr);
                 msp430->repeats = bt;
                 msp430->size = w ? 16 : 20;
@@ -1594,15 +1595,15 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_19:
               {
                 /** 0001 00so c b ad dreg      %S%b    %1                              */
-#line 394 "msp430-decode.opc"
+#line 395 "msp430-decode.opc"
                 int so AU = op[0] & 0x03;
-#line 394 "msp430-decode.opc"
+#line 395 "msp430-decode.opc"
                 int c AU = (op[1] >> 7) & 0x01;
-#line 394 "msp430-decode.opc"
+#line 395 "msp430-decode.opc"
                 int b AU = (op[1] >> 6) & 0x01;
-#line 394 "msp430-decode.opc"
+#line 395 "msp430-decode.opc"
                 int ad AU = (op[1] >> 4) & 0x03;
-#line 394 "msp430-decode.opc"
+#line 395 "msp430-decode.opc"
                 int dreg AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -1616,7 +1617,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dreg = 0x%x\n", dreg);
                   }
                 SYNTAX("%S%b   %1");
-#line 394 "msp430-decode.opc"
+#line 395 "msp430-decode.opc"
 
                 ID (sopc_to_id (so,c)); ASX (dreg, ad, srxt_bits); ABW (al_bit, b);
 
@@ -1682,7 +1683,7 @@ msp430_decode_opcode (unsigned long pc,
                            op[0], op[1]);
                   }
                 SYNTAX("RETI");
-#line 548 "msp430-decode.opc"
+#line 549 "msp430-decode.opc"
                 ID (MSO_reti);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -1900,9 +1901,9 @@ msp430_decode_opcode (unsigned long pc,
           case 0x7f:
               {
                 /** 0001 0011 01as dstr                CALLA %0 */
-#line 553 "msp430-decode.opc"
+#line 554 "msp430-decode.opc"
                 int as AU = (op[1] >> 4) & 0x03;
-#line 553 "msp430-decode.opc"
+#line 554 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -1913,7 +1914,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("CALLA %0");
-#line 553 "msp430-decode.opc"
+#line 554 "msp430-decode.opc"
                 ID (MSO_call); AS (dstr, as);
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -1938,7 +1939,7 @@ msp430_decode_opcode (unsigned long pc,
           case 0x8f:
               {
                 /** 0001 0011 1000 extb                CALLA %0 */
-#line 558 "msp430-decode.opc"
+#line 559 "msp430-decode.opc"
                 int extb AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -1948,7 +1949,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  extb = 0x%x\n", extb);
                   }
                 SYNTAX("CALLA %0");
-#line 558 "msp430-decode.opc"
+#line 559 "msp430-decode.opc"
                 ID (MSO_call); SA (IMMU(2) | (extb << 16));
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -1973,7 +1974,7 @@ msp430_decode_opcode (unsigned long pc,
           case 0x9f:
               {
                 /** 0001 0011 1001 extb                CALLA %0 */
-#line 563 "msp430-decode.opc"
+#line 564 "msp430-decode.opc"
                 int extb AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -1983,7 +1984,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  extb = 0x%x\n", extb);
                   }
                 SYNTAX("CALLA %0");
-#line 563 "msp430-decode.opc"
+#line 564 "msp430-decode.opc"
                 raddr = IMMU(2) | (extb << 16);
                 if (raddr & 0x80000)
                   raddr -= 0x100000;
@@ -2011,7 +2012,7 @@ msp430_decode_opcode (unsigned long pc,
           case 0xbf:
               {
                 /** 0001 0011 1011 extb                CALLA %0 */
-#line 571 "msp430-decode.opc"
+#line 572 "msp430-decode.opc"
                 int extb AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -2021,7 +2022,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  extb = 0x%x\n", extb);
                   }
                 SYNTAX("CALLA %0");
-#line 571 "msp430-decode.opc"
+#line 572 "msp430-decode.opc"
                 ID (MSO_call); SC (IMMU(2) | (extb << 16));
                 msp430->size = 20;
                 msp430->ofs_430x = 1;
@@ -2038,11 +2039,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_20:
               {
                 /** 0001 010w bits srcr                PUSHM.A %0 */
-#line 576 "msp430-decode.opc"
+#line 577 "msp430-decode.opc"
                 int w AU = op[0] & 0x01;
-#line 576 "msp430-decode.opc"
+#line 577 "msp430-decode.opc"
                 int bits AU = (op[1] >> 4) & 0x0f;
-#line 576 "msp430-decode.opc"
+#line 577 "msp430-decode.opc"
                 int srcr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -2054,7 +2055,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  srcr = 0x%x\n", srcr);
                   }
                 SYNTAX("PUSHM.A %0");
-#line 576 "msp430-decode.opc"
+#line 577 "msp430-decode.opc"
                 ID (MSO_push); SR (srcr);
                 msp430->size = w ? 16 : 20;
                 msp430->repeats = bits;
@@ -2081,11 +2082,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_21:
               {
                 /** 0001 011w bits dstr                POPM.A %0 */
-#line 582 "msp430-decode.opc"
+#line 583 "msp430-decode.opc"
                 int w AU = op[0] & 0x01;
-#line 582 "msp430-decode.opc"
+#line 583 "msp430-decode.opc"
                 int bits AU = (op[1] >> 4) & 0x0f;
-#line 582 "msp430-decode.opc"
+#line 583 "msp430-decode.opc"
                 int dstr AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -2097,7 +2098,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dstr = 0x%x\n", dstr);
                   }
                 SYNTAX("POPM.A %0");
-#line 582 "msp430-decode.opc"
+#line 583 "msp430-decode.opc"
                 ID (MSO_pop); DR (dstr);
                 msp430->size = w ? 16 : 20;
                 msp430->repeats = bits;
@@ -2124,13 +2125,13 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_22:
               {
                 /** 0001 1srx t l 00 dsxt      430x */
-#line 350 "msp430-decode.opc"
+#line 351 "msp430-decode.opc"
                 int srx AU = op[0] & 0x07;
-#line 350 "msp430-decode.opc"
+#line 351 "msp430-decode.opc"
                 int t AU = (op[1] >> 7) & 0x01;
-#line 350 "msp430-decode.opc"
+#line 351 "msp430-decode.opc"
                 int l AU = (op[1] >> 6) & 0x01;
-#line 350 "msp430-decode.opc"
+#line 351 "msp430-decode.opc"
                 int dsxt AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -2143,7 +2144,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dsxt = 0x%x\n", dsxt);
                   }
                 SYNTAX("430x");
-#line 350 "msp430-decode.opc"
+#line 351 "msp430-decode.opc"
 
                 al_bit = l;
                 srxt_bits = srx * 2 + t;
@@ -2246,11 +2247,11 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_23:
               {
                 /** 001jmp aa addrlsbs         %J      %1                              */
-#line 424 "msp430-decode.opc"
+#line 425 "msp430-decode.opc"
                 int jmp AU = (op[0] >> 2) & 0x07;
-#line 424 "msp430-decode.opc"
+#line 425 "msp430-decode.opc"
                 int aa AU = op[0] & 0x03;
-#line 424 "msp430-decode.opc"
+#line 425 "msp430-decode.opc"
                 int addrlsbs AU = op[1];
                 if (trace)
                   {
@@ -2262,7 +2263,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  addrlsbs = 0x%x\n", addrlsbs);
                   }
                 SYNTAX("%J     %1");
-#line 424 "msp430-decode.opc"
+#line 425 "msp430-decode.opc"
 
                 raddr = (aa << 9) | (addrlsbs << 1);
                 if (raddr & 0x400)
@@ -2567,17 +2568,17 @@ msp430_decode_opcode (unsigned long pc,
             op_semantics_24:
               {
                 /** dopc sreg a b as dreg      %D%b    %1,%0                           */
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
                 int dopc AU = (op[0] >> 4) & 0x0f;
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
                 int sreg AU = op[0] & 0x0f;
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
                 int a AU = (op[1] >> 7) & 0x01;
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
                 int b AU = (op[1] >> 6) & 0x01;
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
                 int as AU = (op[1] >> 4) & 0x03;
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
                 int dreg AU = op[1] & 0x0f;
                 if (trace)
                   {
@@ -2592,7 +2593,7 @@ msp430_decode_opcode (unsigned long pc,
                     printf ("  dreg = 0x%x\n", dreg);
                   }
                 SYNTAX("%D%b   %1,%0");
-#line 371 "msp430-decode.opc"
+#line 372 "msp430-decode.opc"
 
                 ID (dopc_to_id (dopc)); ASX (sreg, as, srxt_bits); ADX (dreg, a, dsxt_bits); ABW (al_bit, b);
                 if (a == 0 && as == 0)
@@ -4339,7 +4340,7 @@ msp430_decode_opcode (unsigned long pc,
         }
       break;
   }
-#line 588 "msp430-decode.opc"
+#line 589 "msp430-decode.opc"
 
   return msp430->n_bytes;
 }
index 084a6a54233f3ad47e35ac36909e9407cebf694f..9428467ed13d92cce28ddaccc0aae51ad251268e 100644 (file)
@@ -237,6 +237,7 @@ encode_as (int reg, int as, LocalData *ld, int ext)
          break;
        case MSR_None:
          SA (0);
+         break;
        default:
          SM (reg, 0);
          break;
This page took 0.066187 seconds and 4 git commands to generate.