Commit c146aced by Tobias Burnus Committed by Tobias Burnus

re PR fortran/64726 ([OpenACC] ICE with -fopenacc and reduction(+:a))

2015-01-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64726
        * trans-openmp.c (gfc_trans_oacc_combined_directive): Fix
        loop generation.

2015-01-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64726
        * gfortran.dg/goacc/combined_loop.f90: New.

From-SVN: r220028
parent 631ff3e1
2015-01-23 Tobias Burnus <burnus@net-b.de>
PR fortran/64726
* trans-openmp.c (gfc_trans_oacc_combined_directive): Fix
loop generation.
2015-01-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/61933
......
......@@ -3438,7 +3438,7 @@ gfc_trans_oacc_combined_directive (gfc_code *code)
pblock = &block;
else
pushlevel ();
stmt = gfc_trans_omp_do (code, code->op, pblock, &loop_clauses, NULL);
stmt = gfc_trans_omp_do (code, EXEC_OACC_LOOP, pblock, &loop_clauses, NULL);
if (TREE_CODE (stmt) != BIND_EXPR)
stmt = build3_v (BIND_EXPR, NULL, stmt, poplevel (1, 0));
else
......
2015-01-23 Tobias Burnus <burnus@net-b.de>
PR fortran/64726
* gfortran.dg/goacc/combined_loop.f90: New.
2015-01-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/61933
......
! { dg-do compile }
!
! PR fortran/64726
!
subroutine oacc1()
implicit none
integer :: i
integer :: a
!$acc parallel loop reduction(+:a) ! { dg-excess-errors "sorry, unimplemented: directive not yet implemented" }
do i = 1,5
enddo
end subroutine oacc1
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