[PATCH] Cygwin: fix syntax error in cpu_relax.h for AArch64

Radek Barton radek.barton@microsoft.com
Tue Jun 24 11:02:45 GMT 2025


Hello.

Please, take my apology that I failed to properly validate https://sourceware.org/pipermail/cygwin-patches/2025q2/013826.html

Radek

---
>From 565b1ee84e2882f7229cadaf11e4884349617040 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Barto=C5=88?= <radek.barton@microsoft.com>
Date: Sat, 21 Jun 2025 22:47:58 +0200
Subject: [PATCH] Cygwin: fix syntax error in cpu_relax.h for AArch64
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Radek Bartoň <radek.barton@microsoft.com>
---
 winsup/testsuite/winsup.api/pthread/cpu_relax.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/testsuite/winsup.api/pthread/cpu_relax.h b/winsup/testsuite/winsup.api/pthread/cpu_relax.h
index 71cec0b2b..c31ef8c05 100644
--- a/winsup/testsuite/winsup.api/pthread/cpu_relax.h
+++ b/winsup/testsuite/winsup.api/pthread/cpu_relax.h
@@ -4,8 +4,8 @@
 #if defined(__x86_64__) || defined(__i386__)  // Check for x86 architectures
    #define CPU_RELAX() __asm__ volatile ("pause" :::)
 #elif defined(__aarch64__) || defined(__arm__)  // Check for ARM architectures
-   #define CPU_RELAX() __asm__ volatile ("dmb ishst \
-                                          yield" :::)
+   #define CPU_RELAX() __asm__ volatile ("dmb ishst\n" \
+                                         "yield" :::)
 #else
    #error unimplemented for this target
 #endif
-- 
2.49.0.vfs.0.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cygwin-fix-syntax-error-in-cpu_relax.h-for-AArch64.patch
Type: application/octet-stream
Size: 1287 bytes
Desc: 0001-Cygwin-fix-syntax-error-in-cpu_relax.h-for-AArch64.patch
URL: <https://cygwin.com/pipermail/cygwin-patches/attachments/20250624/d4897ece/attachment.obj>


More information about the Cygwin-patches mailing list