+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.
--- /dev/null
+/* { 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;
+}
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)