diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cgraph.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2168c4b..5666ce0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2013-08-31 Jan Hubicka <jh@suse.cz> + * cgraph.c (cgraph_speculative_call_info): Fix ref lookup + +2013-08-31 Jan Hubicka <jh@suse.cz> + * basic-block.h (apply_scale): Make scale parmeter gcov_type. 2013-08-31 Uros Bizjak <ubizjak@gmail.com> diff --git a/gcc/cgraph.c b/gcc/cgraph.c index d895224..88d7d98 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1151,7 +1151,7 @@ cgraph_speculative_call_info (struct cgraph_edge *e, i, ref); i++) if (ref->speculative && ((ref->stmt && ref->stmt == e->call_stmt) - || (ref->lto_stmt_uid == e->lto_stmt_uid))) + || (!ref->stmt && ref->lto_stmt_uid == e->lto_stmt_uid))) { reference = ref; break; |