diff options
author | Richard Guenther <rguenther@suse.de> | 2008-04-29 16:01:36 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-04-29 16:01:36 +0000 |
commit | ace4eb901316af20584b2273c6ca2056b779ef7a (patch) | |
tree | 6c5fe4a3772a4fe5b65de1e9a97f5516ae540a3d /gcc/testsuite/gfortran.fortran-torture | |
parent | 1447bf0556ad0cb300aabd1b883fedee314b6fca (diff) | |
download | gcc-ace4eb901316af20584b2273c6ca2056b779ef7a.zip gcc-ace4eb901316af20584b2273c6ca2056b779ef7a.tar.gz gcc-ace4eb901316af20584b2273c6ca2056b779ef7a.tar.bz2 |
re PR tree-optimization/36078 (gfortran fails to build cpu2006/465.tonto)
2008-04-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36078
* tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
Update virtual SSA form after cleaning up the CFG.
* gfortran.fortran-torture/compile/pr36078.f90: New testcase.
From-SVN: r134799
Diffstat (limited to 'gcc/testsuite/gfortran.fortran-torture')
-rw-r--r-- | gcc/testsuite/gfortran.fortran-torture/compile/pr36078.f90 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/pr36078.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/pr36078.f90 new file mode 100644 index 0000000..b7f0aa3 --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/compile/pr36078.f90 @@ -0,0 +1,22 @@ + subroutine foo(func,p,eval) + real(kind=kind(1.0d0)), dimension(3,0:4,0:4,0:4) :: p + logical(kind=kind(.true.)), dimension(5,5,5) :: eval + interface + subroutine func(values,pt) + real(kind=kind(1.0d0)), dimension(:), intent(out) :: values + real(kind=kind(1.0d0)), dimension(:,:), intent(in) :: pt + end subroutine + end interface + real(kind=kind(1.0d0)), dimension(125,3) :: pt + integer(kind=kind(1)) :: n_pt + + n_pt = 1 + pt(1:n_pt,:) = & + reshape( & + pack( & + transpose(reshape(p,(/3,125/))), & + spread(reshape(eval,(/125/)),dim=2,ncopies=3)), & + (/n_pt,3/)) + + end subroutine + end |