aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ipa-inline.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 78554aa..e7d1575 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
+
+ * ipa-inline.c (check_callers): Add missed pointer de-reference.
+
2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
PR tree-optimization/59356
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 0b7da7a..38157ca 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -762,7 +762,7 @@ check_callers (struct cgraph_node *node, void *has_hot_call)
{
if (!can_inline_edge_p (e, true))
return true;
- if (!has_hot_call && cgraph_maybe_hot_edge_p (e))
+ if (!(*(bool *)has_hot_call) && cgraph_maybe_hot_edge_p (e))
*(bool *)has_hot_call = true;
}
return false;