Re: [RFC][PR69708] IPA inline not working for function reference in static const struc

2016-03-10 Thread kugan
On 11/03/16 03:39, Martin Jambor wrote: Hi, On Tue, Mar 01, 2016 at 09:04:25AM +1100, kugan wrote: Hi, As discussed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69708 and corresponding mailing list discussion, IPA CP is not detecting a jump-function with the sq function as value. sor

Re: [RFC][PR69708] IPA inline not working for function reference in static const struc

2016-03-10 Thread Martin Jambor
Hi, On Tue, Mar 01, 2016 at 09:04:25AM +1100, kugan wrote: > Hi, > > As discussed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69708 and > corresponding mailing list discussion, IPA CP is not detecting a > jump-function with the sq function as value. > > sorry it took so long for me to loo

[RFC][PR69708] IPA inline not working for function reference in static const struc

2016-02-29 Thread kugan
Hi, As discussed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69708 and corresponding mailing list discussion, IPA CP is not detecting a jump-function with the sq function as value. static int sq(int x) { return x * x; } static const F f = {sq}; ... dosomething (g(f, x)); ... I added