> Looks generally OK though does this mean people can debug > programs using [[gnu::musttail]] only with optimized builds? It > seems to me we should try harder to make [[gnu::musttail]] work > at -O0 and generally behave the same at all optimization levels?
Yes that's a fair point. The problem is tree-tailcall failing, not the RTL backend. Have to see what it would take to fix. I would prefer to do this as a followon patch though. -Andi