]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add two fall-through comments in rs6000-tdep.c
authorTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 22:09:29 +0000 (16:09 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 5 May 2018 04:04:46 +0000 (22:04 -0600)
This adds two fall-through comments in rs6000-tdep.c.  I looked at the
PPC instruction manual and convinced myself that this was correct.
And, this isn't a semantic change.  However, close review would still
be good.

2018-05-04  Tom Tromey  <tom@tromey.com>

* rs6000-tdep.c (ppc_process_record_op4)
(ppc_process_record_op63): Add fall-through comment.

gdb/ChangeLog
gdb/rs6000-tdep.c

index aad783096d2d29b343fbf7a98d772b379fda1548..c0deadf4fb19b2bcd979ca726c00a914c29dc09a 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-04  Tom Tromey  <tom@tromey.com>
+
+       * rs6000-tdep.c (ppc_process_record_op4)
+       (ppc_process_record_op63): Add fall-through comment.
+
 2018-05-04  Tom Tromey  <tom@tromey.com>
 
        * i386-tdep.c (i386_process_record): Add fall-through comment.
index 425c41df2449f21d73300200028fbe84209f84eb..c5b49c5f465d7e88e82d9e274246ae1b23d46dda 100644 (file)
@@ -3969,6 +3969,7 @@ ppc_process_record_op4 (struct gdbarch *gdbarch, struct regcache *regcache,
          && vra != 7   /* Decimal Convert From National */
          && vra != 31) /* Decimal Set Sign */
        break;
+      /* Fall through.  */
                        /* 5.16 Decimal Integer Arithmetic Instructions */
     case 1:            /* Decimal Add Modulo */
     case 65:           /* Decimal Subtract Modulo */
@@ -5565,6 +5566,7 @@ ppc_process_record_op63 (struct gdbarch *gdbarch, struct regcache *regcache,
          case 22:      /* Move From FPSCR Control & set RN */
          case 23:      /* Move From FPSCR Control & set RN Immediate */
            record_full_arch_list_add_reg (regcache, tdep->ppc_fpscr_regnum);
+           /* Fall through.  */
          case 0:       /* Move From FPSCR */
          case 24:      /* Move From FPSCR Lightweight */
            if (PPC_FIELD (insn, 11, 5) == 0 && PPC_RC (insn))