memcpy to an unaligned address
Joe Buck
Joe.Buck@synopsys.COM
Tue Aug 2 21:11:00 GMT 2005
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.
More information about the Gcc
mailing list