On Sun, Jan 26, 2003 at 10:13:38AM -0000, [EMAIL PROTECTED] wrote: > Synopsis: optimisation on sparc leads to unalligned access in memcpy
> I'm fairly sure this has been discussed before, but I can't find > the reference right away. The problem is known, and I consider > the input program incorrect. I had the same problem with netstat and nettools on sparc and another platform. I noticed that using bcopy() instead of memcpy() would work. It happens very of for networking tools because setting up ip packet structures inside a memory buffer will often require unalligned access. My bug sometimes later vanished, I am sure this was caused by a new gcc version. Greetings Bernd -- (OO) -- [EMAIL PROTECTED] -- ( .. ) [EMAIL PROTECTED],linux.de,debian.org} http://home.pages.de/~eckes/ o--o *plush* 2048/93600EFD [EMAIL PROTECTED] +497257930613 BE5-RIPE (O____O) When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!