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]

Fix minor bug in emit-rtl.c:widen_memory_access


Tue Dec 18 17:02:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* emit-rtl.c (widen_memory_access): Only call compare_tree_int
	on an INTEGER_CST.

*** emit-rtl.c	2001/12/13 17:50:02	1.239
--- emit-rtl.c	2001/12/18 21:58:58
*************** widen_memory_access (memref, mode, offse
*** 2114,2118 ****
  	  /* Is the field at least as large as the access?  If so, ok,
  	     otherwise strip back to the containing structure.  */
! 	  if (compare_tree_int (DECL_SIZE_UNIT (field), size) >= 0
  	      && INTVAL (memoffset) >= 0)
  	    break;
--- 2114,2119 ----
  	  /* Is the field at least as large as the access?  If so, ok,
  	     otherwise strip back to the containing structure.  */
! 	  if (TREE_CODE (DECL_SIZE_UNIT (field)) == INTEGER_CST
! 	      && compare_tree_int (DECL_SIZE_UNIT (field), size) >= 0
  	      && INTVAL (memoffset) >= 0)
  	    break;


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