]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/32489 (Endless loop when compiling - middle-end?)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 9 Jan 2010 18:31:00 +0000 (18:31 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 9 Jan 2010 18:31:00 +0000 (18:31 +0000)
2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/32489
* gfortran.dg/array_constructor_33.f90: New test.
gfortran.dg/array_function_5.f90: Add credit.

From-SVN: r155772

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_33.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/array_function_5.f90

index 0b2c3a56a34db8b7c90f1a21a869350b28494c74..c2e9144a847b5444af2c59a1e55a1be4fdb15de0 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+       PR fortran/32489
+       * gfortran.dg/array_constructor_33.f90: New test.
+       gfortran.dg/array_function_5.f90: Add credit.
+
 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
 
        PR debug/42631
diff --git a/gcc/testsuite/gfortran.dg/array_constructor_33.f90 b/gcc/testsuite/gfortran.dg/array_constructor_33.f90
new file mode 100644 (file)
index 0000000..7a7c6fa
--- /dev/null
@@ -0,0 +1,10 @@
+! { dg-do compile }
+! PR20923 gfortran slow for large array constructors.
+! Test case prepared from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>
+program sel
+    implicit none
+    integer(kind=4),parameter      :: n=1000
+    integer(kind=4)                :: i,j
+    real(kind=4),dimension(n*n)    :: vect
+    vect(:) = (/ ((( (i+j+3)),i=1,n),j=1,n) /)
+end
index da4873b6f1694031f857a079ac870c23d614a537..05f3c92d02bc93050f1eef74ae4b2d165ccdff35 100644 (file)
@@ -1,6 +1,7 @@
 ! {  dg-do run )
 ! PR41278 internal compiler error related to matmul and transpose
 ! Test case prepared by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+! Original test case by Chris <cmklaij@hetnet.nl>
 program bug
   implicit none
   real, dimension(3,3) :: matA,matB,matC