aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphbuild.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-01-26 11:29:42 +0000
committerRichard Guenther <rguenther@suse.de>2011-01-26 11:29:42 +0000
commitab7a4a97306d808365ab22b8cd3f5d16fc57ea26 (patch)
tree79db6f87de758e605e971aa99182afdbb7d6b790 /gcc/cgraphbuild.c
parent26c48ee92972fe43c73d107f4361909ecf4e4b12 (diff)
2011-01-26 Richard Guenther <rguenther@suse.de>
PR lto/47423 * cgraphbuild.c (record_eh_tables): Record reference to personality function. git-svn-id: https://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;