From owner-freebsd-stable@FreeBSD.ORG Sun Mar 23 20:06:52 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD6781065670 for ; Sun, 23 Mar 2008 20:06:52 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 974168FC16 for ; Sun, 23 Mar 2008 20:06:52 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 7DE401CC068; Sun, 23 Mar 2008 13:06:52 -0700 (PDT) Date: Sun, 23 Mar 2008 13:06:52 -0700 From: Jeremy Chadwick To: Mikael Ikivesi Message-ID: <20080323200652.GA78803@eos.sc1.parodius.com> References: <20080322192433.3719eb44@pp.inet.fi> <20080323115801.GA68873@eos.sc1.parodius.com> <20080323212745.5de15870@pp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080323212745.5de15870@pp.inet.fi> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: gcc -O2 error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2008 20:06:52 -0000 On Sun, Mar 23, 2008 at 09:27:45PM +0200, Mikael Ikivesi wrote: > On Sun, 23 Mar 2008 04:58:01 -0700 > Jeremy Chadwick wrote: > > > > There's an off-by-one error in your code, which is very likely > > tickling a bug in gcc. > > Thanks.. > I know...took me a while to find it. > And as code still seemed to work when built without -O2 it was hard > to spot. I sent bug report to gcc team as the -O2 did bork it, > regardless of my buggy coding :) Thumbs up! :-) Despite the error, gcc still shouldn't behave that way, so I do hope they fix it. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |