From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26811 invoked by alias); 2 Dec 2002 16:26:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26792 invoked by uid 71); 2 Dec 2002 16:26:04 -0000 Date: Mon, 02 Dec 2002 08:26:00 -0000 Message-ID: <20021202162604.26789.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Raimar Falke Subject: Re: c/8681: Generates unneeded test Reply-To: Raimar Falke X-SW-Source: 2002-12/txt/msg00065.txt.bz2 List-Id: The following reply was made to PR c/8681; it has been noted by GNATS. From: Raimar Falke To: Christian Ehrhardt Cc: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: c/8681: Generates unneeded test Date: Mon, 2 Dec 2002 17:18:05 +0100 On Mon, Dec 02, 2002 at 03:44:04PM +0100, Christian Ehrhardt wrote: > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8681 > Did this ever work? It DOESN'T for me with: 2.95.2, 3.2, 3.2.1, 3.3. If you mean with "worked" that it had omitted the test in the past: I don't know. It is a new issue for me which I think gcc should optimize. I have also tested intel compiler 6.0 and 7.0 and both don't do the optimization. The sun compiler (Sun WorkShop 6 update 2 C 5.3) however will do the optimization if -depend is given. > This should be reclassified as change request. I can confirm that > the compiler doesn't do an optimization that looks valid to me. Raimar -- email: rf13@inf.tu-dresden.de The trick is to keep breathing.