[Openmp-commits] [PATCH] D92027: [OpenMP] libomp: fix non-X86 non-AARCH64 builds

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Nov 24 06:42:45 PST 2020


AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: kaz7, hbae, jlpeyton.
AndreyChurbanov added a project: OpenMP.
Herald added subscribers: openmp-commits, danielkiss, pengfei, guansong, kristof.beyls, yaxunl.
AndreyChurbanov requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

Macro KMP_PREFIX_UNDERSCORE defined only for x86, x86_64 and aarch64 architectures.
This patch defines the macro to no-op in case it was not defined previously.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92027

Files:
  openmp/runtime/src/z_Linux_asm.S


Index: openmp/runtime/src/z_Linux_asm.S
===================================================================
--- openmp/runtime/src/z_Linux_asm.S
+++ openmp/runtime/src/z_Linux_asm.S
@@ -1737,6 +1737,9 @@
 #endif /* KMP_ARCH_ARM */
 
 #if KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 || KMP_ARCH_RISCV64
+#ifndef KMP_PREFIX_UNDERSCORE
+# define KMP_PREFIX_UNDERSCORE(x) x
+#endif
     .data
     .comm .gomp_critical_user_,32,8
     .data


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92027.307334.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20201124/36a5c382/attachment.bin>


More information about the Openmp-commits mailing list