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

--- Comment #3 from xiao....@compiler-dev.com <xiao....@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.

Reply via email to