diff options
author | Marek Polacek <polacek@redhat.com> | 2016-08-01 16:03:41 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-08-01 16:03:41 +0000 |
commit | 98c82be639212128ca4a9ebbd829d078a4922d8b (patch) | |
tree | 3994a2f6d9c4a6f4f03dc0c4cf0ac8ceee4763f3 | |
parent | 470405c5c66441581676aebd20c0320ca5818d10 (diff) |
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
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aec77f19d3d..0ecffe6109d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 63af6f301e1..3a313007f5c 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, |