From owner-freebsd-current@FreeBSD.ORG Wed Jul 4 19:01:52 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 3C8E316A400; Wed, 4 Jul 2007 19:01:52 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id A61CA13C44C; Wed, 4 Jul 2007 19:01:51 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l64J1ou6034917; Wed, 4 Jul 2007 23:01:50 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nagual.pp.ru; s=default; t=1183575710; bh=GetBnyAKWw00H2byemtp8isfaIqwl3YYO8JJkjJ dQCY=; l=1700; h=Received:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent; b=fX+tsywVXTLUdIGhoE9L E5ozm9K1q9lXmFM6+9h5yCs1S9kcuAFCmwyWhok9VwpTwcJ8ch32zBGOBr5LfjSn5Hs HLKxhovGQhPiYl8wqUz3u2JbHsV+Ft0Jytu7h4GufAxXbHM0jnMZflXNnGhYA0uuwwO CC299vXlCLlSxc8Uo= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l64J1nYh034916; Wed, 4 Jul 2007 23:01:49 +0400 (MSD) (envelope-from ache) Date: Wed, 4 Jul 2007 23:01:48 +0400 From: Andrey Chernov To: Ed Schouten Message-ID: <20070704190148.GA34853@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Ed Schouten , Alexander Kabaev , current@freebsd.org, kan@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <20070704121208.GC37187@hoeg.nl> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: kan@freebsd.org, 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 19:01:52 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. Will be nice if this patch will be commited in instead of my=20 sys.mk workaround. Alexander? --=20 http://ache.pp.ru/ --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGi+6cVg5YK5ZEdN0RAhzAAKCqE4wnrMMbAhPrp6Saz9tjcoU9nwCgoYpS mlV2E7p++fOAz/AFl/Ri7pc= =6bc6 -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--