From: Marek Polacek Date: Mon, 1 Aug 2016 16:03:41 +0000 (+0000) Subject: re PR c/7652 (-Wswitch-break : Warn if a switch case falls through) X-Git-Tag: releases/gcc-4.9.4~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98c82be639212128ca4a9ebbd829d078a4922d8b;p=thirdparty%2Fgcc.git re PR c/7652 (-Wswitch-break : Warn if a switch case falls through) PR c/7652 * config/i386/i386.c (ix86_expand_args_builtin): Add break. (ix86_expand_round_builtin): Likewise. From-SVN: r238958 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aec77f19d3d0..0ecffe6109d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2016-08-01 Marek Polacek + + Backport from mainline + 2016-07-29 Marek Polacek + + 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 PR middle-end/71874 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 63af6f301e11..3a313007f5ca 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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,