Patch by rth to fix inline-of-an-inline return-value bug.

From-SVN: r36654
This commit is contained in:
Donald Lindsay 2000-09-27 21:08:33 +00:00 committed by Don Lindsay
parent 59c5d27a69
commit e93eff9433
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
* integrate.c (copy_insn_list): if an ignored return value
is being clobbered, skip cloning that into the inline copy.
2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
* extend.texi, invoke.texi, gcc.texi, install.texi: Consistently

View File

@ -1294,6 +1294,13 @@ copy_insn_list (insns, map, static_chain_value)
break;
}
/* Similarly if an ignored return value is clobbered. */
else if (map->inline_target == 0
&& GET_CODE (pattern) == CLOBBER
&& GET_CODE (XEXP (pattern, 0)) == REG
&& REG_FUNCTION_VALUE_P (XEXP (pattern, 0)))
break;
/* If this is setting the static chain rtx, omit it. */
else if (static_chain_value != 0
&& set != 0