From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4329 invoked by alias); 29 Jan 2006 10:00:41 -0000 Received: (qmail 4321 invoked by uid 22791); 29 Jan 2006 10:00:41 -0000 X-Spam-Check-By: sourceware.org Received: from mxout5.netvision.net.il (HELO mxout5.netvision.net.il) (194.90.9.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Jan 2006 10:00:40 +0000 Received: from [192.168.0.202] ([217.132.241.245]) by mxout5.netvision.net.il (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) with ESMTPA id <0ITU00IX9MH1LEB0@mxout5.netvision.net.il> for gcc-help@gcc.gnu.org; Sun, 29 Jan 2006 12:00:37 +0200 (IST) Date: Sun, 29 Jan 2006 10:00:00 -0000 From: Yaro Pollak Subject: Unaligned access to packed structs on ppc405 To: gcc-help@gcc.gnu.org Message-id: <43DC9245.80502@altair-semi.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-01/txt/msg00229.txt.bz2 Greetings, I am cross-compiling on GCC 3.4.1 for the PowerPC 405, which can handle unaligned accesses in hardware. Whenever I am accessing members of a packed bit-struct by pointer, the compiler produces byte accesses, instead of 4-byte acceses. I've tried to use |-mstrict-align but to no avail. Am I doing something wrong? Thanks in advance, Yaro |