From 59e0c6b70fdb0c9683597f470d8f795b59812aa8 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 10 Nov 2010 16:05:03 +0000 Subject: re PR tree-optimization/44964 (ICE: SIGSEGV in gimple_default_def (tree-dfa.c:539) with -fkeep-inline-functions) 2010-11-10 Richard Guenther PR tree-optimization/44964 * ipa-inline.c (cgraph_flatten): Check that SSA form matches. * gcc.dg/pr44964.c: New testcase. From-SVN: r166543 --- gcc/ipa-inline.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 0072d61..61fc6b9 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1407,6 +1407,14 @@ cgraph_flatten (struct cgraph_node *node) 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) -- cgit v1.1