Hi, Subsequent to the following discussion http://gcc.gnu.org/ml/gcc/2007-07/msg00878.html I have the following patch. It gave no regressions with the GCC testsuite on my port ( private port) and a proprietary testsuite. Thanks, Pranav ChangeLog * lower-subreg.c (remove_retval_note): Remove REG_EQUAL note too if it exists in an insn containing REG_RETVAL note.