diff options
| author | H.J. Lu <hongjiu.lu@intel.com> | 2006-05-20 00:28:14 +0000 |
|---|---|---|
| committer | H.J. Lu <hjl@gcc.gnu.org> | 2006-05-19 17:28:14 -0700 |
| commit | a635db3debd75b2fe1bd839d6470bc6a313c3494 (patch) | |
| tree | c31024deb2fff1611d809b67b595eaa74195a96d /gcc/fortran/trans-expr.c | |
| parent | ab9ddafbc03f7af9c4954ca18a4f44cb1cfaed63 (diff) | |
| download | gcc-a635db3debd75b2fe1bd839d6470bc6a313c3494.zip gcc-a635db3debd75b2fe1bd839d6470bc6a313c3494.tar.gz gcc-a635db3debd75b2fe1bd839d6470bc6a313c3494.tar.bz2 | |
re PR fortran/27662 ([4.1 only]: Transpose doesn't work on function return)
gcc/fortran/
2006-05-19 H.J. Lu <hongjiu.lu@intel.com>
PR fortran/27662
* trans-array.c (gfc_conv_expr_descriptor): Don't zere the
first stride to indicate a temporary.
* trans-expr.c (gfc_conv_function_call): Likewise.
gcc/testsuite/
2006-05-19 H.J. Lu <hongjiu.lu@intel.com>
PR fortran/27662
* gfortran.dg/temporary_1.f90: New file.
From-SVN: r113922
Diffstat (limited to 'gcc/fortran/trans-expr.c')
| -rw-r--r-- | gcc/fortran/trans-expr.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index 4eceab6..b91ebf6 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -2038,11 +2038,6 @@ gfc_conv_function_call (gfc_se * se, gfc_symbol * sym, gfc_trans_create_temp_array (&se->pre, &se->post, se->loop, info, tmp, false, !sym->attr.pointer, callee_alloc); - /* Zero the first stride to indicate a temporary. */ - tmp = gfc_conv_descriptor_stride (info->descriptor, gfc_rank_cst[0]); - gfc_add_modify_expr (&se->pre, tmp, - convert (TREE_TYPE (tmp), integer_zero_node)); - /* Pass the temporary as the first argument. */ tmp = info->descriptor; tmp = build_fold_addr_expr (tmp); |
