]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)
authorMarek Polacek <polacek@redhat.com>
Mon, 1 Aug 2016 16:03:41 +0000 (16:03 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 1 Aug 2016 16:03:41 +0000 (16:03 +0000)
PR c/7652
* config/i386/i386.c (ix86_expand_args_builtin): Add break.
(ix86_expand_round_builtin): Likewise.

From-SVN: r238958

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

index aec77f19d3d01b0843ace67fe11cc3c6592d34f2..0ecffe6109d77012f994127e331195ce4c5086bb 100644 (file)
@@ -1,3 +1,14 @@
+2016-08-01  Marek Polacek  <polacek@redhat.com>
+
+       Backport from mainline
+       2016-07-29  Marek Polacek  <polacek@redhat.com>
+
+       PR c/7652
+       * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
+       (altivec_expand_st_builtin): Likewise.
+       * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
+       (ix86_expand_round_builtin): Likewise.
+
 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/71874
index 63af6f301e11a11580440483921ee5598433e7ad..3a313007f5cae514cad6544b26a8702d418d5003 100644 (file)
@@ -34260,6 +34260,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,
@@ -34629,6 +34630,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,