From owner-freebsd-stable@FreeBSD.ORG Sun Mar 23 11:22:30 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 49690106566B; Sun, 23 Mar 2008 11:22:30 +0000 (UTC) (envelope-from mikael.ikivesi@pp.inet.fi) Received: from pne-smtpout3-sn2.hy.skanova.net (pne-smtpout3-sn2.hy.skanova.net [81.228.8.111]) by mx1.freebsd.org (Postfix) with ESMTP id 06A568FC17; Sun, 23 Mar 2008 11:22:29 +0000 (UTC) (envelope-from mikael.ikivesi@pp.inet.fi) Received: from localhost (80.221.11.59) by pne-smtpout3-sn2.hy.skanova.net (7.3.129) (authenticated as tansmi-f) id 478BDB96003AD6AA; Sun, 23 Mar 2008 11:12:59 +0100 Date: Sun, 23 Mar 2008 12:12:30 +0200 From: Mikael Ikivesi To: Kris Kennaway Message-ID: <20080323121230.2d4f067b@pp.inet.fi> In-Reply-To: <47E55264.2030004@FreeBSD.org> References: <20080322192433.3719eb44@pp.inet.fi> <47E55264.2030004@FreeBSD.org> X-Mailer: Claws Mail 3.3.0 (GTK+ 2.12.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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:22:30 -0000 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