This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu
- From: "sunjoong at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2007 17:26:12 -0000
- Subject: [Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu
- References: <bug-32391-14714@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from sunjoong at gmail dot com 2007-06-18 17:26 -------
I checked which part of TMalign.f make optimizaton wrong;
In DP subroutine,
DO j=1,NSEQ2
DO i=1,NSEQ1
D=VAL(i-1,j-1)+SCORE(i,j)
H=VAL(i-1,j)
if(DIR(i-1,j))H=H+GAP_OPEN
V=VAL(i,j-1)
if(DIR(i,j-1))V=V+GAP_OPEN
IF((D.GE.H).AND.(D.GE.V)) THEN
DIR(I,J)=.true.
VAL(i,j)=D
ELSE
DIR(I,J)=.false.
if(V.GE.H)then
val(i,j)=v
else
val(i,j)=h
end if
ENDIF
ENDDO
ENDDO
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32391