OSDN Git Service

2011-01-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jan 2011 11:29:42 +0000 (11:29 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jan 2011 11:29:42 +0000 (11:29 +0000)
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

gcc/ChangeLog
gcc/cgraphbuild.c

index 9bd387c..dd7e753 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 7bfeac7..6b8116a 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;