Remove more stray returns and gcc_unreachable ()s
authorRichard Biener <rguenther@suse.de>
Mon, 29 Nov 2021 12:19:57 +0000 (13:19 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 30 Nov 2021 14:05:12 +0000 (15:05 +0100)
commitfa01e206c87581186f64f4500f926cdb70549de0
tree1ca5e06b83180b7212f871d99686a4f2b666c55a
parent0194d92c35ca8b3aa850b805d9becb4491cf6bec
Remove more stray returns and gcc_unreachable ()s

This removes more cases that appear when bootstrap with
-Wunreachable-code-return progresses.

2021-11-29  Richard Biener  <rguenther@suse.de>

* config/i386/i386.c (ix86_shift_rotate_cost): Remove
unreachable return.
* tree-chrec.c (evolution_function_is_invariant_rec_p):
Likewise.
* tree-if-conv.c (if_convertible_stmt_p): Likewise.
* tree-ssa-pre.c (fully_constant_expression): Likewise.
* tree-vrp.c (operand_less_p): Likewise.
* reload.c (reg_overlap_mentioned_for_reload_p): Remove
unreachable gcc_unreachable ().
* sel-sched-ir.h (bb_next_bb): Likewise.
* varasm.c (compare_constant): Likewise.

gcc/cp/
* logic.cc (cnf_size_r): Remove unreachable and inconsistently
placed gcc_unreachable ()s.
* pt.c (iterative_hash_template_arg): Remove unreachable
gcc_unreachable and return.

gcc/fortran/
* target-memory.c (gfc_element_size): Remove unreachable return.

gcc/objc/
* objc-act.c (objc_build_setter_call): Remove unreachable
return.

libcpp/
* charset.c (convert_escape): Remove unreachable break.
13 files changed:
gcc/config/i386/i386.c
gcc/cp/logic.cc
gcc/cp/pt.c
gcc/fortran/target-memory.c
gcc/objc/objc-act.c
gcc/reload.c
gcc/sel-sched-ir.h
gcc/tree-chrec.c
gcc/tree-if-conv.c
gcc/tree-ssa-pre.c
gcc/tree-vrp.c
gcc/varasm.c
libcpp/charset.c