https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70366
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Fri Jan 20 12:04:46 2017 New Revision: 244708 URL: https://gcc.gnu.org/viewcvs?rev=244708&root=gcc&view=rev Log: 2016-03-26 Richard Biener <rguent...@suse.de> Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> 2017-01-20 Martin Liska <mli...@suse.cz> Backport from mainline 2016-03-26 Richard Biener <rguent...@suse.de> Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> PR ipa/70366 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl) instead of TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl)) as 2nd argument to cl_optimization_restore(). Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ipa-inline-transform.c