diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-12-12 06:18:21 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-12-12 06:18:21 -0500 |
commit | 83eb3b0ddbe31ccceb5f4166f8f4c8d6780a41c2 (patch) | |
tree | 10c330716e6e23ee7022912871ac879aa02ff103 | |
parent | 2663b06b3863a53ba61f2319b4fa5008007f0287 (diff) | |
download | gcc-83eb3b0ddbe31ccceb5f4166f8f4c8d6780a41c2.zip gcc-83eb3b0ddbe31ccceb5f4166f8f4c8d6780a41c2.tar.gz gcc-83eb3b0ddbe31ccceb5f4166f8f4c8d6780a41c2.tar.bz2 |
(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
-rw-r--r-- | gcc/function.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/function.c b/gcc/function.c index c98b089..f0e6276 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; } |