aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-07-02 11:03:33 +0200
committerJakub Jelinek <jakub@redhat.com>2020-07-02 11:03:33 +0200
commit9d50112acfc01f85fe0fb6d88b329e6122e817b3 (patch)
tree3f58021fee5ef016001d29f0db4c6589e57553e7 /gcc/system.h
parent6153cfd7a342f131d347de1aea87f352f3ccd4e7 (diff)
downloadgcc-9d50112acfc01f85fe0fb6d88b329e6122e817b3.zip
gcc-9d50112acfc01f85fe0fb6d88b329e6122e817b3.tar.gz
gcc-9d50112acfc01f85fe0fb6d88b329e6122e817b3.tar.bz2
openmp: Diagnose non-rectangular loops with invalid steps
THe OpenMP 5 standard requires that if some loop in OpenMP loop nest refers to some outer loop's iterator variable, then the subtraction of the multiplication factors for the outer iterator multiplied by the outer increment modulo the inner increment is 0. For loops with non-constants in any of these we can't diagnose it, it would be a task for something like -fsanitize=openmp, but if all these are constant, we can diagnose it. 2020-07-02 Jakub Jelinek <jakub@redhat.com> * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid OpenMP non-rectangular loops. Use XALLOCAVEC. * c-c++-common/gomp/loop-7.c: New test.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions