From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25962 invoked by alias); 28 Jul 2010 09:46:09 -0000 Received: (qmail 25839 invoked by uid 48); 28 Jul 2010 09:45:40 -0000 Date: Wed, 28 Jul 2010 09:46:00 -0000 Message-ID: <20100728094540.25838.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: "mikpe at it dot uu dot se" 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/msg03057.txt.bz2 ------- Comment #10 from mikpe at it dot uu dot se 2010-07-28 09:45 ------- (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. In the C test case the function returning a packed struct is `static' and called only by name from within the same translation unit. Surely that's not an "exported interface". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070