+2016-09-01 Marek Polacek <polacek@redhat.com>
+
+ PR c/7652
+ * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
+ FALLTHRU comments.
+
2016-08-29 Marek Polacek <polacek@redhat.com>
PR c/77292
/* Handle these 4 together so that they can fall through to the next
case if the call is transformed to an _N variant. */
switch (orig_code)
- {
+ {
case BUILT_IN_ATOMIC_EXCHANGE:
{
if (resolve_overloaded_atomic_exchange (loc, function, params,
}
default:
gcc_unreachable ();
- }
- /* Fallthrough to the normal processing. */
+ }
}
+ /* FALLTHRU */
case BUILT_IN_ATOMIC_EXCHANGE_N:
case BUILT_IN_ATOMIC_COMPARE_EXCHANGE_N:
case BUILT_IN_ATOMIC_LOAD_N:
case BUILT_IN_ATOMIC_STORE_N:
- {
- fetch_op = false;
- /* Fallthrough to further processing. */
- }
+ fetch_op = false;
+ /* FALLTHRU */
case BUILT_IN_ATOMIC_ADD_FETCH_N:
case BUILT_IN_ATOMIC_SUB_FETCH_N:
case BUILT_IN_ATOMIC_AND_FETCH_N:
case BUILT_IN_ATOMIC_FETCH_NAND_N:
case BUILT_IN_ATOMIC_FETCH_XOR_N:
case BUILT_IN_ATOMIC_FETCH_OR_N:
- {
- orig_format = false;
- /* Fallthru for parameter processing. */
- }
+ orig_format = false;
+ /* FALLTHRU */
case BUILT_IN_SYNC_FETCH_AND_ADD_N:
case BUILT_IN_SYNC_FETCH_AND_SUB_N:
case BUILT_IN_SYNC_FETCH_AND_OR_N:
+2016-09-01 Marek Polacek <polacek@redhat.com>
+
+ PR c/7652
+ * c-typeck.c (composite_type): Add FALLTHRU comment.
+
2016-08-31 David Malcolm <dmalcolm@redhat.com>
* c-parser.c (c_parser_declaration_or_fndef): Add trailing space
t1 = build_function_type (valtype, newargs);
t1 = qualify_type (t1, t2);
- /* ... falls through ... */
}
+ /* FALLTHRU */
default:
return build_type_attribute_variant (t1, attributes);
+2016-09-01 Marek Polacek <polacek@redhat.com>
+
+ PR c/7652
+ * error.c (dump_type): Fix falls through comment.
+ (dump_decl): Likewise.
+ (dump_expr): Likewise.
+
2016-08-30 David Malcolm <dmalcolm@redhat.com>
* parser.c (cp_parser_enclosed_template_argument_list): Add fix-it
default:
pp_unsupported_tree (pp, t);
- /* Fall through to error. */
+ /* Fall through. */
case ERROR_MARK:
pp_string (pp, M_("<type error>"));
default:
pp_unsupported_tree (pp, t);
- /* Fall through to error. */
+ /* Fall through. */
case ERROR_MARK:
pp_string (pp, M_("<declaration error>"));
`report_error_function'. That could cause an infinite loop. */
default:
pp_unsupported_tree (pp, t);
- /* fall through to ERROR_MARK... */
+ /* Fall through. */
case ERROR_MARK:
pp_string (pp, M_("<expression error>"));
break;