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]
Other format: [Raw text]

[itanium-sched-branch] patch fixing bootstrap failure


  Hello, the following patch fixes a bug which prevented a successful
bootstrap on the branch.  The bug occurs as an assembler crash.

The patch has been committed into the branch.

Vlad

2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>

        * config/ia64/ia64.c (bundling): Use MFI template instead of
MLX.
Index: config/ia64/ia64.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.c,v
retrieving revision 1.184.4.11
diff -c -p -r1.184.4.11 ia64.c
*** config/ia64/ia64.c	27 Nov 2002 19:26:40 -0000	1.184.4.11
--- config/ia64/ia64.c	27 Nov 2002 22:26:18 -0000
*************** bundling (dump, verbose, prev_head_insn,
*** 6623,6633 ****
  	      if (recog_memoized (last) == CODE_FOR_bundle_selector)
  		{
  		  template0 = XINT (XVECEXP (PATTERN (last), 0, 0), 0);
  		  break;
  		}
  	      else if (recog_memoized (last) != CODE_FOR_insn_group_barrier)
  		n++;
! 	    if ((pred_stop_p && n == 0) || n > 2)
  	      abort ();
  	    for (j = 3 - n; j > 0; j --)
  	      ia64_emit_insn_before (gen_nop (), insn);
--- 6623,6637 ----
  	      if (recog_memoized (last) == CODE_FOR_bundle_selector)
  		{
  		  template0 = XINT (XVECEXP (PATTERN (last), 0, 0), 0);
+ 		  if (template0 == 9)
+ 		    PATTERN (last)
+ 		      = gen_bundle_selector (GEN_INT (2)); /* -> MFI */
  		  break;
  		}
  	      else if (recog_memoized (last) != CODE_FOR_insn_group_barrier)
  		n++;
! 	    if ((pred_stop_p && n == 0) || n > 2
! 		|| (template0 == 9 && n != 0))
  	      abort ();
  	    for (j = 3 - n; j > 0; j --)
  	      ia64_emit_insn_before (gen_nop (), insn);

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