From 96c9268acef895f4f0c0f5111904385a2559b528 Mon Sep 17 00:00:00 2001 From: wilson Date: Tue, 19 Jul 1994 01:58:06 +0000 Subject: [PATCH] (move_movables): Aviod lossage when CALL_INSN_FUNCTION_USAGE is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7777 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/loop.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/loop.c b/gcc/loop.c index c6caefe..32f3924 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1791,8 +1791,9 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs) /* Because the USAGE information potentially contains objects other than hard registers we need to copy it. */ - CALL_INSN_FUNCTION_USAGE (i1) = - copy_rtx (CALL_INSN_FUNCTION_USAGE (temp)); + if (CALL_INSN_FUNCTION_USAGE (temp)) + CALL_INSN_FUNCTION_USAGE (i1) = + copy_rtx (CALL_INSN_FUNCTION_USAGE (temp)); } else i1 = emit_insn_before (body, loop_start); @@ -1834,8 +1835,9 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs) /* Because the USAGE information potentially contains objects other than hard registers we need to copy it. */ - CALL_INSN_FUNCTION_USAGE (i1) = - copy_rtx (CALL_INSN_FUNCTION_USAGE (p)); + if (CALL_INSN_FUNCTION_USAGE (p)) + CALL_INSN_FUNCTION_USAGE (i1) = + copy_rtx (CALL_INSN_FUNCTION_USAGE (p)); } else i1 = emit_insn_before (PATTERN (p), loop_start); -- 2.7.4