re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)
authorMarek Polacek <polacek@redhat.com>
Fri, 12 Aug 2016 10:15:57 +0000 (10:15 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 12 Aug 2016 10:15:57 +0000 (10:15 +0000)
PR c/7652
* tree-complex.c (expand_complex_division): Add missing break.

From-SVN: r239409

gcc/ChangeLog
gcc/tree-complex.c

index 8257b0e0a4358bea6bb0eb199e05d29cce9c9f41..4f45c06f8b476942e273f8f89849d17c2dcd6385 100644 (file)
@@ -1,3 +1,8 @@
+2016-08-12  Marek Polacek  <polacek@redhat.com>
+
+       PR c/7652
+       * tree-complex.c (expand_complex_division): Add missing break.
+
 2016-08-12  Richard Biener  <rguenther@suse.de>
 
        * passes.c (execute_todo): Do not push/pop TV_TODO.
index d7baf227c7dd7878d8a9017506ae7ce41a6d28c1..7668520aaa47d8f8643960e8a06a358003d5ca64 100644 (file)
@@ -1336,6 +1336,7 @@ expand_complex_division (gimple_stmt_iterator *gsi, tree inner_type,
       rr = gimplify_build2 (gsi, code, inner_type, ai, bi);
       ri = gimplify_build2 (gsi, code, inner_type, ar, bi);
       ri = gimplify_build1 (gsi, NEGATE_EXPR, inner_type, ri);
+      break;
 
     case PAIR (ONLY_REAL, VARYING):
     case PAIR (ONLY_IMAG, VARYING):