re PR debug/66691 (ICE on valid code at -O3 with -g enabled in simplify_subreg, at...
[gcc.git] / gcc / cfgrtl.c
index 20e3fc7c8749dcb91fdec7c7a404f8e34b883d51..2e33dda2f81581062ad411a7234e54e5e4110dfe 100644 (file)
@@ -1695,19 +1695,12 @@ force_nonfallthru_and_redirect (edge e, basic_block target, rtx jump_label)
   if (target == EXIT_BLOCK_PTR_FOR_FN (cfun))
     {
       if (jump_label == ret_rtx)
-       {
-         if (!HAVE_return)
-           gcc_unreachable ();
-
-         emit_jump_insn_after_setloc (gen_return (), BB_END (jump_block), loc);
-       }
+       emit_jump_insn_after_setloc (targetm.gen_return (),
+                                    BB_END (jump_block), loc);
       else
        {
          gcc_assert (jump_label == simple_return_rtx);
-         if (!HAVE_simple_return)
-           gcc_unreachable ();
-
-         emit_jump_insn_after_setloc (gen_simple_return (),
+         emit_jump_insn_after_setloc (targetm.gen_simple_return (),
                                       BB_END (jump_block), loc);
        }
       set_return_jump_label (BB_END (jump_block));