From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15193 invoked by alias); 21 Oct 2009 12:20:10 -0000 Received: (qmail 14987 invoked by uid 48); 21 Oct 2009 12:19:52 -0000 Date: Wed, 21 Oct 2009 12:20:00 -0000 Message-ID: <20091021121952.14986.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/37954] odd sized packed structures passed by value, under ARM, cause lockup of application 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: 2009-10/txt/msg01824.txt.bz2 ------- Comment #8 from mikpe at it dot uu dot se 2009-10-21 12:19 ------- I can reproduce the misalignment exceptions on armv5tel-linux-gnueabi with gcc-4.3.4 at -O0 but not with gcc-4.4.2. The loop in main() which iterates over the packed array creates a misaligned pointer from which it performs word-sized loads, which causes misalignment exceptions. gcc-4.4.2 generates very different code which doesn't make assumptions about alignment. -- mikpe at it dot uu dot se changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37954