Re: [PATCH v7 2/9] Fix pro_and_epilogue for sibcalls at -O0

2024-06-02 Thread Andi Kleen
> @@ -6557,7 +6558,7 @@ rest_of_handle_thread_prologue_and_epilogue > (function *fun) >  { >    /* prepare_shrink_wrap is sensitive to the block structure of the > control >       flow graph, so clean it up first.  */ > -  if (optimize) > +  if (cfun->tail_ca

Re: [PATCH v7 2/9] Fix pro_and_epilogue for sibcalls at -O0

2024-06-02 Thread Andrew Pinski
On Sun, Jun 2, 2024, 10:24 AM Andi Kleen wrote: > Some of the cfg fixups in pro_and_epilogue for sibcalls were dependent on > "optimize". > Make them check cfun->tail_call_marked instead to handle the -O0 musttail > case. This fixes the musttail test cases on arm targets. > > PR115255 > >

[PATCH v7 2/9] Fix pro_and_epilogue for sibcalls at -O0

2024-06-02 Thread Andi Kleen
Some of the cfg fixups in pro_and_epilogue for sibcalls were dependent on "optimize". Make them check cfun->tail_call_marked instead to handle the -O0 musttail case. This fixes the musttail test cases on arm targets. PR115255 gcc/ChangeLog: * function.cc (thread_prologue_and_epi