on an INTEGER_CST.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48166
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
+
2001-12-18 David Edelsohn <edelsohn@gnu.org>
* rs6000.c (rs6000_override_options): Only use DI ops when
/* 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
+ if (TREE_CODE (DECL_SIZE_UNIT (field)) == INTEGER_CST
+ && compare_tree_int (DECL_SIZE_UNIT (field), size) >= 0
&& INTVAL (memoffset) >= 0)
break;