aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-10-05 15:59:28 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-10-05 15:59:28 -0400
commit3bd034d0181e3f8ed26baac2e69c6b3bba2eb05c (patch)
treef480b3a1e4c8913a506dd6bebd97fec537a510c9
parentf8b6a4889eb29c1ddf65fd172f4f2c0a7d5f7d0d (diff)
downloadgcc-3bd034d0181e3f8ed26baac2e69c6b3bba2eb05c.zip
gcc-3bd034d0181e3f8ed26baac2e69c6b3bba2eb05c.tar.gz
gcc-3bd034d0181e3f8ed26baac2e69c6b3bba2eb05c.tar.bz2
* parser.c (cp_parser_skip_to_end_of_statement): Add missing break.
From-SVN: r240809
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/call.c1
-rw-r--r--gcc/cp/cxx-pretty-print.c1
-rw-r--r--gcc/cp/parser.c4
4 files changed, 3 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 40cbb97..e95faf6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2016-10-05 Jason Merrill <jason@redhat.com>
+ * parser.c (cp_parser_skip_to_end_of_statement): Add missing break.
+
* semantics.c (finish_compound_literal): Handle class placeholder.
2016-10-05 Marek Polacek <polacek@redhat.com>
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 8c5cb20..0914ae2 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -2544,7 +2544,6 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code,
type2 = ptrdiff_type_node;
break;
}
- /* XXX Really fallthru? */
/* FALLTHRU */
case MULT_EXPR:
case TRUNC_DIV_EXPR:
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index f4d2a2e..a290c87 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -142,7 +142,6 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t)
case OVERLOAD:
t = OVL_CURRENT (t);
- /* XXX Really fallthru? */
/* FALLTHRU */
case VAR_DECL:
case PARM_DECL:
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index f3dc359..60bbf49 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -3495,8 +3495,7 @@ cp_parser_skip_to_end_of_statement (cp_parser* parser)
cp_lexer_consume_token (parser->lexer);
return;
}
- /* XXX Really fallthru? */
- /* FALLTHRU */
+ break;
case CPP_OPEN_BRACE:
++nesting_depth;
@@ -27932,7 +27931,6 @@ cp_parser_cache_defarg (cp_parser *parser, bool nsdmi)
parser->in_template_argument_list_p = saved_italp;
break;
}
- /* XXX Really fallthru? */
/* FALLTHRU */
case CPP_CLOSE_PAREN:
case CPP_ELLIPSIS: