[Openmp-commits] [PATCH] D143683: [openmp] Fix building z_Linux_asm.S for armv5t

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 9 23:09:27 PST 2023


mstorsjo updated this revision to Diff 496334.
mstorsjo added a comment.

Added an `# if OMPT_SUPPORT`. (With ldrd previously, there was less use for an ifdef, but with separate instructions, we can leave out the second one.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143683/new/

https://reviews.llvm.org/D143683

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
@@ -1426,7 +1426,10 @@
 	// for when we call pkfn below
 	push	{r3-r11,lr}
 	// Load p_argv and &exit_frame
-	ldrd	r4, r5, [sp, #10*4]
+	ldr	r4, [sp, #10*4]
+# if OMPT_SUPPORT
+	ldr	r5, [sp, #11*4]
+# endif
 
 # if KMP_OS_DARWIN || (defined(__thumb__) && !KMP_OS_WINDOWS)
 # define FP r7


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143683.496334.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230210/fc8ef4ee/attachment.bin>


More information about the Openmp-commits mailing list