ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node instead of...
authorJan Hubicka <jh@suse.cz>
Mon, 27 Jun 2011 20:01:44 +0000 (22:01 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 27 Jun 2011 20:01:44 +0000 (20:01 +0000)
* ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
instead of references in node.

From-SVN: r175555

gcc/ChangeLog
gcc/ipa.c

index 2bc4210354feedfce6e55a4174ccb6cdd73c947d..fe982b61539aaa917c834ac537448dded9a4d142 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-27  Jan Hubicka  <jh@suse.cz>
+
+       * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
+       instead of references in node.
+
 2011-06-27  Richard Henderson  <rth@redhat.com>
 
        * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
index 260cc26cc6faba8e5ab0cd306abaf57eb48cc6b3..5b09250d661cd9a0eaff960cfc7084bdeb1fde6b 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -542,13 +542,13 @@ cgraph_address_taken_from_non_vtable_p (struct cgraph_node *node)
 {
   int i;
   struct ipa_ref *ref;
-  for (i = 0; ipa_ref_list_reference_iterate (&node->ref_list, i, ref); i++)
+  for (i = 0; ipa_ref_list_refering_iterate (&node->ref_list, i, ref); i++)
     if (ref->use == IPA_REF_ADDR)
       {
        struct varpool_node *node;
-       if (ref->refered_type == IPA_REF_CGRAPH)
+       if (ref->refering_type == IPA_REF_CGRAPH)
          return true;
-       node = ipa_ref_varpool_node (ref);
+       node = ipa_ref_refering_varpool_node (ref);
        if (!DECL_VIRTUAL_P (node->decl))
          return true;
       }