This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/31029] missed optimization



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]