PR tree-optimize/48929
* gcc.c-torture/compile/pr48929.c: New testcase.
* ipa-inline-analysis.c (remap_edge_predicates): Fix handling
of empty predicate.
From-SVN: r174638
+2011-06-04 Jan Hubicka <jh@suse.cz>
+
+ PR tree-optimize/48929
+ * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
+ of empty predicate.
+
2011-06-04 Alexandre Oliva <aoliva@redhat.com>
PR debug/48333
if (!e->inline_failed)
remap_edge_predicates (e->callee, info, callee_info, operand_map,
possible_truths, toplev_predicate);
+ else
+ edge_set_predicate (e, toplev_predicate);
}
for (e = node->indirect_calls; e; e = e->next_callee)
{
e->frequency = 0;
}
}
+ else
+ edge_set_predicate (e, toplev_predicate);
}
}
+2011-06-04 Jan Hubicka <jh@suse.cz>
+
+ PR tree-optimize/48929
+ * gcc.c-torture/compile/pr48929.c: New testcase.
+
2011-06-04 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/guality/rotatetest.c (f5, f6): Fix up pastos.
--- /dev/null
+/*{ dg-options "-O -findirect-inlining" }*/
+void bar ();
+
+static void
+f4 (double di, double d, double *dd)
+{
+ if (d == 0 && di == 0)
+ *dd = 0;
+ bar ();
+}
+
+static inline void
+f3 (int i, double d)
+{
+ double di = i;
+ double dd;
+ f4 (di, d, &dd);
+}
+
+static inline void
+f2 (int i, double d)
+{
+ if (d < 0)
+ f3 (i, d);
+}
+
+void
+f1 ()
+{
+ f2 (0, 1);
+}
+