[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#136659: target/9080: optimisation on sparc leads to unalligned access in memcpy



On Sun, Jan 26, 2003 at 10:13:38AM -0000, rth@gcc.gnu.org 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)      -- Bernd_Eckenfels@Wendelinusstrasse39.76646Bruchsal.de --
 ( .. )  ecki@{inka.de,linux.de,debian.org} http://home.pages.de/~eckes/
  o--o     *plush*  2048/93600EFD  eckes@irc  +497257930613  BE5-RIPE
(O____O)  When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!



Reply to: