This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: memcpy to an unaligned address
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Mike Stump <mrs at apple dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>,Dave Korn <dave dot korn at artimi dot com>,Paul Koning <pkoning at equallogic dot com>, gcc at sources dot redhat dot com,Shaun Jackman <sjackman at gmail dot com>
- Date: Tue, 2 Aug 2005 14:11:12 -0700
- Subject: Re: memcpy to an unaligned address
- References: <200508022037.j72Kbr4T012558@earth.phy.uc.edu> <33EADFBB-0C16-4FD9-BC0D-E681C0A61C46@apple.com>
On Tue, Aug 02, 2005 at 02:04:16PM -0700, Mike Stump wrote:
> Shaun, want to do up an entry in the manual describing this? We have
> known about this for years and years, but, we don't do a good job
> communicating it to users. Essentially, & doesn't work as one would
> expect on unaligned data, as it produces a pointer to an aligned
> object instead of a pointer to unaligned object.
I suppose we could make & on an unaligned project return a void*. That
isn't really right, but it would at least prevent the cases that we know
don't work from compiling.