> > diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c > > b/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c > > index 3a6d4cceaba7..44af361e2925 100644 > > --- a/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c > > +++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-1.c > > @@ -1,4 +1,5 @@ > > /* { dg-do compile { target tail_call } } */ > > +/* { dg-options "-O2" } */ > > So I think this is unfortunate - I think when there's a must-tail attribute > we should either run the tailcall pass to check the call even at -O0 or > trust the user with correctness (hoping no optimization interfered with > the ability to tail-call). > > What were the ICEs you ran into?
I just tried and I don't see ICEs with the current test cases anymore. Unfortunately I didn't save the earlier ones and I'm not fully sure what test case i used then. I'll undo that change and watch it. Maybe together with moving the tree pass that's enough to fix -O0. -Andi