Re: [Patch] omp-expand.cc: Fix wrong code with non-rectangular loop nest [PR111017]

2023-08-18 Thread Jakub Jelinek via Gcc-patches
On Fri, Aug 18, 2023 at 07:15:16PM +0200, Tobias Burnus wrote: > Comments, questions, concerns? > > If not, I intent to commit the attached patch to mainline on Monday > and after the usual grace time to GCC 13 and then to GCC 12. > > PR middle-end/111017 > gcc/ > * omp-expand.cc (exp

[Patch] omp-expand.cc: Fix wrong code with non-rectangular loop nest [PR111017]

2023-08-18 Thread Tobias Burnus
This patch fixes a bug with an OpenMP non-rectangular loop nest where the factor is 0. With the old code before r12-5295-g47de0b56ee455e, the testcase of the PR (or included in the attached patch) worked fine. omp-expand.c contained back then: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/omp-e