This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31029] missed optimization
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2007 21:53:35 -0000
- Subject: [Bug tree-optimization/31029] missed optimization
- References: <bug-31029-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-06-20 21:53 -------
(In reply to comment #0)
> DO ig=igmin,0
> ig2=1-ig
> if (ig.EQ.ig2) CALL link_error()
> ENDDO
> END
If igmin is -huge(0), (1-ig) can wrap, so ig2 might eventually be equal to ig,
no? (although I agree for wrapping arithmetic, it will never be the case)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31029