This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: memcpy to an unaligned address


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]