From 0c44e080f57a7c9d334005c2ceac08139d1d276b Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 12 Aug 2016 10:15:57 +0000 Subject: [PATCH] re PR c/7652 (-Wswitch-break : Warn if a switch case falls through) PR c/7652 * tree-complex.c (expand_complex_division): Add missing break. From-SVN: r239409 --- gcc/ChangeLog | 5 +++++ gcc/tree-complex.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8257b0e0a43..4f45c06f8b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-08-12 Marek Polacek + + PR c/7652 + * tree-complex.c (expand_complex_division): Add missing break. + 2016-08-12 Richard Biener * passes.c (execute_todo): Do not push/pop TV_TODO. diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index d7baf227c7d..7668520aaa4 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -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): -- 2.30.2