dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead of size of positions_needed...
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 11 Apr 2008 17:24:24 +0000 (17:24 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 11 Apr 2008 17:24:24 +0000 (10:24 -0700)
2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>

* dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
of size of positions_needed * CHAR_BIT.

From-SVN: r134203

gcc/ChangeLog
gcc/dse.c

index 8c5bcff..8644773 100644 (file)
@@ -1,5 +1,10 @@
 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
+       of size of positions_needed * CHAR_BIT.
+
+2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
        PR middle-end/35897
        * dse.c (store_info): Change positions_needed to unsigned
        HOST_WIDE_INT.
index 4394600..9dab625 100644 (file)
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -1370,8 +1370,7 @@ record_store (rtx body, bb_info_t bb_info)
       ptr = next;
     }
   
-  gcc_assert ((unsigned) width
-             <= sizeof (store_info->positions_needed) * CHAR_BIT);
+  gcc_assert ((unsigned) width <= HOST_BITS_PER_WIDE_INT);
   
   /* Finish filling in the store_info.  */
   store_info->next = insn_info->store_rec;