From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17217 invoked by alias); 30 Oct 2012 18:38:42 -0000 Received: (qmail 15280 invoked by uid 48); 30 Oct 2012 18:38:19 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/53708] [4.8 Regression] Many failures of the objc tests with -O3 -fnext-runtime and -m32 Date: Tue, 30 Oct 2012 18:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-10/txt/msg02897.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53708 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #12 from Jakub Jelinek 2012-10-30 18:38:14 UTC --- I'm not sure if DECL_USER_ALIGN || DECL_P is the right test for this, I'd say instead if (DECL_SECTION_NAME (decl) != NULL_TREE && !DECL_HAS_IMPLICIT_SECTION_NAME_P (decl)) is what is the problem here, this is what I'm using in asan.c to find out whether it is ok to increase alignment and/or add padding after the decl. It is a common way of filling arrays to just put variables into user defined sections, and expect the whole section to contain an array of those decls. Any alignment increases there or additional paddings of course break that assumption.