+2016-05-09 Richard Biener <rguenther@suse.de>
+
+ PR fortran/70937
+ * trans-decl.c: Include gimplify.h for unshare_expr.
+ (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
+ them into the IL.
+
2016-05-07 Fritz Reese <fritzoreese@gmail.com>
PR fortran/56226
/* Only for gfc_trans_code. Shouldn't need to include this. */
#include "trans-stmt.h"
#include "gomp-constants.h"
+#include "gimplify.h"
#define MAX_LABEL_VALUE 99999
var = gfc_create_var_np (TREE_TYPE (t), NULL);
gfc_add_decl_to_function (var);
- gfc_add_modify (body, var, val);
+ gfc_add_modify (body, var, unshare_expr (val));
if (TREE_CODE (t) == SAVE_EXPR)
TREE_OPERAND (t, 0) = var;
*tp = var;
+2016-05-09 Richard Biener <rguenther@suse.de>
+
+ PR fortran/70937
+ * gfortran.dg/pr70937.f90: New testcase.
+
2016-05-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/ipa/pure-const-3.c: Scan local-pure-const1 dump.
--- /dev/null
+! { dg-do compile }
+! { dg-options "-flto" }
+ SUBROUTINE dbcsr_test_read_args(narg, args)
+ CHARACTER(len=*), DIMENSION(:), &
+ INTENT(out) :: args
+ CHARACTER(len=80) :: line
+ DO
+ args(narg) = line
+ ENDDO
+ END SUBROUTINE dbcsr_test_read_args