haifa-sched.c patch

Joern Rennecke amylaar@cygnus.co.uk
Fri Sep 19 13:06:00 GMT 1997


I tried building haifa-enabled egcs for tghe sh-elf target with the
current SH machine description.  It needs the following patch
(already in sched.c at the FSF):

Fri Sep 19 16:23:54 1997  J"orn Rennecke <amylaar@cygnus.co.uk>

	* haifa-sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.

Index: haifa-sched.c
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/haifa-sched.c,v
retrieving revision 1.12
diff -p -r1.12 haifa-sched.c
*** haifa-sched.c	1997/09/13 19:00:22	1.12
--- haifa-sched.c	1997/09/19 19:55:34
*************** update_flow_info (notes, first, last, or
*** 7906,7911 ****
--- 7906,7912 ----
  		  /* ??? This won't handle multiple word registers correctly,
  		     but should be good enough for now.  */
  		  if (REG_NOTE_KIND (note) == REG_UNUSED
+ 		      && GET_CODE (XEXP (note, 0)) != SCRATCH
  		      && !dead_or_set_p (insn, XEXP (note, 0)))
  		    PUT_REG_NOTE_KIND (note, REG_DEAD);
  



More information about the Gcc mailing list