diff options
author | Marek Polacek <polacek@redhat.com> | 2016-07-29 12:39:25 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-07-29 12:39:25 +0000 |
commit | c63b1732d520e5f047eeada4d4376932ce333d8d (patch) | |
tree | 0e870a406ac5f90b5ca797bb830d459f043903d6 | |
parent | cc80b225c509c45dadbeccdb154985677e1ae3a3 (diff) | |
download | gcc-c63b1732d520e5f047eeada4d4376932ce333d8d.zip gcc-c63b1732d520e5f047eeada4d4376932ce333d8d.tar.gz gcc-c63b1732d520e5f047eeada4d4376932ce333d8d.tar.bz2 |
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: r238864
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a1822d9..37c5c8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 246c6b5..7c8bb17 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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, |