From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17901 invoked by alias); 3 Aug 2005 21:26:43 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17892 invoked by uid 22791); 3 Aug 2005 21:26:40 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 03 Aug 2005 21:26:40 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j73LQcZL018790 for ; Wed, 3 Aug 2005 17:26:38 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j73LQbV22548; Wed, 3 Aug 2005 17:26:38 -0400 Received: from ballpeen.sfbay.redhat.com (ballpeen.sfbay.redhat.com [172.16.24.33]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j73LQZ9S011390; Wed, 3 Aug 2005 17:26:35 -0400 Received: from ballpeen.sfbay.redhat.com (ballpeen.sfbay.redhat.com [127.0.0.1]) by ballpeen.sfbay.redhat.com (8.13.4/8.13.1) with ESMTP id j73LQYDA017446; Wed, 3 Aug 2005 14:26:34 -0700 Received: (from rth@localhost) by ballpeen.sfbay.redhat.com (8.13.4/8.13.4/Submit) id j73LQXur017445; Wed, 3 Aug 2005 14:26:33 -0700 Date: Wed, 03 Aug 2005 21:26:00 -0000 From: Richard Henderson To: Shaun Jackman Cc: Ian Lance Taylor , Andrew Pinski , Mike Stump , Dave Korn , Paul Koning , gcc@sources.redhat.com Subject: Re: memcpy to an unaligned address Message-ID: <20050803212633.GA17439@redhat.com> References: <200508022037.j72Kbr4T012558@earth.phy.uc.edu> <20050803180011.GA16808@redhat.com> <7f45d93905080311152d530172@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f45d93905080311152d530172@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-SW-Source: 2005-08/txt/msg00127.txt.bz2 On Wed, Aug 03, 2005 at 12:15:05PM -0600, Shaun Jackman wrote: > I'm not sure I understood the last line. s is a structure, and its > address is aligned. How would you pass it to memcpy, and why would it > generate an unaligned copy? In the example I was replying to, S is a pointer to a structure, and it wasn't aligned. r~