diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2010-04-24 09:28:32 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2010-04-24 09:28:32 +0000 |
commit | 991b4da12247eb3e688e47f393229cc098bc7cea (patch) | |
tree | f478c03fe05157ce3c385681dcb888a51104ffd8 /gcc/fortran/trans.h | |
parent | 7b65808d33edf19143af6d0f272cf126f87ca147 (diff) | |
download | gcc-991b4da12247eb3e688e47f393229cc098bc7cea.zip gcc-991b4da12247eb3e688e47f393229cc098bc7cea.tar.gz gcc-991b4da12247eb3e688e47f393229cc098bc7cea.tar.bz2 |
re PR fortran/43841 (Missing temporary for ELEMENTAL function call)
2010-04-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/43841
PR fortran/43843
* trans-expr.c (gfc_conv_expr): Supply an address expression for
GFC_SS_REFERENCE.
(gfc_conv_expr_reference): Call gfc_conv_expr and return for
GFC_SS_REFERENCE.
* trans-array.c (gfc_add_loop_ss_code): Store the value rather
than the address of a GFC_SS_REFERENCE.
* trans.h : Change comment on GFC_SS_REFERENCE.
2010-04-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/43841
PR fortran/43843
* gfortran.dg/elemental_scalar_args_1.f90 : New test.
From-SVN: r158683
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r-- | gcc/fortran/trans.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h index 91f1b77..b332c8e 100644 --- a/gcc/fortran/trans.h +++ b/gcc/fortran/trans.h @@ -126,8 +126,9 @@ typedef enum scalarization loop. */ GFC_SS_SCALAR, - /* Like GFC_SS_SCALAR except it evaluates a pointer to the expression. - Used for elemental function parameters. */ + /* Like GFC_SS_SCALAR it evaluates the expression outside the + loop. Is always evaluated as a reference to the temporary. + Used for elemental function arguments. */ GFC_SS_REFERENCE, /* An array section. Scalarization indices will be substituted during |