From 99e557492e6917ecdf5a1cbd9cb658040cc714de Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 30 Sep 2010 21:21:46 +0000 Subject: Add testcase for PR45758. 2010-09-23 Sebastian Pop PR middle-end/45758 * gfortran.dg/graphite/pr45758.f90: New. From-SVN: r164811 --- gcc/ChangeLog.graphite | 5 ++++ gcc/testsuite/ChangeLog | 5 ++++ gcc/testsuite/gfortran.dg/graphite/pr45758.f90 | 41 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/graphite/pr45758.f90 (limited to 'gcc') diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index a3293ac..af6d053 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,10 @@ 2010-09-23 Sebastian Pop + PR middle-end/45758 + * gfortran.dg/graphite/pr45758.f90: New. + +2010-09-23 Sebastian Pop + * graphite-scop-detection.c (is_scop_p): Free bblist. 2010-09-23 Sebastian Pop diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9ab3d0b..1492bd6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2010-09-30 Sebastian Pop + PR middle-end/45758 + * gfortran.dg/graphite/pr45758.f90: New. + +2010-09-30 Sebastian Pop + PR middle-end/45230 * gcc.dg/graphite/id-pr45230.c: New. diff --git a/gcc/testsuite/gfortran.dg/graphite/pr45758.f90 b/gcc/testsuite/gfortran.dg/graphite/pr45758.f90 new file mode 100644 index 0000000..b0e0a3d --- /dev/null +++ b/gcc/testsuite/gfortran.dg/graphite/pr45758.f90 @@ -0,0 +1,41 @@ +! { dg-options "-O3 -floop-block" } + +MODULE util + INTEGER, PARAMETER :: int_4=4 + INTERFACE sort + MODULE PROCEDURE sort_int_4v + END INTERFACE +CONTAINS + SUBROUTINE sort_int_4v ( arr, n, index ) + INTEGER(KIND=int_4), INTENT(INOUT) :: arr(1:n) + INTEGER, INTENT(OUT) :: INDEX(1:n) + DO i = 1, n + INDEX(i) = i + END DO +1 IF (ir-l