From owner-freebsd-stable@FreeBSD.ORG Sun Mar 23 11:29:22 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 141A41065670 for ; Sun, 23 Mar 2008 11:29:22 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D2C118FC1C; Sun, 23 Mar 2008 11:29:20 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47E63F14.2070706@FreeBSD.org> Date: Sun, 23 Mar 2008 12:29:24 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Mikael Ikivesi References: <20080322192433.3719eb44@pp.inet.fi> <47E55264.2030004@FreeBSD.org> <20080323121230.2d4f067b@pp.inet.fi> In-Reply-To: <20080323121230.2d4f067b@pp.inet.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 11:29:22 -0000 Mikael Ikivesi wrote: > On Sat, 22 Mar 2008 19:39:32 +0100 > Kris Kennaway wrote: >> So, did you consider perhaps following this advice? ;-) >> >> Kris >> > > Yes I did. > > The reason I send to this list also is that in make.conf manual says: > > CFLAGS (str) Controls the compiler setting when compiling C code. > Optimization levels other than -O and -O2 are not > sup- ported. > > > That means that -O2 should be supported in FreeBSD. And now it happens > to produce bad code. > > GCC people think that this should be fixed in gcc 4.3. > I have not yet installed and verified that. However I tried the code > with linux installation with gcc 4.1.2 and it was ok. > > As I don't known if gcc has some maintaining done in FreeBSD tree by > patching or just by integrating the next snapshot from time to time. > So I just though to report it in case that maintainers of > FreeBSD version of gcc might want to take a look at this. > > > -Mikael > > The latter. When the gcc people fix it, if there is a patch that applies to 4.2 then we could import it. Kris