From: mpolacek Date: Fri, 12 Aug 2016 10:30:47 +0000 (+0000) Subject: PR c/7652 X-Git-Tag: accepted/tizen/base/20181109.114837~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F78%2F189278%2F2;p=platform%2Fupstream%2Flinaro-gcc.git PR c/7652 gcc/ * alias.c (find_base_value): Adjust fall through comment. * cfgexpand.c (expand_debug_expr): Likewise. * combine.c (find_split_point): Likewise. (expand_compound_operation): Likewise. Add FALLTHRU. (make_compound_operation): Adjust fall through comment. (canon_reg_for_combine): Add FALLTHRU. (force_to_mode): Adjust fall through comment. (simplify_shift_const_1): Likewise. (simplify_comparison): Likewise. * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add FALLTHRU. * config/aarch64/predicates.md: Likewise. * config/i386/i386.c (function_arg_advance_32): Likewise. (ix86_gimplify_va_arg): Likewise. (print_reg): Likewise. (ix86_print_operand): Likewise. (ix86_build_const_vector): Likewise. (ix86_expand_branch): Likewise. (ix86_sched_init_global): Adjust fall through comment. (ix86_expand_args_builtin): Add FALLTHRU. (ix86_expand_builtin): Likewise. (ix86_expand_vector_init_one_var): Likewise. * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise. (rs6000_adjust_cost): Likewise. (insn_must_be_first_in_group): Likewise. * config/rs6000/rs6000.md: Likewise. Adjust fall through comment. * dbxout.c (dbxout_symbol): Adjust fall through comment. * df-scan.c (df_uses_record): Likewise. * dojump.c (do_jump): Add FALLTHRU. * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through comment. (resolve_args_picking_1): Adjust fall through comment. (loc_list_from_tree_1): Likewise. * expmed.c (make_tree): Likewise. * expr.c (expand_expr_real_2): Add FALLTHRU. (expand_expr_real_1): Likewise. Adjust fall through comment. * fold-const.c (const_binop): Adjust fall through comment. (fold_truth_not_expr): Likewise. (fold_cond_expr_with_comparison): Add FALLTHRU. (fold_binary_loc): Likewise. (contains_label_1): Adjust fall through comment. (multiple_of_p): Likewise. * gcov-tool.c (process_args): Add FALLTHRU. * genattrtab.c (check_attr_test): Likewise. (write_test_expr): Likewise. * genconfig.c (walk_insn_part): Likewise. * genpreds.c (validate_exp): Adjust fall through comment. (needs_variable): Likewise. * gensupport.c (get_alternatives_number): Add FALLTHRU. (subst_dup): Likewise. * gimple-pretty-print.c (dump_gimple_assign): Likewise. * gimplify.c (gimplify_addr_expr): Adjust fall through comment. (gimplify_scan_omp_clauses): Add FALLTHRU. (goa_stabilize_expr): Likewise. * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall through comment. * hsa-gen.c (get_address_from_value): Likewise. * ipa-icf.c (sem_function::hash_stmt): Likewise. * ira.c (ira_setup_alts): Add FALLTHRU. * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through comment. * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU. * opts.c (common_handle_option): Likewise. * read-rtl.c (read_rtx_code): Likewise. * real.c (round_for_format): Likewise. * recog.c (asm_operand_ok): Likewise. * reginfo.c (reg_scan_mark_refs): Adjust fall through comment. * reload1.c (set_label_offsets): Likewise. (eliminate_regs_1): Likewise. (reload_reg_reaches_end_p): Likewise. * rtlanal.c (commutative_operand_precedence): Add FALLTHRU. (rtx_cost): Likewise. * sched-rgn.c (is_exception_free): Likewise. * simplify-rtx.c (simplify_rtx): Adjust fall through comment. * stor-layout.c (int_mode_for_mode): Likewise. * toplev.c (print_to_asm_out_file): Likewise. (print_to_stderr): Likewise. * tree-cfg.c (gimple_verify_flow_info): Likewise. * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU. (chrec_fold_multiply): Likewise. (evolution_function_is_invariant_rec_p): Likewise. (for_each_scev_op): Likewise. * tree-data-ref.c (siv_subscript_p): Likewise. (get_references_in_stmt): Likewise. * tree.c (find_placeholder_in_expr): Adjust fall through comment. (substitute_in_expr): Likewise. (type_cache_hasher::equal): Likewise. (walk_type_fields): Likewise. * var-tracking.c (adjust_mems): Add FALLTHRU. (set_dv_changed): Adjust fall through comment. * varasm.c (default_function_section): Add FALLTHRU. gcc/c-family/ * c-common.c (scalar_to_vector): Adjust fall through comment. * c-opts.c (c_common_handle_option): Likewise. * c-pragma.c (handle_pragma_pack): Add FALLTHRU. * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust fall through comment. * cilk.c (extract_free_variables): Add FALLTHRU. gcc/c/ * c-parser.c (c_parser_external_declaration): Add FALLTHRU. (c_parser_postfix_expression): Likewise. * c-typeck.c (build_unary_op): Adjust fall through comment. (c_mark_addressable): Likewise. gcc/cp/ * call.c (add_builtin_candidate): Add FALLTHRU. (build_integral_nontype_arg_conv): Adjust fall through comment. (build_new_op_1): Add FALLTHRU. (convert_like_real): Adjust fall through comment. * class.c (fixed_type_or_null): Likewise. * constexpr.c (cxx_eval_constant_expression): Likewise. (potential_constant_expression_1): Likewise. Add FALLTHRU. * cp-gimplify.c (cp_gimplify_expr): Adjust fall through comment. (cp_fold): Add FALLTHRU. * cvt.c (build_expr_type_conversion): Adjust fall through comment. * cxx-pretty-print.c (pp_cxx_unqualified_id): Add FALLTHRU. (pp_cxx_qualified_id): Likewise. (cxx_pretty_printer::constant): Adjust fall through comment. (cxx_pretty_printer::primary_expression): Add FALLTHRU. (pp_cxx_pm_expression): Adjust fall through comment. (cxx_pretty_printer::expression): Add FALLTHRU. (cxx_pretty_printer::declaration_specifiers): Reformat code. (pp_cxx_type_specifier_seq): Adjust fall through comment. (pp_cxx_ptr_operator): Likewise. Add FALLTHRU. * error.c (dump_type): Adjust fall through comment. (dump_decl): Likewise. * mangle.c (write_type): Likewise. * method.c (synthesized_method_walk): Add FALLTHRU. * name-lookup.c (arg_assoc_type): Likewise. * parser.c (cp_lexer_print_token): Adjust fall through comment. (cp_parser_primary_expression): Add FALLTHRU. (cp_parser_operator): Likewise. * pt.c (find_parameter_packs_r): Likewise. (tsubst_aggr_type): Adjust fall through comment. * semantics.c (finish_omp_clauses): Add FALLTHRU. * tree.c (lvalue_kind): Likewise. gcc/fortran/ * decl.c (match_attr_spec): Add FALLTHRU. * primary.c (match_arg_list_function): Likewise. * resolve.c (resolve_operator): Adjust fall through comment. (fixup_charlen): Add FALLTHRU. (resolve_allocate_expr): Adjust fall through comment. * trans-array.c (gfc_conv_ss_startstride): Add FALLTHRU. * trans-intrinsic.c (gfc_conv_intrinsic_len): Adjust fall through comment. gcc/java/ * expr.c (java_truthvalue_conversion): Adjust fall through comment. * jcf-io.c (verify_constant_pool): Likewise. * typeck.c (promote_type): Likewise. gcc/objc/ * objc-encoding.c (encode_type): Add FALLTHRU. libcpp/ * lex.c (search_line_fast): Add FALLTHRU. (_cpp_lex_direct): Likewise. (cpp_token_val_index): Adjust fall through comment. * macro.c (parse_params): Add FALLTHRU. * pch.c (count_defs): Adjust fall through comment. (write_defs): Likewise. libiberty/ * cp-demangle.c (d_print_mod): Add FALLTHRU. upstream hash: e3533433b8efa642ea08f2704b1dd7b7f741fbc3 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239410 138bc75d-0d04-0410-961f-82ee72b054a4 Change-Id: I4ebe40df8514b8ec4a6d5c701b2b672107fcc40c --- diff --git a/gcc/alias.c b/gcc/alias.c index c762894..f92b90a 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1390,7 +1390,7 @@ find_base_value (rtx src) if (GET_CODE (src) != PLUS && GET_CODE (src) != MINUS) break; - /* ... fall through ... */ + /* fall through */ case PLUS: case MINUS: diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 2a0006c..3961e94 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -12595,7 +12595,7 @@ scalar_to_vector (location_t loc, enum tree_code code, tree op0, tree op1, case BIT_XOR_EXPR: case BIT_AND_EXPR: integer_only_op = true; - /* ... fall through ... */ + /* fall through */ case VEC_COND_EXPR: diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 434f35a..1ac017a 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -436,7 +436,7 @@ c_common_handle_option (size_t scode, const char *arg, int value, case OPT_ffreestanding: value = !value; - /* Fall through.... */ + /* Fall through. */ case OPT_fhosted: flag_hosted = value; flag_no_builtin = !value; diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index c73aa82..177a244 100644 --- a/gcc/c-family/c-pragma.c +++ b/gcc/c-family/c-pragma.c @@ -214,6 +214,7 @@ handle_pragma_pack (cpp_reader * ARG_UNUSED (dummy)) align = maximum_field_alignment; break; } + /* FALLTHRU */ default: GCC_BAD2 ("alignment must be a small power of two, not %d", align); } diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c index 6a23b0b..800cbac 100644 --- a/gcc/c-family/c-pretty-print.c +++ b/gcc/c-family/c-pretty-print.c @@ -1665,7 +1665,7 @@ c_pretty_printer::postfix_expression (tree e) id_expression (TREE_OPERAND (e, 0)); break; } - /* else fall through. */ + /* fall through. */ default: primary_expression (e); diff --git a/gcc/c-family/cilk.c b/gcc/c-family/cilk.c index 0b876b9..047a65f 100644 --- a/gcc/c-family/cilk.c +++ b/gcc/c-family/cilk.c @@ -1092,6 +1092,7 @@ extract_free_variables (tree t, struct wrapper_data *wd, case RESULT_DECL: if (wd->type != CILK_BLOCK_SPAWN) TREE_ADDRESSABLE (t) = 1; + /* FALLTHRU */ case VAR_DECL: case PARM_DECL: if (!is_global_var (t)) diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 99a2314..30d9d27 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -1548,6 +1548,7 @@ c_parser_external_declaration (c_parser *parser) } /* Else fall through, and yield a syntax error trying to parse as a declaration or function definition. */ + /* FALLTHRU */ default: decl_or_fndef: /* A declaration or a function definition (or, in Objective-C, @@ -8138,6 +8139,7 @@ c_parser_postfix_expression (c_parser *parser) break; } /* Else fall through to report error. */ + /* FALLTHRU */ default: c_parser_error (parser, "expected expression"); expr.set_error (); diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index 5793a4a..a4003cf 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -4463,7 +4463,7 @@ build_unary_op (location_t location, return error_mark_node; } - /* ... fall through ... */ + /* fall through */ case ARRAY_REF: if (TYPE_REVERSE_STORAGE_ORDER (TREE_TYPE (TREE_OPERAND (arg, 0)))) @@ -4665,10 +4665,10 @@ c_mark_addressable (tree exp) return false; } - /* drops in */ + /* FALLTHRU */ case FUNCTION_DECL: TREE_ADDRESSABLE (x) = 1; - /* drops out */ + /* FALLTHRU */ default: return true; } diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 21f21c9..20a0fc2 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -4207,7 +4207,7 @@ expand_debug_expr (tree exp) set_mem_attributes (op0, exp, 0); return op0; } - /* Fall through... */ + /* Fall through. */ case INTEGER_CST: case REAL_CST: diff --git a/gcc/combine.c b/gcc/combine.c index 75c6229..77c2c26 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -5135,7 +5135,7 @@ find_split_point (rtx *loc, rtx_insn *insn, bool set_src) split = find_split_point (&XEXP (x, 2), insn, false); if (split) return split; - /* ... fall through ... */ + /* fall through */ case RTX_BIN_ARITH: case RTX_COMM_ARITH: case RTX_COMPARE: @@ -5143,7 +5143,7 @@ find_split_point (rtx *loc, rtx_insn *insn, bool set_src) split = find_split_point (&XEXP (x, 1), insn, false); if (split) return split; - /* ... fall through ... */ + /* fall through */ case RTX_UNARY: /* Some machines have (and (shift ...) ...) insns. If X is not an AND, but XEXP (X, 0) is, use it as our split point. */ @@ -6955,6 +6955,7 @@ expand_compound_operation (rtx x) { case ZERO_EXTEND: unsignedp = 1; + /* FALLTHRU */ case SIGN_EXTEND: /* We can't necessarily use a const_int for a multiword mode; it depends on implicitly extending the value. @@ -6997,7 +6998,7 @@ expand_compound_operation (rtx x) case ZERO_EXTRACT: unsignedp = 1; - /* ... fall through ... */ + /* fall through */ case SIGN_EXTRACT: /* If the operand is a CLOBBER, just return it. */ @@ -8013,7 +8014,7 @@ make_compound_operation (rtx x, enum rtx_code in_code) break; } - /* ... fall through ... */ + /* fall through */ case ASHIFTRT: lhs = XEXP (x, 0); @@ -8240,6 +8241,7 @@ canon_reg_for_combine (rtx x, rtx reg) if (op0 != XEXP (x, 0) || op1 != XEXP (x, 1) || op2 != XEXP (x, 2)) return simplify_gen_ternary (GET_CODE (x), GET_MODE (x), GET_MODE (op0), op0, op1, op2); + /* FALLTHRU */ case RTX_OBJ: if (REG_P (x)) @@ -8506,7 +8508,7 @@ force_to_mode (rtx x, machine_mode mode, unsigned HOST_WIDE_INT mask, mode, smask, next_select); } - /* ... fall through ... */ + /* fall through */ case MULT: /* Substituting into the operands of a widening MULT is not likely to @@ -10379,7 +10381,7 @@ simplify_shift_const_1 (enum rtx_code code, machine_mode result_mode, continue; } - /* ... fall through ... */ + /* fall through */ case LSHIFTRT: case ASHIFT: @@ -11707,7 +11709,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1) continue; } - /* ... fall through ... */ + /* fall through */ case SIGN_EXTRACT: tem = expand_compound_operation (op0); diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aarch64-builtins.c index 0b80c3d..b69294f 100644 --- a/gcc/config/aarch64/aarch64-builtins.c +++ b/gcc/config/aarch64/aarch64-builtins.c @@ -1039,6 +1039,7 @@ aarch64_simd_expand_args (rtx target, int icode, int have_retval, } /* Fall through - if the lane index isn't a constant then the next case will error. */ + /* FALLTHRU */ case SIMD_ARG_CONSTANT: constant_arg: if (!(*insn_data[icode].operand[opc].predicate) diff --git a/gcc/config/aarch64/predicates.md b/gcc/config/aarch64/predicates.md index 8f2726d..ebda6d8 100644 --- a/gcc/config/aarch64/predicates.md +++ b/gcc/config/aarch64/predicates.md @@ -180,6 +180,7 @@ || GET_CODE (XEXP (op, 1)) != CONST_INT) return false; op = XEXP (op, 0); + /* FALLTHRU */ case SYMBOL_REF: return SYMBOL_REF_TLS_MODEL (op) == TLS_MODEL_INITIAL_EXEC; @@ -201,6 +202,7 @@ || GET_CODE (XEXP (op, 1)) != CONST_INT) return false; op = XEXP (op, 0); + /* FALLTHRU */ case SYMBOL_REF: return SYMBOL_REF_TLS_MODEL (op) == TLS_MODEL_LOCAL_EXEC; diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 6cb5dec..898c247 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -8735,6 +8735,7 @@ pass_in_reg: error_p = 1; if (cum->float_in_sse < 2) break; + /* FALLTHRU */ case SFmode: if (cum->float_in_sse == -1) error_p = 1; @@ -8997,6 +8998,7 @@ pass_in_reg: error_p = 1; if (cum->float_in_sse < 2) break; + /* FALLTHRU */ case SFmode: if (cum->float_in_sse == -1) error_p = 1; @@ -10392,6 +10394,7 @@ ix86_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p, container = NULL; break; } + /* FALLTHRU */ default: container = construct_container (nat_mode, TYPE_MODE (type), @@ -16609,6 +16612,7 @@ print_reg (rtx x, int code, FILE *file) case 4: if (LEGACY_INT_REGNO_P (regno)) putc (msize == 8 && TARGET_64BIT ? 'r' : 'e', file); + /* FALLTHRU */ case 16: case 12: case 2: @@ -17018,6 +17022,7 @@ ix86_print_operand (FILE *file, rtx x, int code) fputs ("eq_us", file); break; } + /* FALLTHRU */ case EQ: fputs ("eq", file); break; @@ -17027,6 +17032,7 @@ ix86_print_operand (FILE *file, rtx x, int code) fputs ("nge", file); break; } + /* FALLTHRU */ case LT: fputs ("lt", file); break; @@ -17036,6 +17042,7 @@ ix86_print_operand (FILE *file, rtx x, int code) fputs ("ngt", file); break; } + /* FALLTHRU */ case LE: fputs ("le", file); break; @@ -17048,6 +17055,7 @@ ix86_print_operand (FILE *file, rtx x, int code) fputs ("neq_oq", file); break; } + /* FALLTHRU */ case NE: fputs ("neq", file); break; @@ -17057,6 +17065,7 @@ ix86_print_operand (FILE *file, rtx x, int code) fputs ("ge", file); break; } + /* FALLTHRU */ case UNGE: fputs ("nlt", file); break; @@ -17066,6 +17075,7 @@ ix86_print_operand (FILE *file, rtx x, int code) fputs ("gt", file); break; } + /* FALLTHRU */ case UNGT: fputs ("nle", file); break; @@ -20854,6 +20864,7 @@ ix86_build_const_vector (machine_mode mode, bool vect, rtx value) case V4DImode: case V2DImode: gcc_assert (vect); + /* FALLTHRU */ case V16SFmode: case V8SFmode: case V4SFmode: @@ -21839,6 +21850,7 @@ ix86_expand_branch (enum rtx_code code, rtx op0, rtx op1, rtx label) op0 = force_reg (mode, gen_rtx_XOR (mode, op0, op1)); op1 = const0_rtx; } + /* FALLTHRU */ case TImode: /* Expand DImode branch into multiple compare+branch. */ { @@ -29131,7 +29143,7 @@ ix86_sched_init_global (FILE *, int, int) core2i7_ifetch_block_max_insns = 6; break; } - /* ... Fall through ... */ + /* Fall through. */ default: targetm.sched.dfa_post_advance_cycle = NULL; targetm.sched.first_cycle_multipass_init = NULL; @@ -39486,6 +39498,7 @@ ix86_expand_args_builtin (const struct builtin_description *d, error ("the next to last argument must be an 8-bit immediate"); break; } + /* FALLTHRU */ case 1: error ("the last argument must be an 8-bit immediate"); break; @@ -42189,6 +42202,7 @@ rdseed_step: if (!TARGET_SSE) /* Emit a normal call if SSE isn't available. */ return expand_call (exp, target, ignore); + /* FALLTHRU */ default: return ix86_expand_args_builtin (d, exp, target); } @@ -46295,6 +46309,7 @@ ix86_expand_vector_init_one_var (bool mmx_ok, machine_mode mode, /* Use ix86_expand_vector_set in 64bit mode only. */ if (!TARGET_64BIT) return false; + /* FALLTHRU */ case V4DFmode: case V8SFmode: case V8SImode: diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index b0b1b3a..cbf350b 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -22484,6 +22484,7 @@ rs6000_emit_vector_compare_inner (enum rtx_code code, rtx op0, rtx op1) case GE: if (GET_MODE_CLASS (mode) == MODE_VECTOR_INT) return NULL_RTX; + /* FALLTHRU */ case EQ: case GT: @@ -30276,6 +30277,7 @@ rs6000_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost) } } /* Fall through, no cost for output dependency. */ + /* FALLTHRU */ case REG_DEP_ANTI: /* Anti dependency; DEP_INSN reads a register that INSN writes some @@ -31422,6 +31424,7 @@ insn_must_be_first_in_group (rtx_insn *insn) case PROCESSOR_POWER5: if (is_cracked_insn (insn)) return true; + /* FALLTHRU */ case PROCESSOR_POWER4: if (is_microcoded_insn (insn)) return true; diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index a73c4a2..0a96f56 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7923,6 +7923,7 @@ case 0: if (TARGET_STRING) return \"stswi %1,%P0,16\"; + /* FALLTHRU */ case 1: return \"#\"; case 2: @@ -7931,7 +7932,7 @@ if (TARGET_STRING && ! reg_overlap_mentioned_p (operands[0], operands[1])) return \"lswi %0,%P1,16\"; - /* ... fall through ... */ + /* fall through */ case 3: case 4: case 5: diff --git a/gcc/cp/call.c b/gcc/cp/call.c index cbc3ec6..71ce008 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -2402,6 +2402,7 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code, case PREDECREMENT_EXPR: if (TREE_CODE (type1) == BOOLEAN_TYPE) return; + /* FALLTHRU */ case POSTINCREMENT_EXPR: case PREINCREMENT_EXPR: if (ARITHMETIC_TYPE_P (type1) || TYPE_PTROB_P (type1)) @@ -2438,6 +2439,7 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code, case UNARY_PLUS_EXPR: /* unary + */ if (TYPE_PTR_P (type1)) break; + /* FALLTHRU */ case NEGATE_EXPR: if (ARITHMETIC_TYPE_P (type1)) break; @@ -2575,6 +2577,7 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code, case PLUS_EXPR: if (ARITHMETIC_TYPE_P (type1) && ARITHMETIC_TYPE_P (type2)) break; + /* FALLTHRU */ case ARRAY_REF: if (INTEGRAL_OR_UNSCOPED_ENUMERATION_TYPE_P (type1) && TYPE_PTROB_P (type2)) { @@ -2655,6 +2658,7 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code, type2 = ptrdiff_type_node; break; } + /* FALLTHRU */ case MULT_EXPR: case TRUNC_DIV_EXPR: if (ARITHMETIC_TYPE_P (type1) && ARITHMETIC_TYPE_P (type2)) @@ -3941,7 +3945,7 @@ build_integral_nontype_arg_conv (tree type, tree expr, tsubst_flags_t complain) if (complain & tf_error) error_at (loc, "conversion from %qT to %qT not considered for " "non-type template argument", t, type); - /* and fall through. */ + /* fall through. */ default: conv = NULL; @@ -5436,6 +5440,7 @@ build_new_op_1 (location_t loc, enum tree_code code, int flags, tree arg1, case MODIFY_EXPR: if (code2 != NOP_EXPR) break; + /* FALLTHRU */ case COMPONENT_REF: case ARRAY_REF: memonly = true; @@ -6569,7 +6574,7 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum, if (! MAYBE_CLASS_TYPE_P (totype)) return expr; - /* Else fall through. */ + /* Fall through. */ case ck_base: if (convs->kind == ck_base && !convs->need_temporary_p) { diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 71f7eec..ae5250f 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -7562,7 +7562,7 @@ fixed_type_or_null (tree instance, int *nonnull, int *cdtorp) *nonnull = 1; return TREE_TYPE (TREE_TYPE (instance)); } - /* fall through... */ + /* fall through. */ case TARGET_EXPR: case PARM_DECL: case RESULT_DECL: diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index cff531e..dd31d56 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -5042,7 +5042,7 @@ potential_constant_expression_1 (tree t, bool want_rval, bool strict, /* A destructor. */ if (TYPE_P (TREE_OPERAND (t, 0))) return true; - /* else fall through. */ + /* fall through. */ case REALPART_EXPR: case IMAGPART_EXPR: @@ -5117,6 +5117,7 @@ potential_constant_expression_1 (tree t, bool want_rval, bool strict, } return false; } + /* FALLTHRU */ case INIT_EXPR: return RECUR (TREE_OPERAND (t, 1), rval); diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index d1b8f0b..216334a 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -630,7 +630,7 @@ cp_gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) cp_gimplify_init_expr (expr_p); if (TREE_CODE (*expr_p) != INIT_EXPR) return GS_OK; - /* Otherwise fall through. */ + /* Fall through. */ case MODIFY_EXPR: modify_expr_case: { @@ -1998,6 +1998,7 @@ cp_fold (tree x) case VIEW_CONVERT_EXPR: rval_ops = false; + /* FALLTHRU */ case CONVERT_EXPR: case NOP_EXPR: case NON_LVALUE_EXPR: @@ -2046,6 +2047,7 @@ cp_fold (tree x) case REALPART_EXPR: case IMAGPART_EXPR: rval_ops = false; + /* FALLTHRU */ case CONJ_EXPR: case FIX_TRUNC_EXPR: case FLOAT_EXPR: @@ -2098,6 +2100,7 @@ cp_fold (tree x) case COMPOUND_EXPR: case MODIFY_EXPR: rval_ops = false; + /* FALLTHRU */ case POINTER_PLUS_EXPR: case PLUS_EXPR: case MINUS_EXPR: diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 0d1048c..a0cd577 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -1548,7 +1548,7 @@ build_expr_type_conversion (int desires, tree expr, bool complain) case INTEGER_TYPE: if ((desires & WANT_NULL) && null_ptr_cst_p (expr)) return expr; - /* else fall through... */ + /* fall through. */ case BOOLEAN_TYPE: return (desires & WANT_INT) ? expr : NULL_TREE; diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index cd5d606..f06fc84 100644 --- a/gcc/cp/cxx-pretty-print.c +++ b/gcc/cp/cxx-pretty-print.c @@ -153,6 +153,7 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t) case USING_DECL: case TEMPLATE_DECL: t = DECL_NAME (t); + /* FALLTHRU */ case IDENTIFIER_NODE: if (t == NULL) @@ -280,6 +281,7 @@ pp_cxx_qualified_id (cxx_pretty_printer *pp, tree t) functions and some function templates. */ case OVERLOAD: t = OVL_CURRENT (t); + /* FALLTHRU */ case FUNCTION_DECL: if (DECL_FUNCTION_MEMBER_P (t)) pp_cxx_nested_name_specifier (pp, DECL_CONTEXT (t)); @@ -331,7 +333,7 @@ cxx_pretty_printer::constant (tree t) pp_string (this, "nullptr"); break; } - /* else fall through. */ + /* fall through. */ default: c_pretty_printer::constant (t); @@ -417,6 +419,7 @@ cxx_pretty_printer::primary_expression (tree t) case BASELINK: t = BASELINK_FUNCTIONS (t); + /* FALLTHRU */ case VAR_DECL: case PARM_DECL: case FIELD_DECL: @@ -873,7 +876,7 @@ pp_cxx_pm_expression (cxx_pretty_printer *pp, tree t) pp_cxx_qualified_id (pp, t); break; } - /* Else fall through. */ + /* Fall through. */ case MEMBER_REF: case DOTSTAR_EXPR: pp_cxx_pm_expression (pp, TREE_OPERAND (t, 0)); @@ -1058,6 +1061,7 @@ cxx_pretty_printer::expression (tree t) case OVERLOAD: t = OVL_CURRENT (t); + /* FALLTHRU */ case VAR_DECL: case PARM_DECL: case FIELD_DECL: @@ -1268,7 +1272,9 @@ cxx_pretty_printer::declaration_specifiers (tree t) else if (DECL_NONSTATIC_MEMBER_FUNCTION_P (t)) declaration_specifiers (TREE_TYPE (TREE_TYPE (t))); else - default: + c_pretty_printer::declaration_specifiers (t); + break; + default: c_pretty_printer::declaration_specifiers (t); break; } @@ -1365,7 +1371,7 @@ pp_cxx_type_specifier_seq (cxx_pretty_printer *pp, tree t) pp_cxx_ptr_operator (pp, t); break; } - /* else fall through */ + /* fall through */ default: if (!(TREE_CODE (t) == FUNCTION_DECL && DECL_CONSTRUCTOR_P (t))) @@ -1407,6 +1413,7 @@ pp_cxx_ptr_operator (cxx_pretty_printer *pp, tree t) pp_star (pp); break; } + /* FALLTHRU */ case OFFSET_TYPE: if (TYPE_PTRMEM_P (t)) { @@ -1417,7 +1424,7 @@ pp_cxx_ptr_operator (cxx_pretty_printer *pp, tree t) pp_cxx_cv_qualifier_seq (pp, t); break; } - /* else fall through. */ + /* fall through. */ default: pp_unsupported_tree (pp, t); diff --git a/gcc/cp/error.c b/gcc/cp/error.c index a852e71..b8fced2 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -450,7 +450,7 @@ dump_type (cxx_pretty_printer *pp, tree t, int flags) ? DECL_ORIGINAL_TYPE (t) : TREE_TYPE (t), flags); break; } - /* Else fall through. */ + /* Fall through. */ case TEMPLATE_DECL: case NAMESPACE_DECL: @@ -1064,7 +1064,7 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags) dump_type (pp, DECL_CONTEXT (t), flags); break; } - /* Else fall through. */ + /* Fall through. */ case FIELD_DECL: case PARM_DECL: dump_simple_decl (pp, t, TREE_TYPE (t), flags); diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 23fd4ef..f1ba032 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -2051,7 +2051,7 @@ write_type (tree type) ++is_builtin_type; break; } - /* else fall through. */ + /* fall through. */ case TEMPLATE_PARM_INDEX: write_template_param (type); break; diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 547e672..2fd6cb1 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1406,6 +1406,7 @@ synthesized_method_walk (tree ctype, special_function_kind sfk, bool const_p, case sfk_move_constructor: case sfk_move_assignment: move_p = true; + /* FALLTHRU */ case sfk_copy_constructor: case sfk_copy_assignment: copy_arg_p = true; diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index a4a8af2..5e18a72 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -5557,6 +5557,7 @@ arg_assoc_type (struct arg_lookup *k, tree type) case RECORD_TYPE: if (TYPE_PTRMEMFUNC_P (type)) return arg_assoc_type (k, TYPE_PTRMEMFUNC_FN_TYPE (type)); + /* FALLTHRU */ case UNION_TYPE: return arg_assoc_class (k, type); case POINTER_TYPE: diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index c163dba..6ba9c11 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -1259,7 +1259,7 @@ cp_lexer_print_token (FILE * stream, cp_token *token) For example, `struct' is mapped to an INTEGER_CST. */ if (!identifier_p (token->u.value)) break; - /* else fall through */ + /* fall through */ case CPP_NAME: fputs (IDENTIFIER_POINTER (token->u.value), stream); break; @@ -5117,6 +5117,7 @@ cp_parser_primary_expression (cp_parser *parser, cp_parser_skip_to_end_of_block_or_statement (parser); return error_mark_node; } + /* FALLTHRU */ default: cp_parser_error (parser, "expected primary-expression"); return error_mark_node; @@ -14028,6 +14029,7 @@ cp_parser_operator (cp_parser* parser) case CPP_UTF8STRING: case CPP_UTF8STRING_USERDEF: utf8 = true; + /* FALLTHRU */ case CPP_STRING: case CPP_WSTRING: case CPP_STRING16: diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e6ea2e8..9f595bb 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -3452,6 +3452,7 @@ find_parameter_packs_r (tree *tp, int *walk_subtrees, void* data) case TEMPLATE_TYPE_PARM: t = TYPE_MAIN_VARIANT (t); + /* FALLTHRU */ case TEMPLATE_TEMPLATE_PARM: /* If the placeholder appears in the decl-specifier-seq of a function parameter pack (14.6.3), or the type-specifier-seq of a type-id that @@ -11427,7 +11428,7 @@ tsubst_aggr_type (tree t, if (TYPE_PTRMEMFUNC_P (t)) return tsubst (TYPE_PTRMEMFUNC_FN_TYPE (t), args, complain, in_decl); - /* Else fall through. */ + /* Fall through. */ case ENUMERAL_TYPE: case UNION_TYPE: if (TYPE_TEMPLATE_INFO (t) && uses_template_parms (t)) diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index a44b820..2cb8d29 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -6174,11 +6174,13 @@ finish_omp_clauses (tree clauses, bool allow_fields, bool declare_simd) OMP_CLAUSE_OPERAND (c, 1) = t; } /* Check operand 0, the num argument. */ + /* FALLTHRU */ case OMP_CLAUSE_WORKER: case OMP_CLAUSE_VECTOR: if (OMP_CLAUSE_OPERAND (c, 0) == NULL_TREE) break; + /* FALLTHRU */ case OMP_CLAUSE_NUM_TASKS: case OMP_CLAUSE_NUM_TEAMS: diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 807ed82..88d8f5e 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -142,11 +142,13 @@ lvalue_kind (const_tree ref) lvalues. */ if (! TREE_STATIC (ref)) return clk_none; + /* FALLTHRU */ case VAR_DECL: if (TREE_READONLY (ref) && ! TREE_STATIC (ref) && DECL_LANG_SPECIFIC (ref) && DECL_IN_AGGR_P (ref)) return clk_none; + /* FALLTHRU */ case INDIRECT_REF: case ARROW_EXPR: case ARRAY_REF: diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 25a03ef..510b2c7 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2867,7 +2867,7 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED) disguised VAR_DECLs like Out parameters in Ada. */ gcc_assert (TREE_CODE (decl) == VAR_DECL); - /* ... fall through ... */ + /* fall through */ case RESULT_DECL: case VAR_DECL: diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 98de844..621d78f 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -2875,7 +2875,7 @@ df_uses_record (struct df_collection_rec *collection_rec, df_uses_record (collection_rec, loc, ref_type, bb, insn_info, flags); return; } - /* ... Fall through ... */ + /* Fall through */ case REG: df_ref_record (DF_REF_REGULAR, collection_rec, diff --git a/gcc/dojump.c b/gcc/dojump.c index 6e0c01c..3a4f0e2 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -461,12 +461,14 @@ do_jump (tree exp, rtx_code_label *if_false_label, || TREE_CODE (TREE_OPERAND (exp, 0)) == ARRAY_REF || TREE_CODE (TREE_OPERAND (exp, 0)) == ARRAY_RANGE_REF) goto normal; + /* FALLTHRU */ case CONVERT_EXPR: /* If we are narrowing the operand, we have to do the compare in the narrower mode. */ if ((TYPE_PRECISION (TREE_TYPE (exp)) < TYPE_PRECISION (TREE_TYPE (TREE_OPERAND (exp, 0))))) goto normal; + /* FALLTHRU */ case NON_LVALUE_EXPR: case ABS_EXPR: case NEGATE_EXPR: @@ -610,6 +612,7 @@ do_jump (tree exp, rtx_code_label *if_false_label, goto normal; /* Boolean comparisons can be compiled as TRUTH_AND_EXPR. */ + /* FALLTHRU */ case TRUTH_AND_EXPR: /* High branch cost, expand as the bitwise AND of the conditions. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 995ae7f..d66abf6 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13342,6 +13342,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode, if (!subreg_lowpart_p (rtl)) break; inner = SUBREG_REG (rtl); + /* FALLTHRU */ case TRUNCATE: if (inner == NULL_RTX) inner = XEXP (rtl, 0); @@ -13682,7 +13683,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode, : -GET_MODE_UNIT_SIZE (mem_mode), mode)); - /* ... fall through ... */ + /* fall through */ case PLUS: plus: @@ -15608,7 +15609,7 @@ resolve_args_picking_1 (dw_loc_descr_ref loc, unsigned initial_frame_offset, if (!resolve_args_picking_1 (l->dw_loc_next, frame_offset_, dpi, visited)) return false; - /* Fall through... */ + /* Fall through. */ case DW_OP_skip: l = l->dw_loc_oprnd1.v.val_loc; @@ -16358,7 +16359,7 @@ loc_list_from_tree_1 (tree loc, int want_address, TREE_OPERAND (loc, 1), TREE_OPERAND (loc, 0)); } - /* ... fall through ... */ + /* fall through */ case COND_EXPR: { diff --git a/gcc/expmed.c b/gcc/expmed.c index 3f95a70..13fad52 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -5220,7 +5220,7 @@ make_tree (tree type, rtx x) t = SYMBOL_REF_DECL (x); if (t) return fold_convert (type, build_fold_addr_expr (t)); - /* else fall through. */ + /* fall through. */ default: t = build_decl (RTL_LOCATION (x), VAR_DECL, NULL_TREE, type); diff --git a/gcc/expr.c b/gcc/expr.c index b25ba3a..6342c0a 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -8272,6 +8272,7 @@ expand_expr_real_2 (sepops ops, rtx target, machine_mode tmode, offset to have matching modes. */ else if (TYPE_PRECISION (sizetype) > TYPE_PRECISION (type)) treeop1 = fold_convert_loc (loc, type, treeop1); + /* FALLTHRU */ case PLUS_EXPR: /* If we are adding a constant, a VAR_DECL that is sp, fp, or ap, and @@ -9437,9 +9438,9 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode, switch (TREE_CODE_LENGTH (code)) { default: - case 3: treeop2 = TREE_OPERAND (exp, 2); - case 2: treeop1 = TREE_OPERAND (exp, 1); - case 1: treeop0 = TREE_OPERAND (exp, 0); + case 3: treeop2 = TREE_OPERAND (exp, 2); /* FALLTHRU */ + case 2: treeop1 = TREE_OPERAND (exp, 1); /* FALLTHRU */ + case 1: treeop0 = TREE_OPERAND (exp, 0); /* FALLTHRU */ case 0: break; } ops.code = code; @@ -9611,7 +9612,7 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode, && (TREE_STATIC (exp) || DECL_EXTERNAL (exp))) layout_decl (exp, 0); - /* ... fall through ... */ + /* fall through */ case FUNCTION_DECL: case RESULT_DECL: @@ -9820,7 +9821,7 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode, return original_target; } - /* ... fall through ... */ + /* fall through */ case STRING_CST: temp = expand_expr_constant (exp, 1, modifier); diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 23ee11f..28292a1 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1305,7 +1305,7 @@ const_binop (enum tree_code code, tree arg1, tree arg2) return do_mpc_arg2 (arg1, arg2, type, /* do_nonfinite= */ folding_initializer, mpc_div); - /* Fallthru ... */ + /* Fallthru. */ case TRUNC_DIV_EXPR: case CEIL_DIV_EXPR: case FLOOR_DIV_EXPR: @@ -3682,7 +3682,7 @@ fold_truth_not_expr (location_t loc, tree arg) if (TREE_CODE (TREE_TYPE (arg)) == BOOLEAN_TYPE) return build1_loc (loc, TRUTH_NOT_EXPR, type, arg); - /* ... fall through ... */ + /* fall through */ case FLOAT_EXPR: loc1 = expr_location_or (TREE_OPERAND (arg, 0), loc); @@ -5077,6 +5077,7 @@ fold_cond_expr_with_comparison (location_t loc, tree type, case UNLT_EXPR: if (flag_trapping_math) break; + /* FALLTHRU */ case LE_EXPR: case LT_EXPR: if (TYPE_UNSIGNED (TREE_TYPE (arg1))) @@ -10577,6 +10578,7 @@ fold_binary_loc (location_t loc, /* If first arg is constant zero, return it. */ if (integer_zerop (arg0)) return fold_convert_loc (loc, type, arg0); + /* FALLTHRU */ case TRUTH_AND_EXPR: /* If either arg is constant true, drop it. */ if (TREE_CODE (arg0) == INTEGER_CST && ! integer_zerop (arg0)) @@ -10632,6 +10634,7 @@ fold_binary_loc (location_t loc, /* If first arg is constant true, return it. */ if (TREE_CODE (arg0) == INTEGER_CST && ! integer_zerop (arg0)) return fold_convert_loc (loc, type, arg0); + /* FALLTHRU */ case TRUTH_OR_EXPR: /* If either arg is constant zero, drop it. */ if (TREE_CODE (arg0) == INTEGER_CST && integer_zerop (arg0)) @@ -11476,7 +11479,7 @@ contains_label_1 (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) case GOTO_EXPR: *walk_subtrees = 0; - /* ... fall through ... */ + /* fall through */ default: return NULL_TREE; @@ -12859,7 +12862,7 @@ multiple_of_p (tree type, const_tree top, const_tree bottom) < TYPE_PRECISION (TREE_TYPE (TREE_OPERAND (top, 0))))) return 0; - /* .. fall through ... */ + /* fall through */ case SAVE_EXPR: return multiple_of_p (type, TREE_OPERAND (top, 0), bottom); diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 37ba82b..c9abdcc 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -3929,6 +3929,7 @@ match_attr_spec (void) d = DECL_CODIMENSION; break; } + /* FALLTHRU */ case 'n': if (match_string_p ("tiguous")) { diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index 009ae99..b796810 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/primary.c @@ -1690,18 +1690,21 @@ match_arg_list_function (gfc_actual_arglist *result) result->name = "%LOC"; break; } + /* FALLTHRU */ case 'r': if (strncmp (name, "ref", 3) == 0) { result->name = "%REF"; break; } + /* FALLTHRU */ case 'v': if (strncmp (name, "val", 3) == 0) { result->name = "%VAL"; break; } + /* FALLTHRU */ default: m = MATCH_ERROR; goto cleanup; diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 7cf2ca2..6b21c1c 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -3535,7 +3535,7 @@ resolve_operator (gfc_expr *e) if (!gfc_resolve_expr (e->value.op.op2)) return false; - /* Fall through... */ + /* Fall through. */ case INTRINSIC_NOT: case INTRINSIC_UPLUS: @@ -3653,7 +3653,7 @@ resolve_operator (gfc_expr *e) goto bad_op; } - /* Fall through... */ + /* Fall through. */ case INTRINSIC_EQ: case INTRINSIC_EQ_OS: @@ -5417,14 +5417,17 @@ fixup_charlen (gfc_expr *e) { case EXPR_OP: gfc_resolve_character_operator (e); + /* FALLTHRU */ case EXPR_ARRAY: if (e->expr_type == EXPR_ARRAY) gfc_resolve_character_array_constructor (e); + /* FALLTHRU */ case EXPR_SUBSTRING: if (!e->ts.u.cl && e->ref) gfc_resolve_substring_charlen (e); + /* FALLTHRU */ default: if (!e->ts.u.cl) @@ -7276,7 +7279,7 @@ resolve_allocate_expr (gfc_expr *e, gfc_code *code, bool *array_alloc_wo_spec) && ar->stride[i] == NULL) break; - /* Fall Through... */ + /* Fall through. */ case DIMEN_UNKNOWN: case DIMEN_VECTOR: diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 0882a3a..08c3233 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -4031,6 +4031,7 @@ done: continue; } + /* FALLTHRU */ case GFC_SS_CONSTRUCTOR: case GFC_SS_FUNCTION: for (n = 0; n < ss->dimen; n++) diff --git a/gcc/fortran/trans-intrinsic.c b/gcc/fortran/trans-intrinsic.c index fea26d1..7fbe101 100644 --- a/gcc/fortran/trans-intrinsic.c +++ b/gcc/fortran/trans-intrinsic.c @@ -5299,7 +5299,7 @@ gfc_conv_intrinsic_len (gfc_se * se, gfc_expr * expr) break; } - /* Otherwise fall through. */ + /* Fall through. */ default: /* Anybody stupid enough to do this deserves inefficient code. */ diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c index f628b60..4cb071f 100644 --- a/gcc/gcov-tool.c +++ b/gcc/gcov-tool.c @@ -553,9 +553,11 @@ process_args (int argc, char **argv) case 'h': print_usage (false); /* Print_usage will exit. */ + /* FALLTHRU */ case 'v': print_version (); /* Print_version will exit. */ + /* FALLTHRU */ default: print_usage (true); /* Print_usage will exit. */ diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index b64d8b9..1d4965e 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -888,6 +888,7 @@ check_attr_test (file_location loc, rtx exp, attr_desc *attr) ATTR_IND_SIMPLIFIED_P (exp) = 1; break; } + /* FALLTHRU */ default: fatal_at (loc, "invalid operator `%s' in definition of attribute" " `%s'", GET_RTX_NAME (GET_CODE (exp)), attr->name); @@ -3455,6 +3456,7 @@ write_test_expr (FILE *outf, rtx exp, unsigned int attrs_cached, int flags) case GE: case GT: case LE: case LT: comparison_operator = FLG_BITWISE; + /* FALLTHRU */ case PLUS: case MINUS: case MULT: case DIV: case MOD: case AND: case IOR: case XOR: diff --git a/gcc/genconfig.c b/gcc/genconfig.c index b6ca35a..2237e1f 100644 --- a/gcc/genconfig.c +++ b/gcc/genconfig.c @@ -83,6 +83,7 @@ walk_insn_part (rtx part, int recog_p, int non_pc_set_src) case MATCH_OP_DUP: case MATCH_PAR_DUP: ++dup_operands_seen_this_insn; + /* FALLTHRU */ case MATCH_SCRATCH: case MATCH_PARALLEL: case MATCH_OPERATOR: diff --git a/gcc/genpreds.c b/gcc/genpreds.c index ac09245..60b12bd 100644 --- a/gcc/genpreds.c +++ b/gcc/genpreds.c @@ -51,12 +51,12 @@ validate_exp (rtx exp, const char *name, file_location loc) case IF_THEN_ELSE: if (validate_exp (XEXP (exp, 2), name, loc)) return true; - /* else fall through */ + /* fall through */ case AND: case IOR: if (validate_exp (XEXP (exp, 1), name, loc)) return true; - /* else fall through */ + /* fall through */ case NOT: return validate_exp (XEXP (exp, 0), name, loc); @@ -174,12 +174,12 @@ needs_variable (rtx exp, const char *var) case IF_THEN_ELSE: if (needs_variable (XEXP (exp, 2), var)) return true; - /* else fall through */ + /* fall through */ case AND: case IOR: if (needs_variable (XEXP (exp, 1), var)) return true; - /* else fall through */ + /* fall through */ case NOT: return needs_variable (XEXP (exp, 0), var); diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 8c5a1ab..d8ce711 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -1038,6 +1038,7 @@ get_alternatives_number (rtx pattern, int *n_alt, file_location loc) case 'V': if (XVEC (pattern, i) == NULL) break; + /* FALLTHRU */ case 'E': for (j = XVECLEN (pattern, i) - 1; j >= 0; --j) @@ -2156,6 +2157,7 @@ subst_dup (rtx pattern, int n_alt, int n_subst_alt) case 'V': if (XVEC (pattern, i) == NULL) break; + /* FALLTHRU */ case 'E': if (code != MATCH_DUP && code != MATCH_OP_DUP) for (j = XVECLEN (pattern, i) - 1; j >= 0; --j) diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index e27214f..0353829 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -499,8 +499,10 @@ dump_gimple_assign (pretty_printer *buffer, gassign *gs, int spc, int flags) { case 4: arg3 = gimple_assign_rhs3 (gs); + /* FALLTHRU */ case 3: arg2 = gimple_assign_rhs2 (gs); + /* FALLTHRU */ case 2: arg1 = gimple_assign_rhs1 (gs); break; diff --git a/gcc/gimplify.c b/gcc/gimplify.c index a66b846..e183574 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -5155,7 +5155,7 @@ gimplify_addr_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) if (integer_zerop (TREE_OPERAND (op0, 1))) goto do_indirect_ref; - /* ... fall through ... */ + /* fall through */ default: /* If we see a call to a declared builtin or see its address @@ -9962,6 +9962,7 @@ goa_stabilize_expr (tree *expr_p, gimple_seq *pre_p, tree lhs_addr, case tcc_comparison: saw_lhs |= goa_stabilize_expr (&TREE_OPERAND (expr, 1), pre_p, lhs_addr, lhs_var); + /* FALLTHRU */ case tcc_unary: saw_lhs |= goa_stabilize_expr (&TREE_OPERAND (expr, 0), pre_p, lhs_addr, lhs_var); @@ -9976,6 +9977,7 @@ goa_stabilize_expr (tree *expr_p, gimple_seq *pre_p, tree lhs_addr, case TRUTH_XOR_EXPR: saw_lhs |= goa_stabilize_expr (&TREE_OPERAND (expr, 1), pre_p, lhs_addr, lhs_var); + /* FALLTHRU */ case TRUTH_NOT_EXPR: saw_lhs |= goa_stabilize_expr (&TREE_OPERAND (expr, 0), pre_p, lhs_addr, lhs_var); diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c index fba6cfb..a2f5c7b 100644 --- a/gcc/graphite-isl-ast-to-gimple.c +++ b/gcc/graphite-isl-ast-to-gimple.c @@ -1484,7 +1484,7 @@ substitute_ssa_name (tree exp, tree f, tree r) if (exp == f) return r; - /* Fall through... */ + /* Fall through. */ case tcc_exceptional: case tcc_unary: diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c index cf7d434..0e840b4 100644 --- a/gcc/hsa-gen.c +++ b/gcc/hsa-gen.c @@ -4519,7 +4519,7 @@ get_address_from_value (tree val, hsa_bb *hbb) case INTEGER_CST: if (tree_fits_shwi_p (val)) return new hsa_op_address (NULL, NULL, tree_to_shwi (val)); - /* Otherwise fall-through */ + /* fall-through */ default: HSA_SORRY_ATV (EXPR_LOCATION (val), diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index d143141..e05e181 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1634,7 +1634,7 @@ sem_function::hash_stmt (gimple *stmt, inchash::hash &hstate) add_type (TREE_TYPE (gimple_assign_lhs (stmt)), two); break; } - /* ... fall through ... */ + /* fall through */ case GIMPLE_CALL: case GIMPLE_ASM: case GIMPLE_COND: diff --git a/gcc/ira.c b/gcc/ira.c index 8ac153b..a0424b8 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -1832,6 +1832,7 @@ ira_setup_alts (rtx_insn *insn, HARD_REG_SET &alts) case '#': case ',': c = '\0'; + /* FALLTHRU */ case '\0': len = 0; break; diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 2b856e5..ca58d28 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -191,7 +191,7 @@ java_truthvalue_conversion (tree expr) if (TYPE_PRECISION (TREE_TYPE (expr)) >= TYPE_PRECISION (TREE_TYPE (TREE_OPERAND (expr, 0)))) return java_truthvalue_conversion (TREE_OPERAND (expr, 0)); - /* fall through to default */ + /* fall through */ default: return fold_build2 (NE_EXPR, boolean_type_node, diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index a560db7..cc8616b 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -471,7 +471,7 @@ verify_constant_pool (JCF *jcf) if (n <= 0 || n >= JPOOL_SIZE(jcf) || JPOOL_TAG (jcf, n) != CONSTANT_Utf8) return i; - /* ... fall through ... */ + /* fall through */ case CONSTANT_Class: case CONSTANT_String: n = JPOOL_USHORT1 (jcf, i); diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c index d2e3db6..61394a9 100644 --- a/gcc/java/typeck.c +++ b/gcc/java/typeck.c @@ -341,7 +341,7 @@ promote_type (tree type) return promoted_byte_type_node; return int_type_node; } - /* ... else fall through ... */ + /* fall through */ default: return type; } diff --git a/gcc/lra-eliminations.c b/gcc/lra-eliminations.c index 9ae5cfe..08cc390 100644 --- a/gcc/lra-eliminations.c +++ b/gcc/lra-eliminations.c @@ -484,7 +484,7 @@ lra_eliminate_regs_1 (rtx_insn *insn, rtx x, machine_mode mem_mode, return gen_rtx_MULT (Pmode, to, XEXP (x, 1)); } - /* ... fall through ... */ + /* fall through */ case CALL: case COMPARE: @@ -536,7 +536,7 @@ lra_eliminate_regs_1 (rtx_insn *insn, rtx x, machine_mode mem_mode, } } - /* ... fall through ... */ + /* fall through */ case INSN_LIST: case INT_LIST: diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 6703d41..89184b8 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -231,6 +231,7 @@ lto_output_tree_ref (struct output_block *ob, tree expr) case VAR_DECL: case DEBUG_EXPR_DECL: gcc_assert (decl_function_context (expr) == NULL || TREE_STATIC (expr)); + /* FALLTHRU */ case PARM_DECL: streamer_write_record_start (ob, LTO_global_decl_ref); lto_output_var_decl_index (ob->decl_state, ob->main_stream, expr); diff --git a/gcc/objc/objc-encoding.c b/gcc/objc/objc-encoding.c index 41ac6a4..0a5f02a 100644 --- a/gcc/objc/objc-encoding.c +++ b/gcc/objc/objc-encoding.c @@ -622,6 +622,7 @@ encode_type (tree type, int curtype, int format) } /* Else, they are encoded exactly like the integer type that is used by the compiler to store them. */ + /* FALLTHRU */ case INTEGER_TYPE: { char c; diff --git a/gcc/opts.c b/gcc/opts.c index c36db60..a7ad5ed 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1972,6 +1972,7 @@ common_handle_option (struct gcc_options *opts, opts->x_flag_profile_use = true; value = true; /* No break here - do -fprofile-use processing. */ + /* FALLTHRU */ case OPT_fprofile_use: enable_fdo_optimizations (opts, opts_set, value); if (!opts_set->x_flag_profile_reorder_functions) @@ -1988,6 +1989,7 @@ common_handle_option (struct gcc_options *opts, opts->x_flag_auto_profile = true; value = true; /* No break here - do -fauto-profile processing. */ + /* FALLTHRU */ case OPT_fauto_profile: enable_fdo_optimizations (opts, opts_set, value); if (!opts_set->x_flag_profile_correction) @@ -2001,6 +2003,7 @@ common_handle_option (struct gcc_options *opts, opts->x_profile_data_prefix = xstrdup (arg); value = true; /* No break here - do -fprofile-generate processing. */ + /* FALLTHRU */ case OPT_fprofile_generate: if (!opts_set->x_profile_arc_flag) opts->x_profile_arc_flag = value; diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index 79f42bf..7f49a5f 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -1173,6 +1173,7 @@ read_rtx_code (const char *code_name) break; } /* Now process the vector. */ + /* FALLTHRU */ case 'E': { diff --git a/gcc/real.c b/gcc/real.c index fbebbf0..abe9306 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2667,6 +2667,7 @@ round_for_format (const struct real_format *fmt, REAL_VALUE_TYPE *r) { underflow: get_zero (r, r->sign); + /* FALLTHRU */ case rvc_zero: if (!fmt->has_signed_zero) r->sign = 0; diff --git a/gcc/recog.c b/gcc/recog.c index 92b2aa3..e62362a 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1771,6 +1771,7 @@ asm_operand_ok (rtx op, const char *constraint, const char **constraints) Match any memory and hope things are resolved after reload. */ incdec_ok = true; + /* FALLTHRU */ default: cn = lookup_constraint (constraint); switch (get_constraint_type (cn)) diff --git a/gcc/reginfo.c b/gcc/reginfo.c index ccf53bf..122d21c 100644 --- a/gcc/reginfo.c +++ b/gcc/reginfo.c @@ -1148,7 +1148,7 @@ reg_scan_mark_refs (rtx x, rtx_insn *insn) if (REG_P (dest) && !REG_ATTRS (dest)) set_reg_attrs_from_value (dest, SET_SRC (x)); - /* ... fall through ... */ + /* fall through */ default: { diff --git a/gcc/reload1.c b/gcc/reload1.c index c2800f8..5a1a4d4 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -2331,7 +2331,7 @@ set_label_offsets (rtx x, rtx_insn *insn, int initial_p) x = LABEL_REF_LABEL (x); - /* ... fall through ... */ + /* fall through */ case CODE_LABEL: /* If we know nothing about this label, set the desired offsets. Note @@ -2378,7 +2378,7 @@ set_label_offsets (rtx x, rtx_insn *insn, int initial_p) case JUMP_INSN: set_label_offsets (PATTERN (insn), insn, initial_p); - /* ... fall through ... */ + /* fall through */ case INSN: case CALL_INSN: @@ -2693,7 +2693,7 @@ eliminate_regs_1 (rtx x, machine_mode mem_mode, rtx insn, ep->previous_offset * INTVAL (XEXP (x, 1))); } - /* ... fall through ... */ + /* fall through */ case CALL: case COMPARE: @@ -2740,7 +2740,7 @@ eliminate_regs_1 (rtx x, machine_mode mem_mode, rtx insn, } } - /* ... fall through ... */ + /* fall through */ case INSN_LIST: case INT_LIST: @@ -5499,7 +5499,7 @@ reload_reg_reaches_end_p (unsigned int regno, int reloadnum) opnum = reload_n_operands; - /* ... fall through ... */ + /* fall through */ case RELOAD_FOR_OUTPUT: case RELOAD_FOR_OUTPUT_ADDRESS: diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 902b687..376691b 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3427,6 +3427,7 @@ commutative_operand_precedence (rtx op) /* Then prefer NEG and NOT. */ if (code == NEG || code == NOT) return 1; + /* FALLTHRU */ default: return 0; @@ -4101,7 +4102,7 @@ rtx_cost (rtx x, machine_mode mode, enum rtx_code outer_code, factor = GET_MODE_SIZE (mode) / UNITS_PER_WORD; if (factor == 0) factor = 1; - /* Pass through. */ + /* FALLTHRU */ default: total = factor * COSTS_N_INSNS (1); } diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index fa662ff..af43b26 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -2052,6 +2052,7 @@ is_exception_free (rtx_insn *insn, int bb_src, int bb_trg) if (is_pfree (insn, bb_src, bb_trg)) return 1; /* Don't 'break' here: PFREE-candidate is also PRISKY-candidate. */ + /* FALLTHRU */ case PRISKY_CANDIDATE: if (!flag_schedule_speculative_load_dangerous || is_prisky (insn, bb_src, bb_trg)) diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index e0f0264..ed1bb7b 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -6256,7 +6256,7 @@ simplify_rtx (const_rtx x) if (swap_commutative_operands_p (XEXP (x, 0), XEXP (x, 1))) return simplify_gen_binary (code, mode, XEXP (x, 1), XEXP (x, 0)); - /* Fall through.... */ + /* Fall through. */ case RTX_BIN_ARITH: return simplify_binary_operation (code, mode, XEXP (x, 0), XEXP (x, 1)); diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 8629984..821dd29 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -398,7 +398,7 @@ int_mode_for_mode (machine_mode mode) if (mode == BLKmode) break; - /* ... fall through ... */ + /* fall through */ case MODE_CC: default: diff --git a/gcc/toplev.c b/gcc/toplev.c index 827840b..39692c4 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -741,7 +741,7 @@ print_to_asm_out_file (print_switch_type type, const char * text) case SWITCH_TYPE_DESCRIPTIVE: if (ASM_COMMENT_START[0] == 0) prepend_sep = false; - /* Drop through. */ + /* FALLTHRU */ case SWITCH_TYPE_PASSED: case SWITCH_TYPE_ENABLED: if (prepend_sep) @@ -771,7 +771,7 @@ print_to_stderr (print_switch_type type, const char * text) case SWITCH_TYPE_PASSED: case SWITCH_TYPE_ENABLED: fputc (' ', stderr); - /* Drop through. */ + /* FALLTHRU */ case SWITCH_TYPE_DESCRIPTIVE: fputs (text, stderr); diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 483fbd9..3a736b9 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -5325,7 +5325,7 @@ gimple_verify_flow_info (void) case GIMPLE_CALL: if (!gimple_call_builtin_p (stmt, BUILT_IN_RETURN)) break; - /* ... fallthru ... */ + /* fallthru */ case GIMPLE_RETURN: if (!single_succ_p (bb) || (single_succ_edge (bb)->flags diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index 007243d..e74f96f 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -287,6 +287,7 @@ chrec_fold_plus_1 (enum tree_code code, tree type, CASE_CONVERT: if (tree_contains_chrecs (op1, NULL)) return chrec_dont_know; + /* FALLTHRU */ default: if (code == PLUS_EXPR || code == POINTER_PLUS_EXPR) @@ -304,6 +305,7 @@ chrec_fold_plus_1 (enum tree_code code, tree type, CASE_CONVERT: if (tree_contains_chrecs (op0, NULL)) return chrec_dont_know; + /* FALLTHRU */ default: switch (TREE_CODE (op1)) @@ -329,6 +331,7 @@ chrec_fold_plus_1 (enum tree_code code, tree type, CASE_CONVERT: if (tree_contains_chrecs (op1, NULL)) return chrec_dont_know; + /* FALLTHRU */ default: { @@ -423,6 +426,7 @@ chrec_fold_multiply (tree type, CASE_CONVERT: if (tree_contains_chrecs (op1, NULL)) return chrec_dont_know; + /* FALLTHRU */ default: if (integer_onep (op1)) @@ -439,6 +443,7 @@ chrec_fold_multiply (tree type, CASE_CONVERT: if (tree_contains_chrecs (op0, NULL)) return chrec_dont_know; + /* FALLTHRU */ default: if (integer_onep (op0)) @@ -461,6 +466,7 @@ chrec_fold_multiply (tree type, CASE_CONVERT: if (tree_contains_chrecs (op1, NULL)) return chrec_dont_know; + /* FALLTHRU */ default: if (integer_onep (op1)) @@ -1028,6 +1034,7 @@ evolution_function_is_invariant_rec_p (tree chrec, int loopnum) if (!evolution_function_is_invariant_rec_p (TREE_OPERAND (chrec, 1), loopnum)) return false; + /* FALLTHRU */ case 1: if (!evolution_function_is_invariant_rec_p (TREE_OPERAND (chrec, 0), @@ -1529,12 +1536,15 @@ for_each_scev_op (tree *scev, bool (*cbck) (tree *, void *), void *data) { case 3: for_each_scev_op (&TREE_OPERAND (*scev, 2), cbck, data); + /* FALLTHRU */ case 2: for_each_scev_op (&TREE_OPERAND (*scev, 1), cbck, data); + /* FALLTHRU */ case 1: for_each_scev_op (&TREE_OPERAND (*scev, 0), cbck, data); + /* FALLTHRU */ default: cbck (scev, data); diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 0bb01f1..db95bdd 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -1680,6 +1680,7 @@ siv_subscript_p (const_tree chrec_a, const_tree chrec_b) case POLYNOMIAL_CHREC: if (CHREC_VARIABLE (chrec_a) != CHREC_VARIABLE (chrec_b)) return false; + /* FALLTHRU */ default: return true; @@ -3882,6 +3883,7 @@ get_references_in_stmt (gimple *stmt, vec *references) if (gimple_call_lhs (stmt) == NULL_TREE) break; ref.is_read = true; + /* FALLTHRU */ case IFN_MASK_STORE: ptr = build_int_cst (TREE_TYPE (gimple_call_arg (stmt, 1)), 0); align = tree_to_shwi (gimple_call_arg (stmt, 1)); diff --git a/gcc/tree.c b/gcc/tree.c index e0a48cc..33f22ab 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3730,7 +3730,7 @@ find_placeholder_in_expr (tree exp, vec *refs) break; } - /* Fall through... */ + /* Fall through. */ case tcc_exceptional: case tcc_unary: @@ -3819,7 +3819,7 @@ substitute_in_expr (tree exp, tree f, tree r) if (exp == f) return r; - /* Fall through... */ + /* Fall through. */ case tcc_exceptional: case tcc_unary: @@ -7039,7 +7039,7 @@ type_cache_hasher::equal (type_hash *a, type_hash *b) TYPE_VALUES (b->type)))) return 0; - /* ... fall through ... */ + /* fall through */ case INTEGER_TYPE: case REAL_TYPE: @@ -11457,7 +11457,7 @@ walk_type_fields (tree type, walk_tree_fn func, void *data, break; } - /* ... fall through ... */ + /* fall through */ case COMPLEX_TYPE: WALK_SUBTREE (TREE_TYPE (type)); diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 9f09d30..c3b24a1 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -1056,6 +1056,7 @@ adjust_mems (rtx loc, const_rtx old_rtx, void *data) ? GET_MODE_SIZE (amd->mem_mode) : -GET_MODE_SIZE (amd->mem_mode), GET_MODE (loc))); + /* FALLTHRU */ case POST_INC: case POST_DEC: if (addr == loc) @@ -1078,6 +1079,7 @@ adjust_mems (rtx loc, const_rtx old_rtx, void *data) return addr; case PRE_MODIFY: addr = XEXP (loc, 1); + /* FALLTHRU */ case POST_MODIFY: if (addr == loc) addr = XEXP (loc, 0); @@ -3152,7 +3154,7 @@ set_dv_changed (decl_or_value dv, bool newv) case ONEPART_DEXPR: if (newv) NO_LOC_P (DECL_RTL_KNOWN_SET (dv_as_decl (dv))) = false; - /* Fall through... */ + /* Fall through. */ default: DECL_CHANGED (dv_as_decl (dv)) = newv; diff --git a/gcc/varasm.c b/gcc/varasm.c index d8bd985..c709c8e 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -589,6 +589,7 @@ default_function_section (tree decl, enum node_frequency freq, these ELF section. */ if (!in_lto_p || !flag_profile_values) return get_named_text_section (decl, ".text.hot", NULL); + /* FALLTHRU */ default: return NULL; } diff --git a/libcpp/lex.c b/libcpp/lex.c index e5a0397..8508bd02a 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -610,6 +610,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) if (l != 0) break; s += sizeof(unsigned long); + /* FALLTHRU */ case 2: l = u.l[i++]; if (l != 0) @@ -2717,6 +2718,7 @@ _cpp_lex_direct (cpp_reader *pfile) } buffer->cur++; } + /* FALLTHRU */ default: create_literal (pfile, result, buffer->cur - 1, 1, CPP_OTHER); @@ -3322,7 +3324,7 @@ cpp_token_val_index (const cpp_token *tok) return CPP_TOKEN_FLD_SOURCE; else if (tok->type == CPP_PRAGMA) return CPP_TOKEN_FLD_PRAGMA; - /* else fall through */ + /* fall through */ default: return CPP_TOKEN_FLD_NONE; } diff --git a/libcpp/macro.c b/libcpp/macro.c index c251553..1a817f3 100644 --- a/libcpp/macro.c +++ b/libcpp/macro.c @@ -2875,6 +2875,7 @@ parse_params (cpp_reader *pfile, cpp_macro *macro) return true; /* Fall through to pick up the error. */ + /* FALLTHRU */ case CPP_COMMA: if (!prev_ident) { diff --git a/libcpp/pch.c b/libcpp/pch.c index aa5ed6b..fb9696d 100644 --- a/libcpp/pch.c +++ b/libcpp/pch.c @@ -230,7 +230,7 @@ count_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) if (hn->flags & NODE_BUILTIN) return 1; - /* else fall through. */ + /* fall through. */ case NT_VOID: { @@ -269,7 +269,7 @@ write_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) if (hn->flags & NODE_BUILTIN) return 1; - /* else fall through. */ + /* fall through. */ case NT_VOID: { diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 78e5978..3aa06b6 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -5794,11 +5794,13 @@ d_print_mod (struct d_print_info *dpi, int options, case DEMANGLE_COMPONENT_REFERENCE_THIS: /* For the ref-qualifier, put a space before the &. */ d_append_char (dpi, ' '); + /* FALLTHRU */ case DEMANGLE_COMPONENT_REFERENCE: d_append_char (dpi, '&'); return; case DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS: d_append_char (dpi, ' '); + /* FALLTHRU */ case DEMANGLE_COMPONENT_RVALUE_REFERENCE: d_append_string (dpi, "&&"); return;