aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-08-14 16:00:43 -0700
committerJim Wilson <wilson@gcc.gnu.org>1994-08-14 16:00:43 -0700
commit17cbf35871d9fa4da552cbc40fb8da44d78cc5a2 (patch)
tree141ae0821b3215c18a17206db358f16d72e5dfb6 /gcc
parent96cbe26ae9ad0d37e3c91723e78ab441901a7905 (diff)
downloadgcc-17cbf35871d9fa4da552cbc40fb8da44d78cc5a2.zip
gcc-17cbf35871d9fa4da552cbc40fb8da44d78cc5a2.tar.gz
gcc-17cbf35871d9fa4da552cbc40fb8da44d78cc5a2.tar.bz2
(distribute_notes, case REG_DEAD): Add another
find_reg_fusage call. From-SVN: r7920
Diffstat (limited to 'gcc')
-rw-r--r--gcc/combine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 581105e..275b94b 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -10643,7 +10643,9 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
{
rtx piece = gen_rtx (REG, reg_raw_mode[i], i);
- if (reg_referenced_p (piece, PATTERN (place))
+ if ((reg_referenced_p (piece, PATTERN (place))
+ || (GET_CODE (place) == CALL_INSN
+ && find_reg_fusage (place, USE, piece)))
&& ! dead_or_set_p (place, piece)
&& ! reg_bitfield_target_p (piece,
PATTERN (place)))