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

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.

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