https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255
--- Comment #4 from Andi Kleen <andi-gcc at firstfloor dot org> --- Created attachment 58323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58323&action=edit hack patch to fix arm sibcalls at -O0 The attached patch makes the test case pass on arm. - Some of the sibcall related code in "pro_and_epilogue" was dependent on optimize Should probably add some cfun flag that indicates musttail? I enabled it unconditionally for now. - The thumb2_reorg code corrupts the DF chains for sibcalls when not optimizing. I just disabled it for now, it shouldn't be needed at -O0 since it's just a size optimization. This may not be clean enough to post however. I'm a bit afraid that other ports may break too, will do some testing.