From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15001 invoked by alias); 28 Jul 2010 09:22:13 -0000 Received: (qmail 14967 invoked by uid 48); 28 Jul 2010 09:22:03 -0000 Date: Wed, 28 Jul 2010 09:22:00 -0000 Message-ID: <20100728092203.14966.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/45070] Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ramana at gcc dot gnu dot org" 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: 2010-07/txt/msg03050.txt.bz2 ------- Comment #8 from ramana at gcc dot gnu dot org 2010-07-28 09:22 ------- (In reply to comment #7) > Thanks for the analysis, yes that appears to be the nub of the problem with the > result being removed . I see the same problem on trunk - > I just realized that this is a packed structure and probably need to look up the semantics of this in the AAPCS. IIRC the AAPCS states that it doesn't support packed structures or bitfields at exported interfaces. Adding Richard for some ABI commentary. cheers Ramana -- ramana at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rearnsha at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070