summaryrefslogtreecommitdiff
path: root/gcc/cgraphbuild.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-26 11:29:42 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-26 11:29:42 +0000
commitb13addbf0b1d1823d5a69f67bd072f04997a1b13 (patch)
tree79db6f87de758e605e971aa99182afdbb7d6b790 /gcc/cgraphbuild.c
parent95fad61e8e4894d70ff4cb8110daad098a6bcdd1 (diff)
downloadgcc-b13addbf0b1d1823d5a69f67bd072f04997a1b13.tar.gz
2011-01-26 Richard Guenther <rguenther@suse.de>
PR lto/47423 * cgraphbuild.c (record_eh_tables): Record reference to personality function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphbuild.c')
-rw-r--r--gcc/cgraphbuild.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c
index 7bfeac78581..6b8116a612a 100644
--- a/gcc/cgraphbuild.c
+++ b/gcc/cgraphbuild.c
@@ -141,6 +141,11 @@ 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_node (DECL_FUNCTION_PERSONALITY (node->decl)),
+ NULL, IPA_REF_ADDR, NULL);
+
i = fun->eh->region_tree;
if (!i)
return;