re PR fortran/50069 (FORALL fails on a character array)
authorLouis Krupp <louis.krupp@zoho.com>
Wed, 18 Jan 2017 21:41:48 +0000 (21:41 +0000)
committerLouis Krupp <lkrupp@gcc.gnu.org>
Wed, 18 Jan 2017 21:41:48 +0000 (21:41 +0000)
commit7bd5dad24907ba68a81365932d442d40460e4ed0
treef3c2d51177dd1d7a3ef318c7e91d16919ecfdf48
parentb37589b0c4c23db8e9f1d4825998aea18125435a
re PR fortran/50069 (FORALL fails on a character array)

2017-01-18  Louis Krupp  <louis.krupp@zoho.com>

PR fortran/50069
PR fortran/55086
* gfortran.dg/pr50069_1.f90: New test.
* gfortran.dg/pr50069_2.f90: New test.
* gfortran.dg/pr55086_1.f90: New test.
* gfortran.dg/pr55086_1_tfat.f90: New test.
* gfortran.dg/pr55086_2.f90: New test.
* gfortran.dg/pr55086_2_tfat.f90: New test.
* gfortran.dg/pr55086_aliasing_dummy_4_tfat.f90: New test.

2017-01-18  Louis Krupp  <louis.krupp@zoho.com>

PR fortran/50069
PR fortran/55086
* trans-expr.c (gfc_conv_variable): Don't treat temporary variables
as function arguments.
* trans-stmt.c (forall_make_variable_temp,
generate_loop_for_temp_to_lhs, gfc_trans_assign_need_temp,
gfc_trans_forall_1): Don't adjust offset of forall temporary
for array sections, make forall temporaries work for substring
expressions, improve test coverage by adding -ftest-forall-temp
option to request usage of temporary array in forall code.
* lang.opt: Add -ftest-forall-temp option.
* invoke.texi: Add -ftest-forall-temp option.

From-SVN: r244601
13 files changed:
gcc/fortran/ChangeLog
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr50069_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr50069_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr55086_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr55086_1_tfat.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr55086_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr55086_2_tfat.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr55086_aliasing_dummy_4_tfat.f90 [new file with mode: 0644]