[PATCH v2] newlib: libc: define _ctype for AArch64 Cygwin

Radek Barton <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <DB9PR83MB09232502239612C1D04C68049273A@DB9PR83MB0923.EURPRD83.prod.outlook.com>
Hello.

If that's the case, sure, why not.

Radek

---
From 53142128c2aad7b6b03d2592e4c0321feb69dc77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Barto=C5=88?= <[email protected]>
Date: Fri, 6 Jun 2025 16:17:27 +0200
Subject: [PATCH v2] newlib: libc: define _ctype for AArch64 Cygwin
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Radek Bartoň <[email protected]>
---
 newlib/libc/ctype/ctype_.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/newlib/libc/ctype/ctype_.c b/newlib/libc/ctype/ctype_.c
index 32ce4f318..869945fd5 100644
--- a/newlib/libc/ctype/ctype_.c
+++ b/newlib/libc/ctype/ctype_.c
@@ -95,21 +95,12 @@ char _ctype_b[128 + 256] = {
 /* For backward compatibility */
 char __EXPORT *__ctype_ptr__ = DEFAULT_CTYPE_PTR;
 
-#    ifdef __x86_64__
 __asm__ ("					\n\
         .data					\n\
 	.globl  _ctype_				\n\
 	.set    _ctype_,_ctype_b+127		\n\
 	.text                                   \n\
 ");
-#    else
-__asm__ ("					\n\
-        .data					\n\
-	.globl  __ctype_			\n\
-	.set    __ctype_,__ctype_b+127		\n\
-	.text                                   \n\
-");
-#    endif
 #  else /* !__CYGWIN__ */
 
 const char _ctype_[1 + 256] = {
-- 
2.49.0.vfs.0.4
v2-0001-newlib-libc-define-_ctype-for-AArch64-Cygwin.patch (application/octet-stream, 1.2 KB)
From 53142128c2aad7b6b03d2592e4c0321feb69dc77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Barto=C5=88?= <[email protected]>
Date: Fri, 6 Jun 2025 16:17:27 +0200
Subject: [PATCH v2] newlib: libc: define _ctype for AArch64 Cygwin
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Radek Bartoň <[email protected]>
---
 newlib/libc/ctype/ctype_.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/newlib/libc/ctype/ctype_.c b/newlib/libc/ctype/ctype_.c
index 32ce4f318..869945fd5 100644
--- a/newlib/libc/ctype/ctype_.c
+++ b/newlib/libc/ctype/ctype_.c
@@ -95,21 +95,12 @@ char _ctype_b[128 + 256] = {
 /* For backward compatibility */
 char __EXPORT *__ctype_ptr__ = DEFAULT_CTYPE_PTR;
 
-#    ifdef __x86_64__
 __asm__ ("					\n\
         .data					\n\
 	.globl  _ctype_				\n\
 	.set    _ctype_,_ctype_b+127		\n\
 	.text                                   \n\
 ");
-#    else
-__asm__ ("					\n\
-        .data					\n\
-	.globl  __ctype_			\n\
-	.set    __ctype_,__ctype_b+127		\n\
-	.text                                   \n\
-");
-#    endif
 #  else /* !__CYGWIN__ */
 
 const char _ctype_[1 + 256] = {
-- 
2.49.0.vfs.0.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.