diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2016-02-20 18:26:59 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2016-02-20 18:26:59 +0000 |
commit | ce1ff48e577896b860546564459b4f2000af4985 (patch) | |
tree | 5affc9fbd102413c5ceed1275a056bb5d8a342d6 /gcc/go/go-lang.c | |
parent | bbf27208564cdf8fb583f958ec5d910c3a7d9718 (diff) | |
download | gcc-ce1ff48e577896b860546564459b4f2000af4985.zip gcc-ce1ff48e577896b860546564459b4f2000af4985.tar.gz gcc-ce1ff48e577896b860546564459b4f2000af4985.tar.bz2 |
re PR fortran/69423 (Invalid optimization with deferred-length character)
2016-02-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/69423
* trans-decl.c (create_function_arglist): Deferred character
length functions, with and without declared results, address
the passed reference type as '.result' and the local string
length as '..result'.
(gfc_null_and_pass_deferred_len): Helper function to null and
return deferred string lengths, as needed.
(gfc_trans_deferred_vars): Call it, thereby reducing repeated
code, add call for deferred arrays and reroute pointer function
results. Avoid using 'tmp' for anything other that a temporary
tree by introducing 'type_of_array' for the arrayspec type.
2016-02-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/69423
* gfortran.dg/deferred_character_15.f90 : New test.
From-SVN: r233589
Diffstat (limited to 'gcc/go/go-lang.c')
0 files changed, 0 insertions, 0 deletions