re PR fortran/38181 (calls to SIZE not optimized out of loops)
authorJakub Jelinek <jakub@redhat.com>
Thu, 20 Nov 2008 09:42:35 +0000 (10:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 20 Nov 2008 09:42:35 +0000 (10:42 +0100)
commitb41b10e590e2b8b00dc5677520637540378251a0
tree32fbf0f44b765f71c71b0b6e62f00b0e8df1eb11
parentdc5b3407f2997631c15eebccd8c9260e186f3e0a
re PR fortran/38181 (calls to SIZE not optimized out of loops)

PR fortran/38181
* trans-intrinsic.c (gfc_conv_intrinsic_size): Inline 2 argument
size if the second argument is not optional and one argument size
for rank 1 arrays.

* gfortran.dg/array_section_2.f90: Adjust pattern to match
the inlined size0 instead of a size0 call.

From-SVN: r142037
gcc/fortran/ChangeLog
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_section_2.f90