patch applied to rtlanal.c

Joern Rennecke amylaar@cygnus.co.uk
Wed Jun 23 15:07:00 GMT 1999


Wed Jun 23 21:26:00 1999  J"orn Rennecke <amylaar@cygnus.co.uk>

	* rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
	for the parts of an UNSPEC / UNSPEC_VOLATILE.

Index: rtlanal.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/rtlanal.c,v
retrieving revision 1.64.4.4
diff -p -r1.64.4.4 rtlanal.c
*** rtlanal.c	1999/02/25 19:28:24	1.64.4.4
--- rtlanal.c	1999/06/23 20:21:26
*************** reg_referenced_p (x, body)
*** 410,415 ****
--- 410,420 ----
  
      case UNSPEC:
      case UNSPEC_VOLATILE:
+       for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
+ 	if (reg_overlap_mentioned_p (x, XVECEXP (body, 0, i)))
+ 	  return 1;
+       return 0;
+ 
      case PARALLEL:
        for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
  	if (reg_referenced_p (x, XVECEXP (body, 0, i)))


More information about the Gcc-patches mailing list