Fix a build crash with --enable-checking

Geoff Keating geoffk@ozemail.com.au
Mon Oct 11 02:06:00 GMT 1999


This fixes a crash when compiling with --enable-checking.  Before, gcc
died in _muldi3 on native sparc-solaris; now, it gets right down to
_fixtfdi before crashing :-).

OK to commit?

-- 
Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/tx49-egcs-checking.patch===========
md5sum: 8f2a90f881c0938e 480244a79ecbd76b 329476
Index: egcs/gcc/ChangeLog
0a
Sat Oct  9 17:05:32 1999  Geoffrey Keating  <geoffk@cygnus.com>

	* emit-rtl.c (copy_insn_1): Use X0EXP to copy from a format '0'
	field.
	* resource.c (mark_referenced_resources): Use XEXP, not SET_DEST,
	for the parameter of a USE.

.
Changed files:
egcs/gcc/ChangeLog
egcs/gcc/cstamp-h.in
egcs/gcc/emit-rtl.c
egcs/gcc/resource.c
md5sum: 1ded054093de910d 1ded054093de910d 10
md5sum: 4babac290685e20f 912528daa5180e07 104299
--- /sloth/disk0/co/egcs-mainline/egcs/gcc/emit-rtl.c	Mon Oct 11 13:25:57 1999
+++ egcs/gcc/emit-rtl.c	Mon Oct 11 17:53:14 1999
@@ -3482,6 +3482,9 @@ static rtvec copy_asm_constraints_vector
 	  break;
 
 	case '0':
+	  X0EXP (copy, i) = X0EXP (orig, i);
+	  break;
+
 	case 'u':
 	  XEXP (copy, i) = XEXP (orig, i);
 	  break;
md5sum: 45147927e8fadbd7 9772f3a692d15925 40823
--- /sloth/disk0/co/egcs-mainline/egcs/gcc/resource.c	Wed Oct  6 13:47:59 1999
+++ egcs/gcc/resource.c	Mon Oct 11 17:53:14 1999
@@ -346,11 +346,11 @@ mark_referenced_resources (x, res, inclu
 		      rtx slot_pat = PATTERN (XVECEXP (sequence, 0, i));
 		      if (GET_CODE (slot_pat) == SET
 			  && rtx_equal_p (SET_DEST (slot_pat),
-					  SET_DEST (XEXP (link, 0))))
+					  XEXP (XEXP (link, 0), 0)))
 			break;
 		    }
 		  if (i >= seq_size)
-		    mark_referenced_resources (SET_DEST (XEXP (link, 0)),
+		    mark_referenced_resources (XEXP (XEXP (link, 0), 0),
 					       res, 0);
 		}
 	  }
============================================================


More information about the Gcc-patches mailing list