From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15462 invoked by alias); 29 Aug 2014 14:37:46 -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 15389 invoked by uid 48); 29 Aug 2014 14:37:35 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/62281] gcc doesn't conform to Solaris 32-bit ABI by expecting 16-byte stack alignment Date: Fri, 29 Aug 2014 14:37: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: 4.9.1 X-Bugzilla-Keywords: ABI, ssemmx X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc target_milestone 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-08/txt/msg01996.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62281 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at gcc dot gnu.org Target Milestone|--- |5.0 --- Comment #6 from Rainer Orth --- I've been seeing the same issue in PR middle-end/61949, but only on Solaris 10, not S11, and the failures have been intermittent (i.e. happened during one bootstrap, but were gone a week later). Regarding > I believe the problem was fixed for the limited case of Solaris 9 x86 in bug > 60107. However, the analysis for this fix seems slightly off. It infers that, > because Solaris 10 creates outgoing thread stacks aligned on 16 bytes, the > 32-bit ABI has changed to 16-byte stack alignment on this platform, which isn't > correct. I believe the i386 psABI is irrelevant here: while it requires word alignment, it doesn't preclude that Solaris guarantees a stricter alignment, which from what I've seen both S10 and S11 do. > I suggest -mincoming-stack-boundary=2 should be the default for all 32-bit > Solaris binaries. Before making any changes in this area, I'd like word from the responsible libc engineer (Roger Faulkner probably) what various Solaris versions do and don't guarantee. Rainer