2010-11-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44964
* ipa-inline.c (cgraph_flatten): Check that SSA form matches.
* gcc.dg/pr44964.c: New testcase.
From-SVN: r166543
+2010-11-10 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/44964
+ * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
+
2010-11-10 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/46351
continue;
}
+ if (gimple_in_ssa_p (DECL_STRUCT_FUNCTION (node->decl))
+ != gimple_in_ssa_p (DECL_STRUCT_FUNCTION (e->callee->decl)))
+ {
+ if (dump_file)
+ fprintf (dump_file, "Not inlining: SSA form does not match.\n");
+ continue;
+ }
+
/* Inline the edge and flatten the inline clone. Avoid
recursing through the original node if the node was cloned. */
if (dump_file)
+2010-11-10 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/44964
+ * gcc.dg/pr44964.c: New testcase.
+
2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt10.adb: Fix typo.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-fkeep-inline-functions -O" } */
+
+static inline __attribute__ ((const))
+void baz (int i)
+{
+}
+
+static __attribute__ ((always_inline))
+inline __attribute__ ((flatten))
+void bar (void)
+{
+ baz (0);
+}
+
+void
+foo (void)
+{
+ bar ();
+}
+