[all-commits] [llvm/llvm-project] 18f8e2: [flang][OpenMP] Make static duration variables def...

Kajetan Puchalski via All-commits all-commits at lists.llvm.org
Mon Jun 9 07:52:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18f8e2381580d1d02726b6751d61351a1d40b432
      https://github.com/llvm/llvm-project/commit/18f8e2381580d1d02726b6751d61351a1d40b432
  Author: Kajetan Puchalski <kajetan.puchalski at arm.com>
  Date:   2025-06-09 (Mon, 09 Jun 2025)

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/resolve-directives.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/OpenMP/common-block.f90
    M flang/test/Semantics/OpenMP/declare-target-common-block.f90
    M flang/test/Semantics/OpenMP/implicit-dsa.f90
    M flang/test/Semantics/OpenMP/symbol01.f90
    M flang/test/Semantics/offsets03.f90
    M flang/test/Semantics/resolve121.f90
    M flang/test/Semantics/symbol33.f90

  Log Message:
  -----------
  [flang][OpenMP] Make static duration variables default to shared DSA (#142783)

According to the OpenMP standard, variables with static storage duration
are predetermined as shared.
Add a check when creating implicit symbols for OpenMP to fix them
erroneously getting set to firstprivate.

Fixes llvm#140732.

---------

Signed-off-by: Kajetan Puchalski <kajetan.puchalski at arm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list