From: Ilya Enkovich Date: Thu, 14 Aug 2014 08:45:45 +0000 (+0000) Subject: cgraph.c (cgraph_node::function_symbol): Fix wrong cgraph_function_node to cgraph_nod... X-Git-Tag: releases/gcc-5.1.0~5504 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1113596f0677222c8b0ae2b67a2194236cbcab4a;p=thirdparty%2Fgcc.git cgraph.c (cgraph_node::function_symbol): Fix wrong cgraph_function_node to cgraph_node::function_symbol refactoring. gcc/ * cgraph.c (cgraph_node::function_symbol): Fix wrong cgraph_function_node to cgraph_node::function_symbol refactoring. From-SVN: r213946 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 50b38fb9cacd..52e7d5e9c10c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-14 Ilya Enkovich + + * cgraph.c (cgraph_node::function_symbol): Fix wrong + cgraph_function_node to cgraph_node::function_symbol + refactoring. + 2014-08-14 Zhenqiang Chen * config/arm/arm.c (arm_option_override): Set max_insns_skipped diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 5a0b9033c25e..370a96a4bb10 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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;