re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Jul 2016 12:39:25 +0000 (12:39 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Jul 2016 12:39:25 +0000 (12:39 +0000)
PR c/7652
* config/i386/i386.c (ix86_expand_args_builtin): Add break.
(ix86_expand_round_builtin): Likewise.

From-SVN: r238864

gcc/ChangeLog
gcc/config/i386/i386.c

index a1822d93c8fa3b3701142828f0f30738acbbe446..37c5c8e1cefd37985ebadc0b64e0ef88bcdc7673 100644 (file)
@@ -1,3 +1,9 @@
+2016-07-29  Marek Polacek  <polacek@redhat.com>
+
+       PR c/7652
+       * config/i386/i386.c (ix86_expand_args_builtin): Add break.
+       (ix86_expand_round_builtin): Likewise.
+
 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
            Georg-Johann Lay  <avr@gjlay.de>
 
@@ -8,7 +14,7 @@
 2016-07-29  Marek Polacek  <polacek@redhat.com>
 
        PR c/7652
-       * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Likewise.
+       * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
        (altivec_expand_st_builtin): Likewise.
 
 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
index 246c6b5164df83b70cb5a80eb425db46d5098116..7c8bb17ff7c0776f5b2a8657a68e82f0bd449f1c 100644 (file)
@@ -40172,6 +40172,7 @@ ix86_expand_args_builtin (const struct builtin_description *d,
     case 5:
       pat = GEN_FCN (icode) (real_target, args[0].op, args[1].op,
                             args[2].op, args[3].op, args[4].op);
+      break;
     case 6:
       pat = GEN_FCN (icode) (real_target, args[0].op, args[1].op,
                             args[2].op, args[3].op, args[4].op,
@@ -40546,6 +40547,7 @@ ix86_expand_round_builtin (const struct builtin_description *d,
     case 5:
       pat = GEN_FCN (icode) (target, args[0].op, args[1].op,
                             args[2].op, args[3].op, args[4].op);
+      break;
     case 6:
       pat = GEN_FCN (icode) (target, args[0].op, args[1].op,
                             args[2].op, args[3].op, args[4].op,