From 21d6a1c71eede3f1cfeac9e53888d65b0b58d366 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 26 Jan 2011 11:29:42 +0000 Subject: re PR lto/47423 (Many testsuite failures caused by missing gxx_visibility_sj0) 2011-01-26 Richard Guenther PR lto/47423 * cgraphbuild.c (record_eh_tables): Record reference to personality function. From-SVN: r169284 --- gcc/ChangeLog | 6 ++++++ gcc/cgraphbuild.c | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9bd387c..dd7e753 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-01-26 Richard Guenther + + PR lto/47423 + * cgraphbuild.c (record_eh_tables): Record reference to personality + function. + 2011-01-26 Alexandre Oliva PR debug/45454 diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c index 7bfeac7..6b8116a 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; -- cgit v1.1