OSDN Git Service

* gcc.pot: Regenerate.
[pf3gnuchains/gcc-fork.git] / gcc / fold-const.c
index e92a674..17a7536 100644 (file)
@@ -7408,14 +7408,13 @@ native_interpret_int (tree type, const unsigned char *ptr, int len)
   int total_bytes = GET_MODE_SIZE (TYPE_MODE (type));
   int byte, offset, word, words;
   unsigned char value;
-  double_int result;
+  unsigned int HOST_WIDE_INT lo = 0;
+  HOST_WIDE_INT hi = 0;
 
   if (total_bytes > len)
     return NULL_TREE;
   if (total_bytes * BITS_PER_UNIT > 2 * HOST_BITS_PER_WIDE_INT)
     return NULL_TREE;
-
-  result = double_int_zero;
   words = total_bytes / UNITS_PER_WORD;
 
   for (byte = 0; byte < total_bytes; byte++)
@@ -7437,13 +7436,13 @@ native_interpret_int (tree type, const unsigned char *ptr, int len)
       value = ptr[offset];
 
       if (bitpos < HOST_BITS_PER_WIDE_INT)
-       result.low |= (unsigned HOST_WIDE_INT) value << bitpos;
+       lo |= (unsigned HOST_WIDE_INT) value << bitpos;
       else
-       result.high |= (unsigned HOST_WIDE_INT) value
-                      << (bitpos - HOST_BITS_PER_WIDE_INT);
+       hi |= (unsigned HOST_WIDE_INT) value
+             << (bitpos - HOST_BITS_PER_WIDE_INT);
     }
 
-  return double_int_to_tree (type, result);
+  return build_int_cst_wide_type (type, lo, hi);
 }