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

vries at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #7 from vries at gcc dot gnu.org ---
(In reply to Marek Polacek from comment #6)
> 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.

I've build the compiler with the patch, compiled the example from comment 4,
extracted the dot files using the script mentioned in PR70221 and generated pdf
files from those. They look ok to me.

Also, the patch itself looks good to me.

Reply via email to