From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22029 invoked by alias); 15 Nov 2014 16:46:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21990 invoked by uid 48); 15 Nov 2014 16:46:10 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63890] [4.9/5.0 regression] Compiling trivial program with -O -p leads to misaligned stack Date: Sat, 15 Nov 2014 16:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01359.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63890 --- Comment #5 from Iain Sandoe --- recent trunk on linux -m32 -O -p doesn't segv - but the stack looks odd at the mcount call. .file "t.c" .text .globl main .type main, @function main: .LFB0: .cfi_startproc leal 4(%esp), %ecx .cfi_def_cfa 1, 0 andl $-16, %esp pushl -4(%ecx) pushl %ebp .cfi_escape 0x10,0x5,0x2,0x75,0 movl %esp, %ebp pushl %ecx .cfi_escape 0xf,0x3,0x75,0x7c,0x6 subl $16, %esp 1: call mcount pushl $0 call exit .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (GNU) 5.0.0 20141112 (experimental) [trunk revision 217427]" .section .note.GNU-stack,"",@progbits