re PR lto/47423 (Many testsuite failures caused by missing gxx_visibility_sj0)
authorRichard Guenther <rguenther@suse.de>
Wed, 26 Jan 2011 11:29:42 +0000 (11:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 26 Jan 2011 11:29:42 +0000 (11:29 +0000)
2011-01-26  Richard Guenther  <rguenther@suse.de>

PR lto/47423
* cgraphbuild.c (record_eh_tables): Record reference to personality
function.

From-SVN: r169284

gcc/ChangeLog
gcc/cgraphbuild.c

index 9bd387c12b17c748912fc53659dc75e5d21f2f22..dd7e7530047615447f45a42769f43eec02583a5d 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-26  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/47423
+       * cgraphbuild.c (record_eh_tables): Record reference to personality
+       function.
+
 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
 
        PR debug/45454
index 7bfeac78581d97f96f5a5a749b03989c12f65fd2..6b8116a612a53bc1de2c2c8625a890f3705d6707 100644 (file)
@@ -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;