re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)

PR c/7652
gcc/c-family/
	* c-ada-spec.c (dump_generic_ada_node): Add return.
gcc/
	* cselib.c (cselib_expand_value_rtx_1): Add return.
	* gengtype.c (dbgprint_count_type_at): Likewise.
	* hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
	* reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.

From-SVN: r239297
This commit is contained in:
Marek Polacek 2016-08-09 16:39:28 +00:00 committed by Marek Polacek
parent bbc824cd56
commit f0bc3323eb
7 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2016-08-09 Marek Polacek <polacek@redhat.com>
PR c/7652
* cselib.c (cselib_expand_value_rtx_1): Add return.
* gengtype.c (dbgprint_count_type_at): Likewise.
* hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
* reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
2016-08-09 Martin Jambor <mjambor@suse.cz>
PR ipa/71981

View File

@ -1,3 +1,8 @@
2016-08-09 Marek Polacek <polacek@redhat.com>
PR c/7652
* c-ada-spec.c (dump_generic_ada_node): Add return.
2016-08-09 Jason Merrill <jason@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for

View File

@ -1862,6 +1862,7 @@ dump_generic_ada_node (pretty_printer *buffer, tree node, tree type, int spc,
case TREE_BINFO:
dump_generic_ada_node
(buffer, BINFO_TYPE (node), type, spc, limited_access, name_only);
return 0;
case TREE_VEC:
pp_string (buffer, "--- unexpected node: TREE_VEC");

View File

@ -1618,6 +1618,7 @@ cselib_expand_value_rtx_1 (rtx orig, struct expand_value_data *evd,
else
return orig;
}
return orig;
}
CASE_CONST_ANY:

View File

@ -175,6 +175,7 @@ dbgprint_count_type_at (const char *fil, int lin, const char *msg, type_p t)
{
case TYPE_UNDEFINED:
nb_undefined++;
break;
case TYPE_SCALAR:
nb_scalar++;
break;

View File

@ -5039,6 +5039,7 @@ gen_hsa_insn_for_internal_fn_call (gcall *stmt, hsa_bb *hbb)
case IFN_FMIN:
case IFN_FMAX:
gen_hsa_insns_for_call_of_internal_fn (stmt, hbb);
break;
default:
HSA_SORRY_ATV (gimple_location (stmt),

View File

@ -423,6 +423,8 @@ get_true_reg (rtx *pat)
GET_MODE (subreg));
return pat;
}
pat = &XEXP (*pat, 0);
break;
}
case FLOAT:
case FIX: