From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21663 invoked by alias); 28 Jul 2010 09:35:20 -0000 Received: (qmail 21495 invoked by uid 48); 28 Jul 2010 09:34:58 -0000 Date: Wed, 28 Jul 2010 09:35:00 -0000 Message-ID: <20100728093458.21494.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: "rearnsha 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/msg03055.txt.bz2 ------- Comment #9 from rearnsha at gcc dot gnu dot org 2010-07-28 09:34 ------- (In reply to comment #8) > 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. That just means the ABI doesn't specify the behaviour here. Portable code shouldn't use this feature, but that doesn't mean that a compiler can't support it as an extension. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070