From: Jan Hubicka Date: Thu, 9 Jun 2011 23:39:54 +0000 (+0200) Subject: cgraphbuild.c (record_eh_tables): Mark personality function as having address taken. X-Git-Tag: releases/gcc-4.7.0~6109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cf4fb5a36f89586c9446b5d4db29a19bd06531b;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd42b1afa33c..fad5c9d072e3 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 eb9da7fc16c3..961804b415e0 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)