From owner-freebsd-java@FreeBSD.ORG Thu Aug 23 02:19:45 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 7380516A418 for ; Thu, 23 Aug 2007 02:19:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2DC6713C483 for ; Thu, 23 Aug 2007 02:19:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l7N2ImTl024399; Wed, 22 Aug 2007 20:18:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 22 Aug 2007 20:18:51 -0600 (MDT) Message-Id: <20070822.201851.-1889957000.imp@bsdimp.com> To: se@freebsd.org From: "M. Warner Losh" In-Reply-To: <20070819073953.GA36594@Gatekeeper.FreeBSD.org> References: <864piweemc.fsf@santinel.home.ua> <20070819.120136.41629169.ken@tydfam.jp> <20070819073953.GA36594@Gatekeeper.FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 22 Aug 2007 20:18:51 -0600 (MDT) Cc: ken@tydfam.jp, anrays@gmail.com, freebsd-current@freebsd.org, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-java@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: Thu, 23 Aug 2007 02:19:45 -0000 In message: <20070819073953.GA36594@Gatekeeper.FreeBSD.org> Stefan E=DFer writes: : On 2007-08-19 12:01 +0900, Ken Yamada wrote: : > Does this mean that GCC 4.2.1 does not solve "loop optimization b= ug" = : > pointed out by Andrey Chernov (http://docs.freebsd.org/cgi/getmsg= .cgi?fetch=3D282888+0+archive/2007/freebsd-current/20070701.freebsd-cur= rent) 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 leav= e -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 ...). Actually, it was added to the tree and then backed out because it broke the upgrade path. Warner