Date: Wed, 19 Feb 2003 14:55:06 -0500 From: Don Bowman <don@sandvine.com> To: Darren Henderson <darren@nighttide.net> Cc: stable list <freebsd-stable@FreeBSD.ORG> Subject: RE: spontaneous reboot & gcc Message-ID: <FE045D4D9F7AED4CBFF1B3B813C8533701B35A6C@mail.sandvine.com>
next in thread | raw e-mail | index | archive | help
> From: Kris Kennaway [mailto:kris@obsecurity.org] > > On Tue, Feb 18, 2003 at 11:59:48PM -0500, Darren Henderson wrote: > > > > I'm seeing a spontaneous reboot in one very specific > circumstance that > > appears to be attributable to the use of gcc with -O2 optimization. > > Are you also compiling the kernel with -O2? If so, then "Don't do > that then". -O2 has had known serious bugs in the past. -O2 -pipe -malign-loops=4 -malign-jumps=4 -malign-functions=4 -mcpu=i686 -march=i686 -fno-gcse is what I'm using with good affect. I found one problem for sure with global common sub-expression elimination in the FreeBSD kernel w/ gcc 2.95. gcc 3.X is much more reliable, but not the default compiler for 4.X. The alignment used by default makes for fairly poor performance for pentium-4 / xeon architectures. --don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C8533701B35A6C>