From b4e93f4518eccf83c79145c0b74e6c72ce9bbc0f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 22 Mar 2012 15:33:27 +0100 Subject: re PR tree-optimization/51737 (g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook) PR middle-end/51737 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE parameter. * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype. * ipa-inline-transform.c (save_inline_function_body): Remove copied clone if needed. * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update. PR middle-end/51737 * g++.dg/torture/pr51737.C: New testcase From-SVN: r185694 --- gcc/cgraph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cgraph.h') diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 191364c..db4bcea 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -478,7 +478,7 @@ void cgraph_insert_node_to_hashtable (struct cgraph_node *node); void cgraph_remove_edge (struct cgraph_edge *); void cgraph_remove_node (struct cgraph_node *); void cgraph_add_to_same_comdat_group (struct cgraph_node *, struct cgraph_node *); -void cgraph_remove_node_and_inline_clones (struct cgraph_node *); +bool cgraph_remove_node_and_inline_clones (struct cgraph_node *, struct cgraph_node *); void cgraph_release_function_body (struct cgraph_node *); void cgraph_node_remove_callees (struct cgraph_node *node); struct cgraph_edge *cgraph_create_edge (struct cgraph_node *, -- cgit v1.1