This is the mail archive of the gcc@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]

Re: Mainline bootstrap fails on powerpc-apple-darwin7.5.0 with--enable-checking=all


Richard Sandiford <rsandifo@redhat.com> writes:
> Anyway, the attached patch should fix things.  It at least gets past
> the rtl checking failure in genattrtab for a cross-compile.

But, to add insult to injury, the write_const_num_delay_slots part
was clearly bogus.  Sigh.

Fixed version attached.

Richard


	* genattrtab.c (write_attr_case, write_const_num_delay_slots): Check
	for DEFINE_PEEPHOLEs before writing out the insn name.

Index: genattrtab.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genattrtab.c,v
retrieving revision 1.151
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.151 genattrtab.c
*** genattrtab.c	13 Aug 2004 16:43:04 -0000	1.151
--- genattrtab.c	8 Sep 2004 22:07:05 -0000
*************** write_attr_case (struct attr_desc *attr,
*** 3905,3911 ****
  	  {
  	    write_indent (indent);
  	    printf ("case %d:  /* %s */\n",
! 		    ie->def->insn_code, XSTR (ie->def->def, 0));
  	  }
      }
    else
--- 3905,3914 ----
  	  {
  	    write_indent (indent);
  	    printf ("case %d:  /* %s */\n",
! 		    ie->def->insn_code,
! 		    GET_CODE (ie->def->def) == DEFINE_PEEPHOLE
! 		    ? "peephole"
! 		    : XSTR (ie->def->def, 0));
  	  }
      }
    else
*************** write_const_num_delay_slots (void)
*** 4383,4389 ****
  	      for (ie = av->first_insn; ie; ie = ie->next)
  		if (ie->def->insn_code != -1)
  		  printf ("    case %d:  /* %s */\n",
! 			  ie->def->insn_code, XSTR (ie->def->def, 0));
  	      printf ("      return 0;\n");
  	    }
  	}
--- 4386,4395 ----
  	      for (ie = av->first_insn; ie; ie = ie->next)
  		if (ie->def->insn_code != -1)
  		  printf ("    case %d:  /* %s */\n",
! 			  ie->def->insn_code,
! 			  GET_CODE (ie->def->def) == DEFINE_PEEPHOLE
! 			  ? "peephole"
! 			  : XSTR (ie->def->def, 0));
  	      printf ("      return 0;\n");
  	    }
  	}


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