diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2013-02-06 20:20:08 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2013-02-06 20:20:08 +0000 |
commit | d0c4e31020ff1f11fe4db2dd1f66f111d2078217 (patch) | |
tree | f118b59c3cb9e7f2b5f9c44077d02a4297f76ba1 /gcc/fortran/trans-array.c | |
parent | c362c6741d4511d76d00b3c7c732838539c11a75 (diff) | |
download | gcc-d0c4e31020ff1f11fe4db2dd1f66f111d2078217.zip gcc-d0c4e31020ff1f11fe4db2dd1f66f111d2078217.tar.gz gcc-d0c4e31020ff1f11fe4db2dd1f66f111d2078217.tar.bz2 |
re PR fortran/55789 (Needless realloc with array constructor.)
2013-02-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/55789
* trans-array.c (trans_array_constructor): Remove condition
'dynamic' = true if the loop ubound is a VAR_DECL.
2013-02-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/55789
* gfortran.dg/array_constructor_41.f90: New test.
From-SVN: r195815
Diffstat (limited to 'gcc/fortran/trans-array.c')
-rw-r--r-- | gcc/fortran/trans-array.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 4553ddc..ee2954e 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -2307,9 +2307,6 @@ trans_array_constructor (gfc_ss * ss, locus * where) } } - if (TREE_CODE (*loop_ubound0) == VAR_DECL) - dynamic = true; - gfc_trans_create_temp_array (&outer_loop->pre, &outer_loop->post, ss, type, NULL_TREE, dynamic, true, false, where); |