Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/ctype/ctype_.c')
-rw-r--r--newlib/libc/ctype/ctype_.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/newlib/libc/ctype/ctype_.c b/newlib/libc/ctype/ctype_.c
index c3615d2a1..164a8eed7 100644
--- a/newlib/libc/ctype/ctype_.c
+++ b/newlib/libc/ctype/ctype_.c
@@ -111,14 +111,21 @@ _CONST
char __EXPORT *__ctype_ptr__ = (char *) _ctype_b + 127;
# ifdef __CYGWIN__
-
+# 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] = {