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 tree-optimization/70700] ICE using -fdump-tree-all-graph option


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70700

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Could be just

--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -2241,7 +2241,11 @@ dump_pred_graph (struct scc_info *si, FILE *file)
       if (graph->points_to[i]
      && !bitmap_empty_p (graph->points_to[i]))
    {
-     fprintf (file, "[label=\"%s = {", get_varinfo (i)->name);
+     if (i < FIRST_REF_NODE)
+       fprintf (file, "[label=\"%s = {", get_varinfo (i)->name);
+     else
+       fprintf (file, "[label=\"*%s = {",
+            get_varinfo (i - FIRST_REF_NODE)->name);
      unsigned j;
      bitmap_iterator bi;
      EXECUTE_IF_SET_IN_BITMAP (graph->points_to[i], 0, j, bi)

but someone would need to check whether we still print a correct info with
this.

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