https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95076
Bug ID: 95076 Summary: Failure to optimize out stack alignment on function call of different type Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gabravier at gmail dot com Target Milestone: --- long long f(); int g() { return f(); } With -O3, LLVM outputs : g(): # @g() jmp f() # TAILCALL GCC outputs : g(): sub rsp, 8 call f() add rsp, 8 ret