[Bug fortran/101079] [OPENMP] The value of list-item in linear clause in loop construct is not calculated on each iteration

xiao.liu@compiler-dev.com gcc-bugzilla@gcc.gnu.org
Sat Jun 19 02:41:45 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101079

--- Comment #3 from xiao.liu@compiler-dev.com <xiao.liu@compiler-dev.com> ---
(In reply to Jakub Jelinek from comment #1)
> Under discussions in OpenMP language committee, but the latest proposal is
> that this is invalid, you need to increment the linear variable by
> linear-step in the body of the construct.  If that is voted into 5.2, we
> won't be changing GCC for this which always assumed that is the case.  Not
> incrementing it in the body means that the testcase will behave
> significantly differently with -fno-openmp, and also result in worse
> generated code for many cases that do increment the linear variables.

Please ignore the comment 2, the testcase contained in is also wrong, an
increment should be added as the last statement in the loop body.


More information about the Gcc-bugs mailing list