aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2014-08-14 08:45:45 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2014-08-14 08:45:45 +0000
commit1113596f0677222c8b0ae2b67a2194236cbcab4a (patch)
tree4badff2942685b150b3b6856fd94ada6d7954475 /gcc
parent4d2df0f4704665c047d84b195a5c1a2ba9b7a28b (diff)
downloadgcc-1113596f0677222c8b0ae2b67a2194236cbcab4a.zip
gcc-1113596f0677222c8b0ae2b67a2194236cbcab4a.tar.gz
gcc-1113596f0677222c8b0ae2b67a2194236cbcab4a.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cgraph.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 50b38fb..52e7d5e9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 5a0b903..370a96a 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;