Subject: Re: kern/34751: regular panics in tcp_sack_option on NetBSD/alpha 3.0_STABLE
To: None <christianbiere@gmx.de>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 10/09/2006 12:12:32
christianbiere@gmx.de wrote:

> IOW, that's exactly the reason why memcpy() is used there in
> first place. If it was as simple as using a cast you could
> just write
> 
> 	left = ntohl(*lp);
> 	right = ntohl(*(lp + 1));

The point is that gcc could optimize memcpy() to use normal
load/store insns if the addresses are guranteed aligned.
If you don't think it's valid, please consult gcc guys.
---
Izumi Tsutsui