[all-commits] [llvm/llvm-project] ff78cd: [flang] fix private pointers and default initializ...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Dec 5 05:10:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff78cd5f3d6ae8e7084f0aff4df4164ff5a38af9
      https://github.com/llvm/llvm-project/commit/ff78cd5f3d6ae8e7084f0aff4df4164ff5a38af9
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-12-05 (Thu, 05 Dec 2024)

  Changed paths:
    M flang/include/flang/Lower/AbstractConverter.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
    A flang/test/Lower/OpenMP/delayed-privatization-default-init.f90
    M flang/test/Lower/OpenMP/delayed-privatization-pointer.f90
    M flang/test/Lower/OpenMP/private-derived-type.f90
    A flang/test/Lower/do_concurrent_local_default_init.f90

  Log Message:
  -----------
  [flang] fix private pointers and default initialized variables (#118494)

Both OpenMP privatization and DO CONCURRENT LOCAL lowering was incorrect
for pointers and derived type with default initialization.

For pointers, the descriptor was not established with the rank/type
code/element size, leading to undefined behavior if any inquiry was made
to it prior to a pointer assignment (and if/when using the runtime for
pointer assignments, the descriptor must have been established).

For derived type with default initialization, the copies were not
default initialized.



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