OSDN Git Service

* testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib-related
[pf3gnuchains/gcc-fork.git] / gcc / tree-data-ref.c
index 10a223e..6f34ada 100644 (file)
@@ -786,7 +786,7 @@ estimate_niter_from_size_of_data (struct loop *loop,
       && TREE_CODE (step) == INTEGER_CST)
     {
       tree i_plus_s = fold_build2 (PLUS_EXPR, integer_type_node, init, step);
-      tree sign = fold_build2 (GT_EXPR, boolean_type_node, i_plus_s, init);
+      tree sign = fold_binary (GT_EXPR, boolean_type_node, i_plus_s, init);
 
       if (sign == boolean_true_node)
        estimation = fold_build2 (CEIL_DIV_EXPR, integer_type_node,
@@ -882,7 +882,7 @@ analyze_array (tree stmt, tree ref, bool is_read)
       fprintf (dump_file, ")\n");
     }
   
-  res = xmalloc (sizeof (struct data_reference));
+  res = XNEW (struct data_reference);
   
   DR_STMT (res) = stmt;
   DR_REF (res) = ref;
@@ -1004,7 +1004,7 @@ init_data_ref (tree stmt,
       fprintf (dump_file, ")\n");
     }
   
-  res = xmalloc (sizeof (struct data_reference));
+  res = XNEW (struct data_reference);
   
   DR_STMT (res) = stmt;
   DR_REF (res) = ref;
@@ -1976,7 +1976,7 @@ initialize_data_dependence_relation (struct data_reference *a,
   bool differ_p;
   unsigned int i;  
   
-  res = xmalloc (sizeof (struct data_dependence_relation));
+  res = XNEW (struct data_dependence_relation);
   DDR_A (res) = a;
   DDR_B (res) = b;
 
@@ -2020,7 +2020,7 @@ initialize_data_dependence_relation (struct data_reference *a,
     {
       struct subscript *subscript;
          
-      subscript = xmalloc (sizeof (struct subscript));
+      subscript = XNEW (struct subscript);
       SUB_CONFLICTS_IN_A (subscript) = chrec_dont_know;
       SUB_CONFLICTS_IN_B (subscript) = chrec_dont_know;
       SUB_LAST_CONFLICT (subscript) = chrec_dont_know;
@@ -3745,7 +3745,7 @@ find_data_references_in_loop (struct loop *loop, varray_type *datarefs)
                  struct data_reference *res;
 
                insert_dont_know_node:;
-                 res = xmalloc (sizeof (struct data_reference));
+                 res = XNEW (struct data_reference);
                  DR_STMT (res) = NULL_TREE;
                  DR_REF (res) = NULL_TREE;
                  DR_BASE_OBJECT (res) = NULL;