Commit 6b9933b9 by Marek Polacek Committed by Tom de Vries

Fix ICE in dump_pred_graph

2016-05-02  Marek Polacek  <polacek@redhat.com>
	    Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/70700
	* tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
	bigger than FIRST_REF_NODE.

	* gcc.dg/pr70700.c: New test.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>

From-SVN: r235700
parent 3eaec285
2016-05-02 Marek Polacek <polacek@redhat.com>
Tom de Vries <tom@codesourcery.com>
PR tree-optimization/70700
* tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
bigger than FIRST_REF_NODE.
2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
PR target/52898
......
2016-05-02 Marek Polacek <polacek@redhat.com>
Tom de Vries <tom@codesourcery.com>
PR tree-optimization/70700
* gcc.dg/pr70700.c: New test.
2016-05-01 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/avx256-unaligned-load-1.c: Update scan strings.
......
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-ealias-graph" } */
struct S
{
long m;
};
struct S
fn1 (struct S *a)
{
if (a->m)
a->m |= 2;
return *a;
}
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment