From: Eric Botcazou <ebotca...@adacore.com> Date: Mon, 12 Jun 2017 11:27:10 +0200
>> I do not see a direct gen_return happening in function.c in the gcc-7 >> branch. >> >> Is it somewhere else? > > There is a call from force_nonfallthru_and_redirect in cfgrtl.c AFAICS. > > So the code generated for your testcase is less optimized with GCC 7 and > later > than with GCC 6 and earlier? Ok, I see. That invocation from cfgrtl.c is not triggered for my testcase in gcc-7 and later. I'll update the return pattern in the gcc-7 branch and mainline in order to cover all possible cases.