Patch by rth to fix inline-of-an-inline return-value bug.
From-SVN: r36654
This commit is contained in:
parent
59c5d27a69
commit
e93eff9433
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user