This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[ICE] optimization


Hi all,

Trying to compile my code with vectorization enabled does give errors I don't understand. As I don't know if it's a problem with the Fortran front-end generating bad code or the GCC vectorization doing bad things, I ask you where to bug-report:

---------- CUT ----------
subroutine test(n, v)
  implicit none

  integer :: n, i
  real(8) :: v(n)

  do i = 1, n
    v(i) = 0
  end do

  return
end
---------- CUT ----------

With both gcc version 4.0.0 20041128 and 20041127 on i686/linux, I get:

pc31 ~ $ gfortran -O1 -msse2 -ftree-vectorize -c foo.f90
foo.f90: In function ‘test’:
foo.f90:1: error: ‘then’ label does not match edge at end of bb 1
foo.f90:1: error: ‘else’ label does not match edge at end of bb 1
foo.f90:1: error: ‘then’ label does not match edge at end of bb 7
foo.f90:1: error: ‘else’ label does not match edge at end of bb 7
foo.f90:1: internal compiler error: verify_flow_info failed


Thanks for your help, FX

--
Old chemists don't die. They reach an equilibrium state.


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