]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/calls.c
Eliminate false DV warnings for predicated calls to noreturn functions.
[thirdparty/gcc.git] / gcc / calls.c
index ed35daf9a64b88cb43e005080e0ea5b92bc72e60..6d0a3b290bc11e4698b532992c02e8d570898144 100644 (file)
@@ -605,6 +605,10 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size,
     REG_NOTES (call_insn) = gen_rtx_EXPR_LIST (REG_EH_REGION, const0_rtx,
                                               REG_NOTES (call_insn));
 
+  if (ecf_flags & ECF_NORETURN)
+    REG_NOTES (call_insn) = gen_rtx_EXPR_LIST (REG_NORETURN, const0_rtx,
+                                              REG_NOTES (call_insn));
+
   SIBLING_CALL_P (call_insn) = ((ecf_flags & ECF_SIBCALL) != 0);
 
   /* Restore this now, so that we do defer pops for this call's args