> Hi, > the problems with LTO build reported by Toon is caused by a hack disabling > jump function in ipa-prop on wpa. The hack is no longer needed and it is > wrong, > since jump function makes no sense when they are not updated. Consequentely > inline cost metrics get lost. > > I am testing the following patch that also fortifies the datastructures > for array overruns (this was how the problem manifested itself). > > Bootstrapping/regtesting x86_64-linux, will commit it if passes. > > Honza > > * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette > WPA hack.
Martin, since indirect inlining at WPA time is enabled for 4.6, I think it is just matter of testcase showing that the fix is needed for 4.6, too (i.e. arrange function A to be inlined to B that passes through callback but use different formal ID to do so.) Honza