https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64801
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Thu Jan 29 07:43:14 2015 New Revision: 220230 URL: https://gcc.gnu.org/viewcvs?rev=220230&root=gcc&view=rev Log: PR ipa/64801 * gcc.dg/tree-ssa/pr64801.c: New testcase. * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter; make sane BB profile. (cgraph_node::expand_thunk): Make sane BB profile. (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p. * cgraph.h (init_lowered_empty_function): Update prototype. * config/i386/i386.c (make_resolver_func): Update call. * predict.c (gate): Disable branch prediction pass if profile is already there. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/pr64801.c Modified: trunk/gcc/ChangeLog trunk/gcc/cgraph.h trunk/gcc/cgraphunit.c trunk/gcc/config/i386/i386.c trunk/gcc/predict.c trunk/gcc/testsuite/ChangeLog