From: Richard Kenner Date: Tue, 14 Jun 1994 21:32:30 +0000 (-0400) Subject: (jump_optimize): Don't delete dead insn if it has a REG_RETVAL note. X-Git-Tag: misc/cutover-egcs-0~6485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d008e26c417d2a4d950185001cfb89edc18c4923;p=thirdparty%2Fgcc.git (jump_optimize): Don't delete dead insn if it has a REG_RETVAL note. From-SVN: r7458 --- diff --git a/gcc/jump.c b/gcc/jump.c index 05938d2aba1f..08130db9b97a 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -550,7 +550,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) of a reg that's used in notes. A subsequent optimization might arrange to use that reg for real. */ && regno_last_note_uid[REGNO (SET_DEST (set))] == INSN_UID (insn) - && ! side_effects_p (SET_SRC (set))) + && ! side_effects_p (SET_SRC (set)) + && ! find_reg_note (insn, REG_RETVAL, 0)) delete_insn (insn); }