]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
emit-rtl.c (widen_memory_access): Only call compare_tree_int on an INTEGER_CST.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Tue, 18 Dec 2001 22:15:46 +0000 (22:15 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 18 Dec 2001 22:15:46 +0000 (17:15 -0500)
* emit-rtl.c (widen_memory_access): Only call compare_tree_int
on an INTEGER_CST.

From-SVN: r48166

gcc/ChangeLog
gcc/emit-rtl.c

index e6291049983940ac0684b1a4b6d797e7de194976..bd7340344ddc6cb58dcd633a3ae183ef51c424c6 100644 (file)
@@ -1,3 +1,8 @@
+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
index 64a2624412dc83c8d4089b299fac3312b4483571..8faef453c86c6fa7c3a522c44aa216a2461993f9 100644 (file)
@@ -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;