mirror of git://gcc.gnu.org/git/gcc.git
* cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
From-SVN: r179430
This commit is contained in:
parent
467a8db025
commit
4762f56169
|
@ -1,5 +1,7 @@
|
|||
2011-10-02 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
|
||||
|
||||
* cgraphunit.c (ipa_passes): Remove unrechable nodes.
|
||||
* lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
|
||||
* ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
|
||||
|
|
|
@ -426,7 +426,9 @@ verify_edge_count_and_frequency (struct cgraph_edge *e)
|
|||
Remove this once edges are actualy removed from the function at that time. */
|
||||
&& (e->frequency
|
||||
|| (inline_edge_summary_vec
|
||||
&& !inline_edge_summary (e)->predicate))
|
||||
&& ((VEC_length(inline_edge_summary_t, inline_edge_summary_vec)
|
||||
<= (unsigned) e->uid)
|
||||
|| !inline_edge_summary (e)->predicate)))
|
||||
&& (e->frequency
|
||||
!= compute_call_stmt_bb_frequency (e->caller->decl,
|
||||
gimple_bb (e->call_stmt))))
|
||||
|
|
Loading…
Reference in New Issue