On Thu, Dec 3, 2020 at 11:49 AM Eric Botcazou <botca...@adacore.com> 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 case. > > Tested on x86-64/Linux, OK for the mainline?
OK. Richard. > > 2020-12-03 Eric Botcazou <ebotca...@adacore.com> > > PR middle-end/98082 > * function.c (use_register_for_decl): Also return true for a result > if cfun->tail_call_marked is true. > > > 2020-12-03 Eric Botcazou <ebotca...@adacore.com> > > * g++.dg/cpp2a/pr98082.C: New test. > > -- > Eric Botcazou