From owner-freebsd-java@FreeBSD.ORG Sun Aug 19 08:06:37 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7243116A469 for ; Sun, 19 Aug 2007 08:06:37 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp001.mail.ukl.yahoo.com (smtp001.mail.ukl.yahoo.com [217.12.11.32]) by mx1.freebsd.org (Postfix) with SMTP id E0C7B13C46A for ; Sun, 19 Aug 2007 08:06:36 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: (qmail 44965 invoked from network); 19 Aug 2007 07:39:54 -0000 Received: from unknown (HELO Gatekeeper.FreeBSD.org) (st.esser@80.135.178.118 with login) by smtp001.mail.ukl.yahoo.com with SMTP; 19 Aug 2007 07:39:54 -0000 X-YMail-OSG: RmGRFIwVM1lZeWAhlnixiBk53lqOnLUNG9x3IwTUk1VJcCmFmYpkCPhSeVr.4cRs3c86oVu7J66x1beaeHw3lrV0DfbxhwJHdA-- Received: by Gatekeeper.FreeBSD.org (Postfix, from userid 200) id EB5A418FB; Sun, 19 Aug 2007 09:39:53 +0200 (CEST) Date: Sun, 19 Aug 2007 09:39:53 +0200 From: Stefan =?iso-8859-1?Q?E=DFer?= To: Ken Yamada Message-ID: <20070819073953.GA36594@Gatekeeper.FreeBSD.org> Mail-Followup-To: Stefan =?iso-8859-1?Q?E=DFer?= , Ken Yamada , anrays@gmail.com, glewis@eyesbeyond.com, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-current@freebsd.org, freebsd-java@freebsd.org References: <20070815144804.GC5151@misty.eyesbeyond.com> <20070818.213208.74754361.ken@tydfam.jp> <864piweemc.fsf@santinel.home.ua> <20070819.120136.41629169.ken@tydfam.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070819.120136.41629169.ken@tydfam.jp> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: anrays@gmail.com, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-java@freebsd.org, freebsd-current@freebsd.org Subject: Re: Gcc bugs break java/jdk15 build? [Workaround] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2007 08:06:37 -0000 On 2007-08-19 12:01 +0900, Ken Yamada wrote: > Does this mean that GCC 4.2.1 does not solve "loop optimization bug" > pointed out by Andrey Chernov (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=282888+0+archive/2007/freebsd-current/20070701.freebsd-current) on 4.2.0? > > Is it a good idea of adding -fno-tree-vrp to CFLAGS in /etc/make.conf > to avoid this optimization bug for all compilation? (BTW, I leave -O3 > of CFLAGS as is in make.conf and just added -fno-tree-vrp to the end of > the line.) I did just that (added -fno-tree-vrp to CFLAGS) after it was found that gcc-4.2 had the optimizer bug, and have continued to build my system with -O2 (or other optimization levels as required). This seems to work just fine (no problems with ports that are not working when built with a plain -O2). I had suggested to make -fno-tree-vrp the default for our CC (could be overridden on the command line, but would allow to use all -O levels without being hit by the compiler bug; but it appears that nobody else liked the idea at that time, i.e. no response at all ...). Regards, STefan