]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove some differences with trunk.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 15:28:07 +0000 (15:28 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 15:28:07 +0000 (15:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@205120 138bc75d-0d04-0410-961f-82ee72b054a4

19 files changed:
gcc/c-family/cilk.c
gcc/c/Make-lang.in
gcc/config/avr/avr.c
gcc/config/nds32/nds32.c
gcc/cp/parser.c
gcc/cp/vtable-class-hierarchy.c
gcc/dwarf2out.c
gcc/fold-const.c
gcc/fortran/trans-common.c
gcc/fortran/trans-expr.c
gcc/genpreds.c
gcc/gimplify.c
gcc/ipa-devirt.c
gcc/java/typeck.c
gcc/stor-layout.c
gcc/targhooks.c
gcc/tree-pretty-print.c
gcc/tree.c
gcc/tree.h

index a68ef304dd6ad42ad0eab710a9ce8d04630bcbf6..a663c457302acb0d1d7c2a7782e27ba6db0406aa 100644 (file)
@@ -1208,7 +1208,7 @@ extract_free_variables (tree t, struct wrapper_data *wd,
        int ii = 0;
        if (TREE_CODE (TREE_OPERAND (t, 0)) == INTEGER_CST)
          {
-           len = tree_to_uhwi (TREE_OPERAND (t, 0));
+           len = TREE_INT_CST_LOW (TREE_OPERAND (t, 0));
 
            for (ii = 0; ii < len; ii++)
              extract_free_variables (TREE_OPERAND (t, ii), wd, ADD_READ);
index e68000a82462e00e28dab94aaa017441fdd172b8..d79fc4f410c0388a8c3ef2198dc8cad7e3c08ed2 100644 (file)
@@ -137,3 +137,4 @@ c.stageprofile: stageprofile-start
        -mv c/*$(objext) stageprofile/c
 c.stagefeedback: stagefeedback-start
        -mv c/*$(objext) stagefeedback/c
+
index f1241f4e0f20b569c0e4356080a5877db7d838fe..e94e0d7bac8264215a2e1a4f8ceb0d02d6fdcc98 100644 (file)
@@ -12233,7 +12233,7 @@ avr_fold_builtin (tree fndecl, int n_args ATTRIBUTE_UNUSED, tree *arg,
           }
 
         tmap = wide_int_to_tree (map_type, arg[0]);
-        map = tree_to_uhwi (tmap);
+        map = TREE_INT_CST_LOW (tmap);
 
         if (TREE_CODE (tval) != INTEGER_CST
             && 0 == avr_map_metric (map, MAP_MASK_PREIMAGE_F))
index 80ca1f647b79632fd41937e6ab7f76f0fbfcba8b..8582bbb218af2aa624743e12ad2d139dce9c9b72 100644 (file)
@@ -1276,7 +1276,7 @@ nds32_construct_isr_vectors_information (tree func_attrs,
          /* Pick up each vector id value.  */
          id = TREE_VALUE (id_list);
          /* Add vector_number_offset to get actual vector number.  */
-         vector_id = tree_to_uhwi (id) + vector_number_offset;
+         vector_id = TREE_INT_CST_LOW (id) + vector_number_offset;
 
          /* Enable corresponding vector and set function name.  */
          nds32_isr_vectors[vector_id].category = (intr)
@@ -1318,7 +1318,7 @@ nds32_construct_isr_vectors_information (tree func_attrs,
 
       /* The total vectors = interrupt + exception numbers + reset.
          There are 8 exception and 1 reset in nds32 architecture.  */
-      nds32_isr_vectors[0].total_n_vectors = tree_to_uhwi (id) + 8 + 1;
+      nds32_isr_vectors[0].total_n_vectors = TREE_INT_CST_LOW (id) + 8 + 1;
       strcpy (nds32_isr_vectors[0].func_name, func_name);
 
       /* Retrieve nmi and warm function.  */
index ff45b8f3a717f396bd3c6535e847e38c077cebd2..977adf6b79163ab21db608ce521a129fad56eddd 100644 (file)
@@ -3804,7 +3804,7 @@ make_string_pack (tree value)
   tree charvec;
   tree argpack = make_node (NONTYPE_ARGUMENT_PACK);
   const char *str = TREE_STRING_POINTER (value);
-  int sz = tree_to_uhwi (TYPE_SIZE_UNIT (TREE_TYPE (TREE_TYPE (value))));
+  int sz = TREE_INT_CST_LOW (TYPE_SIZE_UNIT (TREE_TYPE (TREE_TYPE (value))));
   int len = TREE_STRING_LENGTH (value) / sz - 1;
   tree argvec = make_tree_vec (2);
 
index 00d4feee0227afc1347dc2825a7dbf385c97702b..32f9541e43da2a66e586414b08fe01aa54cb6dda 100644 (file)
@@ -453,7 +453,7 @@ check_and_record_registered_pairs (tree vtable_decl, tree vptr_address,
     vptr_address = TREE_OPERAND (vptr_address, 0);
 
   if (TREE_OPERAND_LENGTH (vptr_address) > 1)
-    offset = tree_to_uhwi (TREE_OPERAND (vptr_address, 1));
+    offset = TREE_INT_CST_LOW (TREE_OPERAND (vptr_address, 1));
   else
     offset = 0;
 
@@ -876,7 +876,7 @@ output_set_info (tree record_type, vec<tree> vtbl_ptr_array)
             vptr_name = IDENTIFIER_POINTER (DECL_NAME (arg0));
 
           if (TREE_CODE (arg1) == INTEGER_CST)
-            vptr_offset = tree_to_uhwi (arg1);
+            vptr_offset = TREE_INT_CST_LOW (arg1);
         }
 
       snprintf (buffer, sizeof (buffer), "%s %s %s + %d\n",
index a02e8aa0f1b6663b34865b93e2dcc1b40935ad62..1193e5e475486bab4c70cb2b4d1f852f43ede340 100644 (file)
@@ -15112,7 +15112,7 @@ insert_wide_int (const wide_int &val, unsigned char *dest, int elt_size)
       return;
     }
 
-  // We'd have to extend this code to support odd sizes.
+  /* We'd have to extend this code to support odd sizes.  */
   gcc_assert (elt_size % (HOST_BITS_PER_WIDE_INT/BITS_PER_UNIT) == 0);
 
   int n = elt_size / (HOST_BITS_PER_WIDE_INT/BITS_PER_UNIT);
index a25dfffc72e72512b12bd41d05df539996cefb41..74319e5448a1ca8a0cbf63f4cfd3a6cb60ad0055 100644 (file)
@@ -13044,7 +13044,7 @@ fold_binary_loc (location_t loc,
              unsigned HOST_WIDE_INT log2 = tree_log2 (arg01);
              /* If (C2 << C1) doesn't overflow, then ((X >> C1) & C2) != 0
                 can be rewritten as (X & (C2 << C1)) != 0.  */
-             if ((log2 + tree_to_uhwi (arg001)) < prec)
+             if ((log2 + TREE_INT_CST_LOW (arg001)) < prec)
                {
                  tem = fold_build2_loc (loc, LSHIFT_EXPR, itype, arg01, arg001);
                  tem = fold_build2_loc (loc, BIT_AND_EXPR, itype, arg000, tem);
@@ -16155,7 +16155,7 @@ fold_read_from_constant_string (tree exp)
          && (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (TREE_TYPE (string)))) == 1))
        return build_int_cst_type (TREE_TYPE (exp),
                                   (TREE_STRING_POINTER (string)
-                                   [tree_to_uhwi (index)]));
+                                   [TREE_INT_CST_LOW (index)]));
     }
   return NULL;
 }
index bc54b9deea71f160bf3c9f76784d0d07f0139e5f..2266c1bfa5668d6ab50c43fcd928a44edff0a66a 100644 (file)
@@ -400,8 +400,8 @@ build_common_decl (gfc_common_head *com, tree union_type, bool is_init)
        gfc_warning ("Named COMMON block '%s' at %L shall be of the "
                     "same size as elsewhere (%lu vs %lu bytes)", com->name,
                     &com->where,
-                    (unsigned long) tree_to_uhwi (size),
-                    (unsigned long) tree_to_uhwi (DECL_SIZE_UNIT (decl)));
+                    (unsigned long) TREE_INT_CST_LOW (size),
+                    (unsigned long) TREE_INT_CST_LOW (DECL_SIZE_UNIT (decl)));
 
       if (tree_int_cst_lt (DECL_SIZE_UNIT (decl), size))
        {
index 7cf9bc18d38c6a478de44496901bef20ffb81705..275a71ddf676d4469d21305304cc0bc3e7e6e749 100644 (file)
@@ -2645,8 +2645,8 @@ gfc_string_to_single_character (tree len, tree str, int kind)
       && TREE_CODE (TREE_OPERAND (TREE_OPERAND (str, 0), 0)) == STRING_CST
       && array_ref_low_bound (TREE_OPERAND (str, 0))
         == TREE_OPERAND (TREE_OPERAND (str, 0), 1)
-      && tree_to_uhwi (len) > 1
-      && tree_to_uhwi (len)
+      && TREE_INT_CST_LOW (len) > 1
+      && TREE_INT_CST_LOW (len)
         == (unsigned HOST_WIDE_INT)
            TREE_STRING_LENGTH (TREE_OPERAND (TREE_OPERAND (str, 0), 0)))
     {
index 976eb113a6bf180dee06eca467ee6ee27592ef69..dbffa903a1df07453f90accc447f388bd65e053e 100644 (file)
@@ -810,6 +810,7 @@ add_constraint (const char *name, const char *regclass,
     {
       enum rtx_code appropriate_code
        = is_const_int ? CONST_INT : CONST_DOUBLE;
+
       /* Consider relaxing this requirement in the future.  */
       if (regclass
          || GET_CODE (exp) != AND
index faba41959b411069ff4196e45a0519cf2dcf49ae..5c71d2c360501ed7c26eeae23ef93077e0a7163a 100644 (file)
@@ -2642,7 +2642,7 @@ gimple_boolify (tree expr)
       return expr;
 
     case ANNOTATE_EXPR:
-      if ((enum annot_expr_kind) tree_to_uhwi (TREE_OPERAND (expr, 1))
+      if ((enum annot_expr_kind) TREE_INT_CST_LOW (TREE_OPERAND (expr, 1))
          == annot_expr_ivdep_kind)
        {
          TREE_OPERAND (expr, 0) = gimple_boolify (TREE_OPERAND (expr, 0));
index b1efde7fbf4cfbfd613b1b9badf4206e05b2af68..41e530082be6f8e158f8e809524c33a5b0f3d8f7 100644 (file)
@@ -209,7 +209,7 @@ hash_type_name (tree t)
 
       if (TREE_CODE (v) == POINTER_PLUS_EXPR)
        {
-         hash = TREE_INT_CST_ELT (TREE_OPERAND (v, 1), 0);
+         hash = TREE_INT_CST_LOW (TREE_OPERAND (v, 1));
          v = TREE_OPERAND (TREE_OPERAND (v, 0), 0);
        }
 
index 39ee4199908c57d7ec135171d1ba2feadd356bc2..3a0aa3960a2352c84ac6656c73f4b6732616c736 100644 (file)
@@ -219,7 +219,7 @@ java_array_type_length (tree array_type)
        {
          tree high = TYPE_MAX_VALUE (index_type);
          if (TREE_CODE (high) == INTEGER_CST)
-           return tree_to_uhwi (high) + 1;
+           return TREE_INT_CST_LOW (high) + 1;
        }
     }
   return -1;
index fe50ca5769b5498ade54149e6922cb997999bb95..2074a82829fc1b2f676aa14415d586a24a7c6eb0 100644 (file)
@@ -1244,7 +1244,7 @@ place_field (record_layout_info rli, tree field)
       && ! integer_zerop (DECL_SIZE (field))
       && tree_fits_uhwi_p (DECL_SIZE (field))
       /* BUG!!! rli->offset is checked as unsigned but used as signed.   */
-      && tree_fits_shwi_p (rli->offset)
+      && tree_fits_uhwi_p (rli->offset)
       && tree_fits_uhwi_p (TYPE_SIZE (type)))
     {
       unsigned int type_align = TYPE_ALIGN (type);
index 5c13fc33910331fc9c635661f35015887cb9041d..0a56eff68eff1d21843aeaa2cc6f561ebf497c54 100644 (file)
@@ -276,6 +276,7 @@ default_cxx_guard_type (void)
   return long_long_integer_type_node;
 }
 
+
 /* Returns the size of the cookie to use when allocating an array
    whose elements have the indicated TYPE.  Assumes that it is already
    known that a cookie is needed.  */
index fa0e98d2a9b2a2dcbce58fec1a4c03187ea133ef..fc1b31aa696481609b200da3c0f3144504cca2ea 100644 (file)
@@ -2118,7 +2118,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
 
     case ANNOTATE_EXPR:
       pp_string (buffer, "ANNOTATE_EXPR <");
-      switch ((enum annot_expr_kind) tree_to_shwi (TREE_OPERAND (node, 1)))
+      switch ((enum annot_expr_kind) TREE_INT_CST_LOW (TREE_OPERAND (node, 1)))
        {
        case annot_expr_ivdep_kind:
          pp_string (buffer, "ivdep, ");
index 91c7b3acc52d3adb803612a27050bf47d08914fb..1821b8e5620d719eaf1984e97cedfff4248774d2 100644 (file)
@@ -6993,7 +6993,7 @@ HOST_WIDE_INT
 tree_to_shwi (const_tree t)
 {
   gcc_assert (tree_fits_shwi_p (t));
-  return TREE_INT_CST_ELT (t, 0);
+  return TREE_INT_CST_LOW (t);
 }
 
 /* T is an INTEGER_CST whose numerical value (extended according to
@@ -7004,7 +7004,7 @@ unsigned HOST_WIDE_INT
 tree_to_uhwi (const_tree t)
 {
   gcc_assert (tree_fits_uhwi_p (t));
-  return TREE_INT_CST_ELT (t, 0);
+  return TREE_INT_CST_LOW (t);
 }
 
 /* Return the most significant (sign) bit of T.  */
index ea6d2fe84884038ad1fe0723660fedbe60a90e93..d4ea3842264a1c8285dcd7df853f67828f3963f5 100644 (file)
@@ -3697,14 +3697,14 @@ extern inline __attribute__ ((__gnu_inline__)) HOST_WIDE_INT
 tree_to_shwi (const_tree t)
 {
   gcc_assert (tree_fits_shwi_p (t));
-  return TREE_INT_CST_ELT (t, 0);
+  return TREE_INT_CST_LOW (t);
 }
 
 extern inline __attribute__ ((__gnu_inline__)) unsigned HOST_WIDE_INT
 tree_to_uhwi (const_tree t)
 {
   gcc_assert (tree_fits_uhwi_p (t));
-  return TREE_INT_CST_ELT (t, 0);
+  return TREE_INT_CST_LOW (t);
 }
 #endif
 extern int tree_int_cst_sgn (const_tree);