This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix insane ia64 scheduling bug


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++;
 	      }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]