[patch] Fix PR middle-end/98082

2020-12-03 Thread Eric Botcazou
Hi, this fixes an ICE introduced on the mainline by my fix for PR middle-end/97078 where I changed use_register_for_decl to return true at -O0 for a parameter of a thunk. It turns out that we need to do the same for a result in this case. Tested on x86-64/Linux, OK for the mainline? 2020-12-

Re: [patch] Fix PR middle-end/98082

2020-12-03 Thread Richard Biener via Gcc-patches
On Thu, Dec 3, 2020 at 11:49 AM Eric Botcazou wrote: > > Hi, > > this fixes an ICE introduced on the mainline by my fix for PR middle-end/97078 > where I changed use_register_for_decl to return true at -O0 for a parameter of > a thunk. It turns out that we need to do the same for a result in this