Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 2004 17:10:59 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        des@des.no
Cc:        current@freebsd.org
Subject:   Re: recent libalias changes
Message-ID:  <20040705161059.GA52584@walton.maths.tcd.ie>
In-Reply-To: <xzp1xjqbhee.fsf@dwp.des.no>
References:  <20040705133820.GA9159@stud.fit.vutbr.cz> <xzp1xjqbhee.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 05, 2004 at 05:30:49PM +0200, des@des.no wrote:
> Divacky Roman <xdivac02@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040705161059.GA52584>