NetBSD-Bugs archive

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

Re: bin/40036: rc.d/network doesn't check IPv6 properly with new ifconfig(8)



On Thu, Nov 27, 2008 at 04:30:03PM +0000, Izumi Tsutsui wrote:
 >  "cc -O1 -fno-loop-optimize" fixes the problem, but
 >  the attached changes also fixes it.
 >  
 >  I'm not sure if it's a gcc optimization bug (on m68000 or m68k+softfloat)
 >  or a source bug, but is it okay to commit this diff for workaround?

That would be a gcc bug.

 >  -   struct kwinst kw = {.k_type = KW_T_INT};

However, this initializes all the fields of struct kwinst (there are
quite a few) and the new code without kw does not. It probably doesn't
matter, as familykw[] is file-static, but maybe it's better to be
cautious.

(Does making kw volatile cause the problem to go away?)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index