https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119376
--- Comment #18 from Andi Kleen <andi-gcc at firstfloor dot org> --- Yes the multiple passes are a problem. They also do redundant work I believe. But it would be easier to just check opt_tailcalls I think instead of adding a new variable. >Plus, given that tail_calls pass uses a dbg_cnt and isn't done for -O0 or -Og, >having musttail pass depend on just !flag_optimize_sibling_calls isn't correct. So it should be a per function flag? dbg_cnts are hard to handle with globals.