]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cgraph.c (cgraph_node::function_symbol): Fix wrong cgraph_function_node to cgraph_nod...
authorIlya Enkovich <ilya.enkovich@intel.com>
Thu, 14 Aug 2014 08:45:45 +0000 (08:45 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Thu, 14 Aug 2014 08:45:45 +0000 (08:45 +0000)
gcc/
* cgraph.c (cgraph_node::function_symbol): Fix wrong
cgraph_function_node to cgraph_node::function_symbol
refactoring.

From-SVN: r213946

gcc/ChangeLog
gcc/cgraph.c

index 50b38fb9cacd8ddd81cf7336b4e75637fae4184c..52e7d5e9c10cf76925538c088faa38d13c30d3f0 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * cgraph.c (cgraph_node::function_symbol): Fix wrong
+       cgraph_function_node to cgraph_node::function_symbol
+       refactoring.
+
 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
 
        * config/arm/arm.c (arm_option_override): Set max_insns_skipped
index 5a0b9033c25e69e4b5f702bc4b34190fc70d6d40..370a96a4bb104b0a1481b499af3102d041cf005a 100644 (file)
@@ -3000,11 +3000,11 @@ cgraph_node::verify_cgraph_nodes (void)
 cgraph_node *
 cgraph_node::function_symbol (enum availability *availability)
 {
-  cgraph_node *node = NULL;
+  cgraph_node *node = this;
 
   do
     {
-      node = ultimate_alias_target (availability);
+      node = node->ultimate_alias_target (availability);
       if (node->thunk.thunk_p)
        {
          node = node->callees->callee;