From owner-freebsd-current@FreeBSD.ORG Wed Jul 4 22:10:37 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DBAEF16A469 for ; Wed, 4 Jul 2007 22:10:37 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id 888F913C4B0 for ; Wed, 4 Jul 2007 22:10:37 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1360693wxd for ; Wed, 04 Jul 2007 15:10:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=ao29EVmWNF477TmYT/rG6WVZZTFa2S5YKoPd5UqKYaOxNN/JRP31g069cw/3ckPgVepllht+lxFhgbp6ldiWWoLzEB5bMmkNPNzHmQbDyXKmHPeK6adn8heNge+0jhU7M1X82k3nPhXKWDeqXeI84E88QwLu9SCgJa1h/r7jVBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=g9UD+Qm7A60+JJaC1Dvkb2XNDYhJNJViKcCIYEcUktDgNbpgx1T5/myRImQBwedyDFrAVzA5yyxlccTOl/Wh/RuYJMdJQeoyRNBqa0vUxhtu9m+F/hrZFvf8JIGkwE2OyH4wDdhiuaKePQEIFiUdlwG2tr4FMNuLzq6LhCh2OtA= Received: by 10.70.67.2 with SMTP id p2mr9774545wxa.1183587036704; Wed, 04 Jul 2007 15:10:36 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id v26sm11653999ele.2007.07.04.15.10.35 (version=SSLv3 cipher=OTHER); Wed, 04 Jul 2007 15:10:35 -0700 (PDT) Date: Wed, 4 Jul 2007 18:10:30 -0400 From: Alexander Kabaev To: Roman Divacky Message-ID: <20070704181030.7fb6e705@kan.dnsalias.net> In-Reply-To: <20070704205602.GA80519@freebsd.org> References: <20070625130913.GA50273@nagual.pp.ru> <20070625133951.GA51324@nagual.pp.ru> <8e5ef5f70706250659v48f64410wb5399985a571087e@mail.gmail.com> <20070625145627.GA53685@nagual.pp.ru> <20070625151508.GO27942@hoeg.nl> <20070625152559.GA54055@nagual.pp.ru> <20070625153840.GP27942@hoeg.nl> <20070704121208.GC37187@hoeg.nl> <20070704190148.GA34853@nagual.pp.ru> <20070704205602.GA80519@freebsd.org> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_8m8ZK215=.d5idvukg3O0gP"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: kan@freebsd.org, Andrey Chernov , Ed Schouten , current@freebsd.org Subject: Re: [Patch] Silent gcc 4.2.0 loop optimization bug with -O2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2007 22:10:38 -0000 --Sig_8m8ZK215=.d5idvukg3O0gP Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 4 Jul 2007 22:56:03 +0200 Roman Divacky wrote: > On Wed, Jul 04, 2007 at 11:01:48PM +0400, Andrey Chernov wrote: > > On Wed, Jul 04, 2007 at 02:12:08PM +0200, Ed Schouten wrote: > > > > Index: tree-ssa-loop-niter.c > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > --- tree-ssa-loop-niter.c (revision 126260) > > > > +++ tree-ssa-loop-niter.c (working copy) > > > > @@ -1747,6 +1747,12 @@ infer_loop_bounds_from_undefined (struct > > > > { > > > > bb =3D bbs[i]; > > > >=20 > > > > + /* If BB is not executed in each iteration of the loop, > > > > we cannot > > > > + use the operations in it to infer reliable upper bound > > > > on the > > > > + # of iterations of the loop. */ > > > > + if (!dominated_by_p (CDI_DOMINATORS, loop->latch, bb)) > > > > + continue; > > > > + > > > > for (bsi =3D bsi_start (bb); !bsi_end_p (bsi); bsi_next > > > > (&bsi)) { > > > > tree stmt =3D bsi_stmt (bsi); > > > >=20 > > > > I'm going to test this. > > > >=20 > > > ----- End forwarded message ----- > > >=20 > > > I just tested the patch on my desktop and it seems to work. The > > > test code now compiles like it should. Hopefully it will be part > > > of 4.2.1. > >=20 > > Will be nice if this patch will be commited in instead of my=20 > > sys.mk workaround. Alexander? >=20 > afaik they plan to release gcc 4.2.1 on July 13th, thats a week, > possibly two ahead. maybe we can wait and import the 4.2.1 directly. > 4.2.1 contains some more bug fixes so it would be worth it. >=20 > roman 4.2.1 import will happen when 4.2.1 is released. --=20 Alexander Kabaev --Sig_8m8ZK215=.d5idvukg3O0gP Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGjBrWQ6z1jMm+XZYRAvE8AKDl1gz6a8AifZU9yK2iW1gWvuhghQCg341F bg1pDv5/bgs6kbbyQp82RxQ= =tBQ+ -----END PGP SIGNATURE----- --Sig_8m8ZK215=.d5idvukg3O0gP--