diff options
author | Richard Biener <rguenther@suse.de> | 2021-11-29 13:19:57 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-11-30 15:05:12 +0100 |
commit | fa01e206c87581186f64f4500f926cdb70549de0 (patch) | |
tree | 1ca5e06b83180b7212f871d99686a4f2b666c55a /gcc/objc | |
parent | 0194d92c35ca8b3aa850b805d9becb4491cf6bec (diff) | |
download | gcc-fa01e206c87581186f64f4500f926cdb70549de0.zip gcc-fa01e206c87581186f64f4500f926cdb70549de0.tar.gz gcc-fa01e206c87581186f64f4500f926cdb70549de0.tar.bz2 |
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.
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 9baa46d..89f4629 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1904,9 +1904,6 @@ objc_build_setter_call (tree lhs, tree rhs) setter_argument, NULL); return setter; } - - /* Unreachable, but the compiler may not realize. */ - return error_mark_node; } /* This hook routine is called when a MODIFY_EXPR is being built. We |