From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46313 invoked by alias); 12 Oct 2015 17:25:22 -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 46279 invoked by uid 48); 12 Oct 2015 17:25:19 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/67940] New: Wrong stack alignment adjustment Date: Mon, 12 Oct 2015 17:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: 2015-10/txt/msg00910.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67940 Bug ID: 67940 Summary: Wrong stack alignment adjustment Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: ubizjak at gmail dot com Target Milestone: --- On gcc-5-branch, i386 has if (stack_realign_fp) offset = (offset + stack_alignment_needed) & -stack_alignment_needed; ... to pass verification of stack_pointer_offset at the end. */ m->fs.sp_offset = (m->fs.sp_offset + align_bytes) & -align_bytes; -1 is missing.