OSDN Git Service

2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Apr 2008 17:24:24 +0000 (17:24 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Apr 2008 17:24:24 +0000 (17:24 +0000)
* dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
of size of positions_needed * CHAR_BIT.

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

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;