c/8681: Generates unneeded test

Raimar Falke rf13@inf.tu-dresden.de
Mon Dec 2 08:18:00 GMT 2002


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.



More information about the Gcc-bugs mailing list