OSDN Git Service

PR c/6643
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2002 21:06:16 +0000 (21:06 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2002 21:06:16 +0000 (21:06 +0000)
* emit-rtl.c (widen_memory_access): Only call compare_tree_int
if DECL_SIZE_UNIT is INTEGER_CST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53748 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/emit-rtl.c

index f8ccdae..b2bcff0 100644 (file)
@@ -1,3 +1,9 @@
+2002-05-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/6643
+       * emit-rtl.c (widen_memory_access): Only call compare_tree_int
+       if DECL_SIZE_UNIT is INTEGER_CST.
+
 2002-05-22  Richard Henderson  <rth@redhat.com>
 
        * flow.c (life_analysis): Delete broken reg_label check.
index 2e86dff..963946a 100644 (file)
@@ -2163,6 +2163,7 @@ widen_memory_access (memref, mode, offset)
       /* Similarly for the decl.  */
       else if (DECL_P (expr)
               && DECL_SIZE_UNIT (expr)
+              && TREE_CODE (DECL_SIZE_UNIT (expr)) == INTEGER_CST
               && compare_tree_int (DECL_SIZE_UNIT (expr), size) >= 0
               && (! memoffset || INTVAL (memoffset) >= 0))
        break;