From 0366770096c827a06e15123753f566d807d4899a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 18 Dec 2001 22:15:46 +0000 Subject: [PATCH] emit-rtl.c (widen_memory_access): Only call compare_tree_int on an INTEGER_CST. * emit-rtl.c (widen_memory_access): Only call compare_tree_int on an INTEGER_CST. From-SVN: r48166 --- gcc/ChangeLog | 5 +++++ gcc/emit-rtl.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6291049983..bd7340344dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 18 17:02:06 2001 Richard Kenner + + * emit-rtl.c (widen_memory_access): Only call compare_tree_int + on an INTEGER_CST. + 2001-12-18 David Edelsohn * rs6000.c (rs6000_override_options): Only use DI ops when diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 64a2624412d..8faef453c86 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2113,7 +2113,8 @@ widen_memory_access (memref, mode, offset) /* 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; -- 2.30.2