[Bug tree-optimization/30092] New: Segmentation fault with -ftreevectorize and SQRT()

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 6 20:02:00 GMT 2006


Using current SVN gcc/gfortran, the following program gives a SEGV with
 gfortran -ftree-vectorize -O3 -c
but not if I remove the -ftree-vectorize option.

The vectorization of sqrt is PR21466 / PR30032, but afterwards it was still
working. Thus it is probably some interaction between the gimple work and the
sqrt vectorization.

------------------------------------------
       SUBROUTINE EOS(NODES, DENS, PRES, CS, CGAMMA)
      IMPLICIT NONE
      INTEGER NODES
      REAL CGAMMA
      REAL, DIMENSION(NODES) :: DENS, PRES, CS
      REAL, PARAMETER :: RGAS = 8.314
      CS(:NODES) = SQRT(CGAMMA*PRES(:NODES)/DENS(:NODES))
      END SUBROUTINE EOS
------------------------------------------


-- 
           Summary: Segmentation fault with -ftreevectorize and SQRT()
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30092



More information about the Gcc-bugs mailing list