[PATCH, Fortran, PR 57987] Do not call cgraph_finalize_function multiple times on finalizers

Jan Hubicka hubicka@ucw.cz
Fri Aug 2 11:02:00 GMT 2013


> Hi,
> 
> when looking at another PR, I found out that inliner refused to even
> consider __final_test2_T/0 because, according to the dump, "redefined
> extern inline functions are not considered for inlining."  When I
> looked at why, I realized that the function is "finalized" (by
> cgraph_finalize_function) twice.  Once directly from front-end and
> second time from un-nesting nested functions.
> 
> This patch makes sure that the Fortran front-end does not do that.
> Some details about the patch development over the time is in bugzilla.
> Bootstrapped and tested on x86_64-linux without any problems, OK for
> trunk?

OK (I hope that the fortran part is cgraph centric so I can approve it), thanks.
Thanks for noticing it - those missed inlines seems quite unforutnate.
Honza



More information about the Gcc-patches mailing list