[all-commits] [llvm/llvm-project] a35678: [OpenMP][mingw] Fix build for aarch64 target

alvinhochun via All-commits all-commits at lists.llvm.org
Tue Nov 8 05:28:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a356782426f5bf54a00570e1f925345e5fda7b2e
      https://github.com/llvm/llvm-project/commit/a356782426f5bf54a00570e1f925345e5fda7b2e
  Author: Alvin Wong <alvin at alvinhc.com>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    M openmp/runtime/src/dllexports
    M openmp/runtime/src/kmp_os.h
    M openmp/runtime/src/kmp_utility.cpp

  Log Message:
  -----------
  [OpenMP][mingw] Fix build for aarch64 target

This patch changes AArch64 + `__GNUC__` to use `__sync` builtins to
implement internal atomic macros just like for Unix, because mingw-w64
is missing some of the intrinsics which the MSVC codepath is using.

Then some remaining intel-only functions are removed from dllexport to
fix linking.

This should fix https://github.com/llvm/llvm-project/issues/56349.

Reviewed By: natgla

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




More information about the All-commits mailing list