Ethereal-dev: Re: [ethereal-dev] memcpy problem

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: David Frascone <dave@xxxxxxxxxxxx>
Date: Fri, 28 Jul 2000 16:31:14 -0500
> >From the symptoms, from the fact that adding "-fno-builtin" made the
> problem go away, and from the fact that the original poster works for a
> company whose products use a processor that faults on unaligned
> accesses, and an OS that reports unaligned access faults as bus errors,
> I suspect the problem may be that GCC 2.95.2 may be generating
> insufficiently paranoid code, and that it's doing "ldd"/"std" pairs or
> something evil such as that.

Well, as picky as the Sparc architecture is about byte alignment, it really
doesn't care when you're only doing a copy.  It just cares if you try to
reference the data as a long, short, etc.