spu.c (spu_sched_reorder): Add missing fallthru comment.
authorJeff Law <law@redhat.com>
Wed, 26 Oct 2016 15:17:16 +0000 (09:17 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 26 Oct 2016 15:17:16 +0000 (09:17 -0600)
* config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
(spu_legitimate_address_p): Fix logic error and add missing fallthru
comment.

From-SVN: r241557

gcc/ChangeLog
gcc/config/spu/spu.c

index 0b537acb64dc6ffef6ff44c5ec969c6da4333052..3780ba084b34b7cf9a0085cd217cc1072d0e3571 100644 (file)
@@ -1,3 +1,9 @@
+2016-10-26  Jeff Law  <law@redhat.com>
+
+       * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
+       (spu_legitimate_address_p): Fix logic error and add missing fallthru
+       comment.
+
 2016-10-26  Michael Matz  <matz@suse.de>
 
        PR tree-optimization/78060
index 5b59b7270a918b3f9b8bd75eeacd62096a1214e1..820924e0882acd5fd2539a8f5c68e1e6e0bc7ee7 100644 (file)
@@ -2894,6 +2894,7 @@ spu_sched_reorder (FILE *file ATTRIBUTE_UNUSED, int verbose ATTRIBUTE_UNUSED,
          case TYPE_LOAD:
          case TYPE_STORE:
            pipe_ls = i;
+           /* FALLTHRU */
          case TYPE_LNOP:
          case TYPE_SHUF:
          case TYPE_BR:
@@ -3532,8 +3533,9 @@ spu_legitimate_address_p (machine_mode mode,
 
     case SUBREG:
       x = XEXP (x, 0);
-      if (REG_P (x))
+      if (!REG_P (x))
        return 0;
+      /* FALLTHRU */
 
     case REG:
       return INT_REG_OK_FOR_BASE_P (x, reg_ok_strict);