> @@ -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
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
>
>
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