PR fortran/51302
* trans-stmt.c (gfc_trans_simple_do): Add a fold_convert.
2011-11-25 Tobias Burnus <burnus@net-b.de>
PR fortran/51302
* gfortran.dg/volatile13.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181724
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-11-25 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/51302
+ * trans-stmt.c (gfc_trans_simple_do): Add a fold_convert.
+
2011-11-24 Tobias Burnus <burnus@net-b.de>
PR fortran/51218
loc = code->ext.iterator->start->where.lb->location;
/* Initialize the DO variable: dovar = from. */
- gfc_add_modify_loc (loc, pblock, dovar, from);
+ gfc_add_modify_loc (loc, pblock, dovar,
+ fold_convert (TREE_TYPE(dovar), from));
/* Save value for do-tinkering checking. */
if (gfc_option.rtcheck & GFC_RTCHECK_DO)
+2011-11-25 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/51302
+ * gfortran.dg/volatile13.f90: New.
+
2011-11-24 Andrew MacLeod <amacleod@redhat.com>
PR c/51256
--- /dev/null
+! { dg-do compile }
+!
+! PR fortran/51302
+!
+! Volatile DO variable - was ICEing before
+!
+integer, volatile :: i
+integer :: n = 1
+do i = 1, n
+end do
+end