Re: [PATCH] Fix !$omp workshare (PR fortran/69128)

2016-01-07 Thread Paul Richard Thomas
Hi Jakub, Thanks for responding so quickly - it looks good to me. The PR is marked as a 4.9/5/6 regression. Do you intend to backport to 5, at least? Cheers Paul On 7 January 2016 at 22:49, Jakub Jelinek wrote: > Hi! > > As the testcase shows, gfc_trans_scalarized_loop_end can be called > mul

[PATCH] Fix !$omp workshare (PR fortran/69128)

2016-01-07 Thread Jakub Jelinek
Hi! As the testcase shows, gfc_trans_scalarized_loop_end can be called multiple times (and not just for different dimensions of the same loop) on a single assignment, and we could in that case when inside of !$omp workshare generate nested !$omp do, which is obviously incorrect. Fixed by making s