[all-commits] [llvm/llvm-project] b2b3a5: Skip compiler directives between OMP PARALLEL DO a...

Mats Petersson via All-commits all-commits at lists.llvm.org
Fri Feb 9 10:06:04 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2b3a5248540320e74347fcdaffbd148d1e9d494
      https://github.com/llvm/llvm-project/commit/b2b3a5248540320e74347fcdaffbd148d1e9d494
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M flang/lib/Semantics/canonicalize-omp.cpp
    M flang/test/Semantics/OpenMP/loop-association.f90

  Log Message:
  -----------
  Skip compiler directives between OMP PARALLEL DO and the loop (#81021)

This fixes a compilation error when code like this is presented to the
compiler:

  !$OMP PARALLEL DO
  !DIR$ VECTOR ALIGNED
  DO 20 i=1,N
     a = a + 0.5
20   CONTINUE

The directive itself is later ignored (with a warning that this is
happening), but because the compiler already errored out before that
point, it completely fails to compile this code. Other compilers accept
the code without complaints.




More information about the All-commits mailing list