Commit 8594f636 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/51302 (ICE with VOLATILE loop variable)

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-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51302
        * gfortran.dg/volatile13.f90: New.

From-SVN: r181724
parent d6b1c2dc
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
......
......@@ -1259,7 +1259,8 @@ gfc_trans_simple_do (gfc_code * code, stmtblock_t *pblock, tree dovar,
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
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment