From 9cf4fb5a36f89586c9446b5d4db29a19bd06531b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 10 Jun 2011 01:39:54 +0200 Subject: [PATCH] cgraphbuild.c (record_eh_tables): Mark personality function as having address taken. * cgraphbuild.c (record_eh_tables): Mark personality function as having address taken. From-SVN: r174869 --- gcc/ChangeLog | 5 +++++ gcc/cgraphbuild.c | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd42b1afa33..fad5c9d072e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-09 Jan Hubicka + + * cgraphbuild.c (record_eh_tables): Mark personality function as having + address taken. + 2011-06-10 Hans-Peter Nilsson PR rtl-optimization/49154 diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c index eb9da7fc16c..961804b415e 100644 --- a/gcc/cgraphbuild.c +++ b/gcc/cgraphbuild.c @@ -149,9 +149,13 @@ record_eh_tables (struct cgraph_node *node, struct function *fun) eh_region i; if (DECL_FUNCTION_PERSONALITY (node->decl)) - ipa_record_reference (node, NULL, - cgraph_get_create_node (DECL_FUNCTION_PERSONALITY (node->decl)), - NULL, IPA_REF_ADDR, NULL); + { + struct cgraph_node *per_node; + + per_node = cgraph_get_create_node (DECL_FUNCTION_PERSONALITY (node->decl)); + ipa_record_reference (node, NULL, per_node, NULL, IPA_REF_ADDR, NULL); + cgraph_mark_address_taken_node (per_node); + } i = fun->eh->region_tree; if (!i) -- 2.30.2