This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix minor bug in emit-rtl.c:widen_memory_access
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Dec 01 17:10:10 EST
- Subject: 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;