patches/uClibc/20080801/300-fix-asm.patch
changeset 1617 7d70bcf940a9
parent 1602 1ba79f2126df
parent 1616 1fda13e5d961
child 1618 7f52e1cca71e
     1.1 --- a/patches/uClibc/20080801/300-fix-asm.patch	Wed Oct 28 12:03:38 2009 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,175 +0,0 @@
     1.4 -Index: uClibc/ldso/ldso/sparc/dl-sysdep.h
     1.5 -===================================================================
     1.6 ---- uClibc/ldso/ldso/sparc/dl-sysdep.h	(revision 23055)
     1.7 -+++ uClibc/ldso/ldso/sparc/dl-sysdep.h	(working copy)
     1.8 -@@ -141,7 +141,7 @@
     1.9 - static __inline__ Elf32_Addr
    1.10 - elf_machine_load_address (void)
    1.11 - {
    1.12 --	register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
    1.13 -+	register Elf32_Addr *pc __asm__ ("%o7"), *got __asm__ ("%l7");
    1.14 - 
    1.15 - 	__asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
    1.16 - 	       "call 1f\n\t"
    1.17 -Index: uClibc/libc/sysdeps/linux/i386/bits/mathinline.h
    1.18 -===================================================================
    1.19 ---- uClibc/libc/sysdeps/linux/i386/bits/mathinline.h	(revision 23055)
    1.20 -+++ uClibc/libc/sysdeps/linux/i386/bits/mathinline.h	(working copy)
    1.21 -@@ -299,12 +299,12 @@
    1.22 -   __extension__ long long int __p = (long long int) __x;		      \
    1.23 -   if (__x == (long double) __p)						      \
    1.24 -     {									      \
    1.25 --      __asm __volatile__						      \
    1.26 -+      __asm__ __volatile__						      \
    1.27 - 	("fscale"							      \
    1.28 - 	 : "=t" (__value) : "0" (1.0), "u" (__x));			      \
    1.29 -       return __value;							      \
    1.30 -     }									      \
    1.31 --  __asm __volatile__							      \
    1.32 -+  __asm__ __volatile__							      \
    1.33 -     ("fld	%%st(0)\n\t"						      \
    1.34 -      "frndint			# int(x)\n\t"				      \
    1.35 -      "fxch\n\t"								      \
    1.36 -@@ -312,7 +312,7 @@
    1.37 -      "f2xm1			# 2^(fract(x)) - 1\n\t"			      \
    1.38 -      : "=t" (__value), "=u" (__exponent) : "0" (__x));			      \
    1.39 -   __value += 1.0;							      \
    1.40 --  __asm __volatile__							      \
    1.41 -+  __asm__ __volatile__							      \
    1.42 -     ("fscale"								      \
    1.43 -      : "=t" (__value) : "0" (__value), "u" (__exponent));		      \
    1.44 -   return __value)
    1.45 -@@ -321,7 +321,7 @@
    1.46 - #  define __sincos_code \
    1.47 -   register long double __cosr;						      \
    1.48 -   register long double __sinr;						      \
    1.49 --  __asm __volatile__							      \
    1.50 -+  __asm__ __volatile__							      \
    1.51 -     ("fsincos\n\t"							      \
    1.52 -      "fnstsw	%%ax\n\t"						      \
    1.53 -      "testl	$0x400, %%eax\n\t"					      \
    1.54 -@@ -373,7 +373,7 @@
    1.55 -   register long double __value;						      \
    1.56 -   register long double __exponent;					      \
    1.57 -   register long double __temp;						      \
    1.58 --  __asm __volatile__							      \
    1.59 -+  __asm__ __volatile__							      \
    1.60 -     ("fldl2e			# e^x - 1 = 2^(x * log2(e)) - 1\n\t"	      \
    1.61 -      "fmul	%%st(1)		# x * log2(e)\n\t"			      \
    1.62 -      "fst	%%st(1)\n\t"						      \
    1.63 -@@ -383,7 +383,7 @@
    1.64 -      "f2xm1			# 2^(fract(x * log2(e))) - 1\n\t"	      \
    1.65 -      "fscale			# 2^(x * log2(e)) - 2^(int(x * log2(e)))\n\t" \
    1.66 -      : "=t" (__value), "=u" (__exponent) : "0" (__x));			      \
    1.67 --  __asm __volatile__							      \
    1.68 -+  __asm__ __volatile__							      \
    1.69 -     ("fscale			# 2^int(x * log2(e))\n\t"		      \
    1.70 -      : "=t" (__temp) : "0" (1.0), "u" (__exponent));			      \
    1.71 -   __temp -= 1.0;							      \
    1.72 -@@ -398,7 +398,7 @@
    1.73 - #  define __exp_code \
    1.74 -   register long double __value;						      \
    1.75 -   register long double __exponent;					      \
    1.76 --  __asm __volatile__							      \
    1.77 -+  __asm__ __volatile__							      \
    1.78 -     ("fldl2e			# e^x = 2^(x * log2(e))\n\t"		      \
    1.79 -      "fmul	%%st(1)		# x * log2(e)\n\t"			      \
    1.80 -      "fst	%%st(1)\n\t"						      \
    1.81 -@@ -408,7 +408,7 @@
    1.82 -      "f2xm1			# 2^(fract(x * log2(e))) - 1\n\t"	      \
    1.83 -      : "=t" (__value), "=u" (__exponent) : "0" (__x));			      \
    1.84 -   __value += 1.0;							      \
    1.85 --  __asm __volatile__							      \
    1.86 -+  __asm__ __volatile__							      \
    1.87 -     ("fscale"								      \
    1.88 -      : "=t" (__value) : "0" (__value), "u" (__exponent));		      \
    1.89 -   return __value
    1.90 -@@ -421,7 +421,7 @@
    1.91 - __inline_mathcodeNP (tan, __x, \
    1.92 -   register long double __value;						      \
    1.93 -   register long double __value2 __attribute__ ((__unused__));		      \
    1.94 --  __asm __volatile__							      \
    1.95 -+  __asm__ __volatile__							      \
    1.96 -     ("fptan"								      \
    1.97 -      : "=t" (__value2), "=u" (__value) : "0" (__x));			      \
    1.98 -   return __value)
    1.99 -@@ -435,7 +435,7 @@
   1.100 - #else
   1.101 - # define __atan2_code \
   1.102 -   register long double __value;						      \
   1.103 --  __asm __volatile__							      \
   1.104 -+  __asm__ __volatile__							      \
   1.105 -     ("fpatan"								      \
   1.106 -      : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)");		      \
   1.107 -   return __value
   1.108 -@@ -449,7 +449,7 @@
   1.109 - #if defined __FAST_MATH__ && !__GNUC_PREREQ (3, 5)
   1.110 - __inline_mathcodeNP2 (fmod, __x, __y, \
   1.111 -   register long double __value;						      \
   1.112 --  __asm __volatile__							      \
   1.113 -+  __asm__ __volatile__							      \
   1.114 -     ("1:	fprem\n\t"						      \
   1.115 -      "fnstsw	%%ax\n\t"						      \
   1.116 -      "sahf\n\t"								      \
   1.117 -@@ -552,7 +552,7 @@
   1.118 - #ifdef __FAST_MATH__
   1.119 - # define __ldexp_code \
   1.120 -   register long double __value;						      \
   1.121 --  __asm __volatile__							      \
   1.122 -+  __asm__ __volatile__							      \
   1.123 -     ("fscale"								      \
   1.124 -      : "=t" (__value) : "0" (__x), "u" ((long double) __y));		      \
   1.125 -   return __value
   1.126 -@@ -581,7 +581,7 @@
   1.127 -   if (__fabsl (__x) >= 1.0 - 0.5 * __M_SQRT2)				      \
   1.128 -     __value = logl (1.0 + __x);						      \
   1.129 -   else									      \
   1.130 --    __asm __volatile__							      \
   1.131 -+    __asm__ __volatile__							      \
   1.132 -       ("fldln2\n\t"							      \
   1.133 -        "fxch\n\t"							      \
   1.134 -        "fyl2xp1"							      \
   1.135 -@@ -611,7 +611,7 @@
   1.136 - __inline_mathcodeNP(logb, __x, \
   1.137 -   register long double __value;						      \
   1.138 -   register long double __junk;						      \
   1.139 --  __asm __volatile__							      \
   1.140 -+  __asm__ __volatile__							      \
   1.141 -     ("fxtract\n\t"							      \
   1.142 -      : "=t" (__junk), "=u" (__value) : "0" (__x));			      \
   1.143 -   return __value)
   1.144 -@@ -699,7 +699,7 @@
   1.145 - __inline_mathcodeNP2 (drem, __x, __y, \
   1.146 -   register double __value;						      \
   1.147 -   register int __clobbered;						      \
   1.148 --  __asm __volatile__							      \
   1.149 -+  __asm__ __volatile__							      \
   1.150 -     ("1:	fprem1\n\t"						      \
   1.151 -      "fstsw	%%ax\n\t"						      \
   1.152 -      "sahf\n\t"								      \
   1.153 -Index: uClibc/libc/sysdeps/linux/x86_64/sigaction.c
   1.154 -===================================================================
   1.155 ---- uClibc/libc/sysdeps/linux/x86_64/sigaction.c	(revision 23055)
   1.156 -+++ uClibc/libc/sysdeps/linux/x86_64/sigaction.c	(working copy)
   1.157 -@@ -135,7 +135,7 @@
   1.158 - 
   1.159 - #define RESTORE(name, syscall) RESTORE2 (name, syscall)
   1.160 - # define RESTORE2(name, syscall) \
   1.161 --asm						\
   1.162 -+__asm__						\
   1.163 -   (						\
   1.164 -    ".text\n" \
   1.165 -    "__" #name ":\n"				\
   1.166 -Index: uClibc/libc/sysdeps/linux/mips/sigaction.c
   1.167 -===================================================================
   1.168 ---- uClibc/libc/sysdeps/linux/mips/sigaction.c	(revision 23055)
   1.169 -+++ uClibc/libc/sysdeps/linux/mips/sigaction.c	(working copy)
   1.170 -@@ -140,7 +140,7 @@
   1.171 - 
   1.172 - #define RESTORE(name, syscall) RESTORE2 (name, syscall)
   1.173 - #define RESTORE2(name, syscall) \
   1.174 --asm						\
   1.175 -+__asm__						\
   1.176 -   (						\
   1.177 -    ".align 4\n"					\
   1.178 -    "__" #name ":\n"				\