This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70700] ICE using -fdump-tree-all-graph option
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 01 May 2016 06:01:53 +0000
- Subject: [Bug tree-optimization/70700] ICE using -fdump-tree-all-graph option
- Auto-submitted: auto-generated
- References: <bug-70700-4 at http dot gcc dot gnu dot org/bugzilla/>
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.