olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1380680-8.patch

00db10
From a6e4fa635fea4576c65747cc4b9e3a1fe9c9911f Mon Sep 17 00:00:00 2001
00db10
From: Stefan Liebler <stli@linux.vnet.ibm.com>
00db10
Date: Mon, 7 Nov 2016 16:12:24 +0100
00db10
Subject: [PATCH 08/17] S390: Use __asm__ instead of asm.
00db10
00db10
upstream commit 31cf39421bae23ffc7b6c6a229e14f8faa41608f
00db10
00db10
This part is a prerequirement for the s390 iconv patches.
00db10
---
00db10
 sysdeps/s390/s390-64/utf16-utf32-z9.c | 28 ++++++++++++++--------------
00db10
 sysdeps/s390/s390-64/utf8-utf16-z9.c  | 28 ++++++++++++++--------------
00db10
 sysdeps/s390/s390-64/utf8-utf32-z9.c  | 28 ++++++++++++++--------------
00db10
 3 files changed, 42 insertions(+), 42 deletions(-)
00db10
00db10
diff --git a/sysdeps/s390/s390-64/utf16-utf32-z9.c b/sysdeps/s390/s390-64/utf16-utf32-z9.c
00db10
index ddc42fe..e6a033d 100644
00db10
--- a/sysdeps/s390/s390-64/utf16-utf32-z9.c
00db10
+++ b/sysdeps/s390/s390-64/utf16-utf32-z9.c
00db10
@@ -163,22 +163,22 @@ gconv_end (struct __gconv_step *data)
00db10
    directions.  */
00db10
 #define HARDWARE_CONVERT(INSTRUCTION)					\
00db10
   {									\
00db10
-    register const unsigned char* pInput asm ("8") = inptr;		\
00db10
-    register unsigned long long inlen asm ("9") = inend - inptr;	\
00db10
-    register unsigned char* pOutput asm ("10") = outptr;		\
00db10
-    register unsigned long long outlen asm("11") = outend - outptr;	\
00db10
+    register const unsigned char* pInput __asm__ ("8") = inptr;		\
00db10
+    register unsigned long long inlen __asm__ ("9") = inend - inptr;	\
00db10
+    register unsigned char* pOutput __asm__ ("10") = outptr;		\
00db10
+    register unsigned long long outlen __asm__("11") = outend - outptr;	\
00db10
     uint64_t cc = 0;							\
00db10
 									\
00db10
-    asm volatile (".machine push       \n\t"				\
00db10
-                  ".machine \"z9-109\" \n\t"				\
00db10
-		  "0: " INSTRUCTION "  \n\t"				\
00db10
-                  ".machine pop        \n\t"				\
00db10
-                  "   jo     0b        \n\t"				\
00db10
-		  "   ipm    %2        \n"			        \
00db10
-		  : "+a" (pOutput), "+a" (pInput), "+d" (cc),		\
00db10
-		    "+d" (outlen), "+d" (inlen)				\
00db10
-		  :							\
00db10
-		  : "cc", "memory");					\
00db10
+    __asm__ volatile (".machine push       \n\t"			\
00db10
+		      ".machine \"z9-109\" \n\t"			\
00db10
+		      "0: " INSTRUCTION "  \n\t"			\
00db10
+		      ".machine pop        \n\t"			\
00db10
+		      "   jo     0b        \n\t"			\
00db10
+		      "   ipm    %2        \n"				\
00db10
+		      : "+a" (pOutput), "+a" (pInput), "+d" (cc),	\
00db10
+		      "+d" (outlen), "+d" (inlen)			\
00db10
+		      :							\
00db10
+		      : "cc", "memory");				\
00db10
 									\
00db10
     inptr = pInput;							\
00db10
     outptr = pOutput;							\
00db10
diff --git a/sysdeps/s390/s390-64/utf8-utf16-z9.c b/sysdeps/s390/s390-64/utf8-utf16-z9.c
00db10
index 2c2d92c..6dad1c2 100644
00db10
--- a/sysdeps/s390/s390-64/utf8-utf16-z9.c
00db10
+++ b/sysdeps/s390/s390-64/utf8-utf16-z9.c
00db10
@@ -145,22 +145,22 @@ gconv_end (struct __gconv_step *data)
00db10
    directions.  */
00db10
 #define HARDWARE_CONVERT(INSTRUCTION)					\
00db10
   {									\
00db10
-    register const unsigned char* pInput asm ("8") = inptr;		\
00db10
-    register unsigned long long inlen asm ("9") = inend - inptr;	\
00db10
-    register unsigned char* pOutput asm ("10") = outptr;		\
00db10
-    register unsigned long long outlen asm("11") = outend - outptr;	\
00db10
+    register const unsigned char* pInput __asm__ ("8") = inptr;		\
00db10
+    register unsigned long long inlen __asm__ ("9") = inend - inptr;	\
00db10
+    register unsigned char* pOutput __asm__ ("10") = outptr;		\
00db10
+    register unsigned long long outlen __asm__("11") = outend - outptr;	\
00db10
     uint64_t cc = 0;							\
00db10
 									\
00db10
-    asm volatile (".machine push       \n\t"				\
00db10
-                  ".machine \"z9-109\" \n\t"				\
00db10
-		  "0: " INSTRUCTION "  \n\t"				\
00db10
-                  ".machine pop        \n\t"				\
00db10
-                  "   jo     0b        \n\t"				\
00db10
-		  "   ipm    %2        \n"			        \
00db10
-		  : "+a" (pOutput), "+a" (pInput), "+d" (cc),		\
00db10
-		    "+d" (outlen), "+d" (inlen)				\
00db10
-		  :							\
00db10
-		  : "cc", "memory");					\
00db10
+    __asm__ volatile (".machine push       \n\t"			\
00db10
+		      ".machine \"z9-109\" \n\t"			\
00db10
+		      "0: " INSTRUCTION "  \n\t"			\
00db10
+		      ".machine pop        \n\t"			\
00db10
+		      "   jo     0b        \n\t"			\
00db10
+		      "   ipm    %2        \n"				\
00db10
+		      : "+a" (pOutput), "+a" (pInput), "+d" (cc),	\
00db10
+			"+d" (outlen), "+d" (inlen)			\
00db10
+		      :							\
00db10
+		      : "cc", "memory");				\
00db10
 									\
00db10
     inptr = pInput;							\
00db10
     outptr = pOutput;							\
00db10
diff --git a/sysdeps/s390/s390-64/utf8-utf32-z9.c b/sysdeps/s390/s390-64/utf8-utf32-z9.c
00db10
index c582155..721279e 100644
00db10
--- a/sysdeps/s390/s390-64/utf8-utf32-z9.c
00db10
+++ b/sysdeps/s390/s390-64/utf8-utf32-z9.c
00db10
@@ -149,22 +149,22 @@ gconv_end (struct __gconv_step *data)
00db10
    directions.  */
00db10
 #define HARDWARE_CONVERT(INSTRUCTION)					\
00db10
   {									\
00db10
-    register const unsigned char* pInput asm ("8") = inptr;		\
00db10
-    register unsigned long long inlen asm ("9") = inend - inptr;	\
00db10
-    register unsigned char* pOutput asm ("10") = outptr;		\
00db10
-    register unsigned long long outlen asm("11") = outend - outptr;	\
00db10
+    register const unsigned char* pInput __asm__ ("8") = inptr;		\
00db10
+    register unsigned long long inlen __asm__ ("9") = inend - inptr;	\
00db10
+    register unsigned char* pOutput __asm__ ("10") = outptr;		\
00db10
+    register unsigned long long outlen __asm__("11") = outend - outptr;	\
00db10
     uint64_t cc = 0;							\
00db10
 									\
00db10
-    asm volatile (".machine push       \n\t"				\
00db10
-                  ".machine \"z9-109\" \n\t"				\
00db10
-		  "0: " INSTRUCTION "  \n\t"				\
00db10
-                  ".machine pop        \n\t"				\
00db10
-                  "   jo     0b        \n\t"				\
00db10
-		  "   ipm    %2        \n"				\
00db10
-		  : "+a" (pOutput), "+a" (pInput), "+d" (cc),		\
00db10
-		    "+d" (outlen), "+d" (inlen)				\
00db10
-		  :							\
00db10
-		  : "cc", "memory");					\
00db10
+    __asm__ volatile (".machine push       \n\t"			\
00db10
+		      ".machine \"z9-109\" \n\t"			\
00db10
+		      "0: " INSTRUCTION "  \n\t"			\
00db10
+		      ".machine pop        \n\t"			\
00db10
+		      "   jo     0b        \n\t"			\
00db10
+		      "   ipm    %2        \n"				\
00db10
+		      : "+a" (pOutput), "+a" (pInput), "+d" (cc),	\
00db10
+		      "+d" (outlen), "+d" (inlen)			\
00db10
+		      :							\
00db10
+		      : "cc", "memory");				\
00db10
 									\
00db10
     inptr = pInput;							\
00db10
     outptr = pOutput;							\
00db10
-- 
00db10
1.8.3.1
00db10