summaryrefslogtreecommitdiffstats
path: root/gcc/sched.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-12-17 20:02:06 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-12-17 20:02:06 +0000
commitf14647fb381f6ba09824c380ed19c4353deef465 (patch)
tree30cdf31329355395e7bba2e456ef178eb95f5076 /gcc/sched.c
parentab0d71ce501550d5d4409680f427cd1f8e59af82 (diff)
downloadppe42-gcc-f14647fb381f6ba09824c380ed19c4353deef465.tar.gz
ppe42-gcc-f14647fb381f6ba09824c380ed19c4353deef465.zip
(update_flow_info): When add REG_DEAD notes for dest of
last insn, add check for global_regs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13318 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched.c')
-rw-r--r--gcc/sched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/sched.c b/gcc/sched.c
index 71cf52ff615..356071177d1 100644
--- a/gcc/sched.c
+++ b/gcc/sched.c
@@ -4629,6 +4629,10 @@ update_flow_info (notes, first, last, orig_insn)
dest = XEXP (dest, 0);
if (GET_CODE (dest) == REG
+ /* Global registers are always live, so the code below does not
+ apply to them. */
+ && (REGNO (dest) >= FIRST_PSEUDO_REGISTER
+ || ! global_regs[REGNO (dest)])
&& ! reg_overlap_mentioned_p (dest, SET_SRC (set)))
{
for (insn = PREV_INSN (last); ; insn = PREV_INSN (insn))
OpenPOWER on IntegriCloud