From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3191 invoked by alias); 26 Jul 2010 09:33:14 -0000 Received: (qmail 2995 invoked by uid 48); 26 Jul 2010 09:33:00 -0000 Date: Mon, 26 Jul 2010 09:33:00 -0000 Message-ID: <20100726093300.2994.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/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/msg02827.txt.bz2 ------- Comment #3 from mikpe at it dot uu dot se 2010-07-26 09:33 ------- Created an attachment (id=21312) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21312&action=view) reduced test case in C You don't need C++ to trigger the bug. Proper C with a function that may recurse before returning a packed struct suffices. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070