From 83eb3b0ddbe31ccceb5f4166f8f4c8d6780a41c2 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 12 Dec 1993 06:18:21 -0500 Subject: [PATCH] (thread_prologue_and_epilogue_insns): When constructing USE chain, set both NEXT_INSN and PREV_INSN links. (thread_prologue_and_epilogue_insns): When constructing USE chain, set both NEXT_INSN and PREV_INSN links. Also, preserve order of USE insns in chain. From-SVN: r6215 --- gcc/function.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gcc/function.c b/gcc/function.c index c98b0898964..f0e62762b77 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5259,11 +5259,13 @@ thread_prologue_and_epilogue_insns (f) NEXT_INSN (PREV_INSN (tem)) = NEXT_INSN (tem); PREV_INSN (NEXT_INSN (tem)) = PREV_INSN (tem); - if (! first_use) - first_use = tem; - if (last_use) - NEXT_INSN (last_use) = tem; - else + if (first_use) + { + NEXT_INSN (tem) = first_use; + PREV_INSN (first_use) = tem; + } + first_use = tem; + if (!last_use) last_use = tem; }