OSDN Git Service

* cgraphbuild.c (record_eh_tables): Mark personality function as having
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jun 2011 23:39:54 +0000 (23:39 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jun 2011 23:39:54 +0000 (23:39 +0000)
address taken.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174869 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphbuild.c

index cd42b1a..fad5c9d 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-09  Jan Hubicka  <jh@suse.cz>
+
+       * cgraphbuild.c (record_eh_tables): Mark personality function as having
+       address taken.
+
 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
 
        PR rtl-optimization/49154
index eb9da7f..961804b 100644 (file)
@@ -149,9 +149,13 @@ 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_get_create_node (DECL_FUNCTION_PERSONALITY (node->decl)),
-              NULL, IPA_REF_ADDR, NULL);
+    {
+      struct cgraph_node *per_node;
+
+      per_node = cgraph_get_create_node (DECL_FUNCTION_PERSONALITY (node->decl));
+      ipa_record_reference (node, NULL, per_node, NULL, IPA_REF_ADDR, NULL);
+      cgraph_mark_address_taken_node (per_node);
+    }
 
   i = fun->eh->region_tree;
   if (!i)