recent libalias changes
David Malone
dwmalone at maths.tcd.ie
Mon Jul 5 09:11:01 PDT 2004
On Mon, Jul 05, 2004 at 05:30:49PM +0200, des at des.no wrote:
> Divacky Roman <xdivac02 at stud.fit.vutbr.cz> writes:
> > I can sadly report that recent changes to libalias made by des doesnt
> > help me use natd with -Os built libalias.. it still doesnt work ;(
>
> Could you please try to figure out exactly which optimization option
> breaks libalias? It is most likely one of these:
With Divacky's help we localised his problem to alias.c. The twowords
function breaks the strick aliasing rule, try replacing it with:
static __inline int
twowords(void *p)
{
unsigned char *c = p;
return ((((unsigned short)c[1] + (unsigned short)c[3])<<8) + c[0] + c[2];
}
David.
More information about the freebsd-current
mailing list