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 for asm instructions on ia64


We didn't properly keep track of the instruction dependency state
for asm insns.  This caused us not to emit stop bits in all places
where they are necessary.  The patch below fixes it.  I'll check it
in once the next bootstrap completes.


Bernd

	* config/ia64/ia64.c (ia64_variable_issue): Call group_barrier_needed_p
	for asms, too.

Index: config/ia64/ia64.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/ia64/ia64.c,v
retrieving revision 1.71
diff -u -p -r1.71 ia64.c
--- ia64.c	2001/01/24 04:30:47	1.71
+++ ia64.c	2001/02/07 16:25:35
@@ -5870,6 +5870,8 @@ ia64_variable_issue (dump, sched_verbose
 	{
 	  /* This must be some kind of asm.  Clear the scheduling state.  */
 	  rotate_two_bundles (sched_verbose ? dump : NULL);
+	  if (ia64_final_schedule)
+	    group_barrier_needed_p (insn);
 	}
       return 1;
     }


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