This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix insane ia64 scheduling bug
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: Fix insane ia64 scheduling bug
- From: Bernd Schmidt <bernds at redhat dot com>
- Date: Thu, 23 Aug 2001 20:21:02 +0100 (BST)
Should be self-explanatory.
Bernd, wearing a brown paper bag
* config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
asm ready, don't try to move them all into the same array element.
Index: config/ia64/ia64.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/ia64/ia64.c,v
retrieving revision 1.96.4.7
diff -u -p -r1.96.4.7 ia64.c
--- ia64.c 2001/08/22 15:32:16 1.96.4.7
+++ ia64.c 2001/08/23 19:10:29
@@ -6039,8 +6039,8 @@ ia64_sched_reorder (dump, sched_verbose,
if (GET_CODE (PATTERN (insn)) == ASM_INPUT
|| asm_noperands (PATTERN (insn)) >= 0)
{
- rtx lowest = ready[0];
- ready[0] = insn;
+ rtx lowest = ready[n_asms];
+ ready[n_asms] = insn;
*insnp = lowest;
n_asms++;
}