This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Apr 29, 2004 at 07:46:50AM -0700, Dickinson, Derek wrote: > >> Last time I checked (with the ARM and H8 gcc's) you could. It's > >> just that dereferencing the pointer won't work right. Copying > >> to/from the value of the pointer with memcpy() works fine. > >> > > > >No, even that isn't guaranteed, since the compiler is entitled to "know" > >the implementation of memcpy, and therefore to implement it inline. > > Is this true? I thought memcpy was guaranteed to work on unaligned > addresses regardless of whether it is inline. memcpy() has always worked for me with any alignment of source and destination. -- Grant Edwards grante@visi.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |