From 0b7149f016a94ab90da0ebbacd36ca8e877e18a4 Mon Sep 17 00:00:00 2001 From: echristo Date: Thu, 24 Jun 2004 19:15:43 +0000 Subject: 2004-06-24 Eric Christopher * combine.c (distribute_notes): Don't delete sets to global register variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83606 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/combine.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/combine.c') diff --git a/gcc/combine.c b/gcc/combine.c index c0fef9d7f38..008e351ca1a 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11821,8 +11821,10 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2) /* If the register is being set at TEM, see if that is all TEM is doing. If so, delete TEM. Otherwise, make this - into a REG_UNUSED note instead. */ - if (reg_set_p (XEXP (note, 0), PATTERN (tem))) + into a REG_UNUSED note instead. Don't delete sets to + global register vars. */ + if (reg_set_p (XEXP (note, 0), PATTERN (tem)) + && !global_regs [REGNO(XEXP (note, 0))]) { rtx set = single_set (tem); rtx inner_dest = 0; -- cgit v1.2.1