This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/8681: Generates unneeded test
- From: Raimar Falke <rf13 at inf dot tu-dresden dot de>
- To: Christian Ehrhardt <ehrhardt at mathematik dot uni-ulm dot de>
- Cc: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Mon, 2 Dec 2002 17:18:05 +0100
- Subject: Re: c/8681: Generates unneeded test
- References: <20021202144404.9461.qmail@thales.mathematik.uni-ulm.de>
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.