From: Richard Stallman Date: Thu, 25 Mar 1993 05:43:12 +0000 (+0000) Subject: (fixup_var_refs_insns): Don't delete an insn copying X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1e37dc7e8bee5ba20eb7c04148a9e6cf379d946;p=gcc.git (fixup_var_refs_insns): Don't delete an insn copying var to itself, if it's the end of a libcall group. From-SVN: r3873 --- diff --git a/gcc/function.c b/gcc/function.c index 473fcf30171..b3a599a61a4 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1012,6 +1012,9 @@ fixup_var_refs_insns (var, promoted_mode, unsignedp, insn, toplevel) if (toplevel && GET_CODE (PATTERN (insn)) == SET && SET_DEST (PATTERN (insn)) == var + /* If this represents the result of an insn group, + don't delete the insn. */ + && find_reg_note (insn, REG_RETVAL, NULL_RTX) == 0 && rtx_equal_p (SET_SRC (PATTERN (insn)), var)) { /* In unoptimized compilation, we shouldn't call delete_insn