[all-commits] [llvm/llvm-project] e38a1d: [OpenMP] libomp: disable definitions of 5.1 atomic...

Andrey Churbanov via All-commits all-commits at lists.llvm.org
Mon Oct 25 11:17:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e38a1deb66c0b29257710e914d92b44d7946ceea
      https://github.com/llvm/llvm-project/commit/e38a1deb66c0b29257710e914d92b44d7946ceea
  Author: AndreyChurbanov <andrey.churbanov at intel.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M openmp/runtime/src/kmp_atomic.cpp

  Log Message:
  -----------
  [OpenMP] libomp: disable definitions of 5.1 atomics for non-x86 arch.

Declarations of 5.1 atomic entries were added under
"#if KMP_ARCH_X86 || KMP_ARCH_X86_64" in kmp_atomic.h,
but definitions of the functions missed architecture guard in kmp_atomic.cpp.
As a result mangled symbols were available on non-x86 architecture.
The patch eliminates these unexpected symbols from the library.

Differential Revision: https://reviews.llvm.org/D112261




More information about the All-commits mailing list