aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-06-08 21:21:33 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2009-06-08 19:21:33 +0000
commit21ecdec5dbc85bab4d266ad40bcb60e0d5d28b11 (patch)
tree3e7b5c6fc01692dae73e79052c41bdbbef6e460b /gcc/cgraphunit.c
parent568e8e1e73145dedc973ee9543775b4085e53d26 (diff)
downloadgcc-21ecdec5dbc85bab4d266ad40bcb60e0d5d28b11.zip
gcc-21ecdec5dbc85bab4d266ad40bcb60e0d5d28b11.tar.gz
gcc-21ecdec5dbc85bab4d266ad40bcb60e0d5d28b11.tar.bz2
re PR middle-end/39834 (verify_cgraph_node failed with -O3 -Winline)
PR debug/39834 * gcc.dg/torture/pr39834.c PR middle-end/39834 * cgraphunit.c (save_inline_function_body): Do not copy transform hooks for saved inline bodies. * ipa-passes.c (do_per_function): Do not add the hoks multiple times for given function. From-SVN: r148292
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 70b2682..907488c 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1688,6 +1688,9 @@ save_inline_function_body (struct cgraph_node *node)
DECL_ONE_ONLY (first_clone->decl) = 0;
TREE_PUBLIC (first_clone->decl) = 0;
DECL_COMDAT (first_clone->decl) = 0;
+ VEC_free (ipa_opt_pass, heap,
+ DECL_STRUCT_FUNCTION (first_clone->decl)->ipa_transforms_to_apply);
+ DECL_STRUCT_FUNCTION (first_clone->decl)->ipa_transforms_to_apply = NULL;
#ifdef ENABLE_CHECKING
verify_cgraph_node (first_clone);