aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-10 16:05:03 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-10 16:05:03 +0000
commit59e0c6b70fdb0c9683597f470d8f795b59812aa8 (patch)
tree519542d4d057ae0ede243e0961271fd7dca731bd /gcc/ipa-inline.c
parent9063bd1de42cb8da02cbb39e33639763dd1e6bd4 (diff)
downloadgcc-59e0c6b70fdb0c9683597f470d8f795b59812aa8.zip
gcc-59e0c6b70fdb0c9683597f470d8f795b59812aa8.tar.gz
gcc-59e0c6b70fdb0c9683597f470d8f795b59812aa8.tar.bz2
re PR tree-optimization/44964 (ICE: SIGSEGV in gimple_default_def (tree-dfa.c:539) with -fkeep-inline-functions)
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
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c8
1 files changed, 8 insertions, 0 deletions
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)