This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81825] x86_64 stack realignment code is suboptimal
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Aug 2017 17:11:37 +0000
- Subject: [Bug target/81825] x86_64 stack realignment code is suboptimal
- Auto-submitted: auto-generated
- References: <bug-81825-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81825
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
BTW, GCC 8 -O2 generates
.file "foo.i"
.text
.p2align 4,,15
.globl func
.type func, @function
func:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
andq $-32, %rsp
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func, .-func
.ident "GCC: (GNU) 8.0.0 20170810 (experimental)"
.section .note.GNU-stack,"",@progbits