From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABBE83851C2D; Sat, 16 May 2020 12:22:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABBE83851C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589631771; bh=Hang6Q/3njL2S7lC3imKqEHJ2g6vRY1CyyBiXYcRgLs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bCPy1Ld1HkNqI+QLdXT0T7uslwQ4iRhu712PBfEso2Oo1WmJRaflYlI47Tz9vUUTy eFgDiuEwuXkBlWd0q/yC6hexnVimSyPQw3DLMLzEQl4Y/PW0emElE0za2ObqvuI/xU uT299JWEtVp2UopcaJHp8JX7R3fNnzZEC7Yi0fIQ= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/95162] -mpreferred-stack-boundary=2 doesn't work with libgcc functions Date: Sat, 16 May 2020 12:22:51 +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: 11.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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2020 12:22:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95162 --- Comment #1 from H.J. Lu --- GCC manual says '-mpreferred-stack-boundary=3DNUM' Attempt to keep the stack boundary aligned to a 2 raised to NUM byte boundary. If '-mpreferred-stack-boundary' is not specified, the default is 4 (16 bytes or 128-bits). *Warning:* If you use this switch, then you must build all modules with the same value, including any libraries. This includes the system libraries and startup modules. c-c++-common/dfp/func-vararg-mixed-2.c has /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ /* { dg-options "-mpreferred-stack-boundary=3D2" } */ which works by pure luck.=