From 7bd5dad24907ba68a81365932d442d40460e4ed0 Mon Sep 17 00:00:00 2001 From: Louis Krupp Date: Wed, 18 Jan 2017 21:41:48 +0000 Subject: re PR fortran/50069 (FORALL fails on a character array) 2017-01-18 Louis Krupp 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 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 --- gcc/fortran/lang.opt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/fortran/lang.opt') diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index 9670bf7..bdc621b 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -488,6 +488,10 @@ ffixed-form Fortran RejectNegative Assume that the source file is fixed form. +ftest-forall-temp +Fortran Var(flag_test_forall_temp) Init(0) +Force creation of temporary to test infrequently-executed forall code + finteger-4-integer-8 Fortran RejectNegative Var(flag_integer4_kind,8) Interpret any INTEGER(4) as an INTEGER(8). -- cgit v1.1