This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/44730] [4.6 Regression] Failed to bootstrap due to uninitialized error



------- Comment #1 from hjl dot tools at gmail dot com  2010-06-30 16:15 -------
This makes it to compile:

--
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index b73517d..c3890ec 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -1779,10 +1779,12 @@ build_poly_dr (data_reference_p dr, poly_bb_p pbb)
   ppl_delete_Polyhedron (accesses);

   if (dr->aux)
-    dr_base_object_set = ((base_alias_pair *)(dr->aux))->base_obj_set;
-
-  new_poly_dr (pbb, dr_base_object_set, accesses_ps, DR_IS_READ (dr) ?
PDR_READ : PDR_WRITE,
-              dr, DR_NUM_DIMENSIONS (dr));
+    {
+      dr_base_object_set = ((base_alias_pair *)(dr->aux))->base_obj_set;
+      new_poly_dr (pbb, dr_base_object_set, accesses_ps,
+                  DR_IS_READ (dr) ? PDR_READ : PDR_WRITE,
+                  dr, DR_NUM_DIMENSIONS (dr));
+    }
 }

 /* Write to FILE the alias graph of data references in DIMACS format.  */
@@ -1921,13 +1923,12 @@ build_alias_set_optimal_p (VEC (data_reference_p, heap)
*drs)
   for (i = 0; i < g->n_vertices; i++)
     {
       data_reference_p dr = VEC_index (data_reference_p, drs, i);
-      base_alias_pair *bap;
-
       if (dr->aux)
-       bap = (base_alias_pair *)(dr->aux);
-
-      bap->alias_set = XNEW (int);
-      *(bap->alias_set) = g->vertices[i].component + 1;
+       {
+         base_alias_pair *bap = (base_alias_pair *)(dr->aux);
+         bap->alias_set = XNEW (int);
+         *(bap->alias_set) = g->vertices[i].component + 1;
+       }
     }

   /* Verify if the DFS numbering results in optimal solution.  */
@@ -2000,12 +2001,11 @@ build_base_obj_set_for_drs (VEC (data_reference_p,
heap) *drs)
   for (i = 0; i < g->n_vertices; i++)
     {
       data_reference_p dr = VEC_index (data_reference_p, drs, i);
-      base_alias_pair *bap;
-
       if (dr->aux)
-       bap = (base_alias_pair *)(dr->aux);
-
-      bap->base_obj_set = g->vertices[i].component + 1;
+       {
+         base_alias_pair *bap = (base_alias_pair *)(dr->aux);
+         bap->base_obj_set = g->vertices[i].component + 1;
+       }
     }

   free (queue);
---

But I don't know if it is correct.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44730


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]