summaryrefslogtreecommitdiff
path: root/patches/uClibc/20080801/300-fix-asm.patch
blob: 1f57e5c68d3a4d0cf46c678b0bf35ac6cb522ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
Index: uClibc/ldso/ldso/sparc/dl-sysdep.h
===================================================================
--- uClibc/ldso/ldso/sparc/dl-sysdep.h	(revision 23055)
+++ uClibc/ldso/ldso/sparc/dl-sysdep.h	(working copy)
@@ -141,7 +141,7 @@
 static __inline__ Elf32_Addr
 elf_machine_load_address (void)
 {
-	register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
+	register Elf32_Addr *pc __asm__ ("%o7"), *got __asm__ ("%l7");
 
 	__asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
 	       "call 1f\n\t"
Index: uClibc/libc/sysdeps/linux/i386/bits/mathinline.h
===================================================================
--- uClibc/libc/sysdeps/linux/i386/bits/mathinline.h	(revision 23055)
+++ uClibc/libc/sysdeps/linux/i386/bits/mathinline.h	(working copy)
@@ -299,12 +299,12 @@
   __extension__ long long int __p = (long long int) __x;		      \
   if (__x == (long double) __p)						      \
     {									      \
-      __asm __volatile__						      \
+      __asm__ __volatile__						      \
 	("fscale"							      \
 	 : "=t" (__value) : "0" (1.0), "u" (__x));			      \
       return __value;							      \
     }									      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fld	%%st(0)\n\t"						      \
      "frndint			# int(x)\n\t"				      \
      "fxch\n\t"								      \
@@ -312,7 +312,7 @@
      "f2xm1			# 2^(fract(x)) - 1\n\t"			      \
      : "=t" (__value), "=u" (__exponent) : "0" (__x));			      \
   __value += 1.0;							      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fscale"								      \
      : "=t" (__value) : "0" (__value), "u" (__exponent));		      \
   return __value)
@@ -321,7 +321,7 @@
 #  define __sincos_code \
   register long double __cosr;						      \
   register long double __sinr;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fsincos\n\t"							      \
      "fnstsw	%%ax\n\t"						      \
      "testl	$0x400, %%eax\n\t"					      \
@@ -373,7 +373,7 @@
   register long double __value;						      \
   register long double __exponent;					      \
   register long double __temp;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fldl2e			# e^x - 1 = 2^(x * log2(e)) - 1\n\t"	      \
      "fmul	%%st(1)		# x * log2(e)\n\t"			      \
      "fst	%%st(1)\n\t"						      \
@@ -383,7 +383,7 @@
      "f2xm1			# 2^(fract(x * log2(e))) - 1\n\t"	      \
      "fscale			# 2^(x * log2(e)) - 2^(int(x * log2(e)))\n\t" \
      : "=t" (__value), "=u" (__exponent) : "0" (__x));			      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fscale			# 2^int(x * log2(e))\n\t"		      \
      : "=t" (__temp) : "0" (1.0), "u" (__exponent));			      \
   __temp -= 1.0;							      \
@@ -398,7 +398,7 @@
 #  define __exp_code \
   register long double __value;						      \
   register long double __exponent;					      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fldl2e			# e^x = 2^(x * log2(e))\n\t"		      \
      "fmul	%%st(1)		# x * log2(e)\n\t"			      \
      "fst	%%st(1)\n\t"						      \
@@ -408,7 +408,7 @@
      "f2xm1			# 2^(fract(x * log2(e))) - 1\n\t"	      \
      : "=t" (__value), "=u" (__exponent) : "0" (__x));			      \
   __value += 1.0;							      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fscale"								      \
      : "=t" (__value) : "0" (__value), "u" (__exponent));		      \
   return __value
@@ -421,7 +421,7 @@
 __inline_mathcodeNP (tan, __x, \
   register long double __value;						      \
   register long double __value2 __attribute__ ((__unused__));		      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fptan"								      \
      : "=t" (__value2), "=u" (__value) : "0" (__x));			      \
   return __value)
@@ -435,7 +435,7 @@
 #else
 # define __atan2_code \
   register long double __value;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fpatan"								      \
      : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)");		      \
   return __value
@@ -449,7 +449,7 @@
 #if defined __FAST_MATH__ && !__GNUC_PREREQ (3, 5)
 __inline_mathcodeNP2 (fmod, __x, __y, \
   register long double __value;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("1:	fprem\n\t"						      \
      "fnstsw	%%ax\n\t"						      \
      "sahf\n\t"								      \
@@ -552,7 +552,7 @@
 #ifdef __FAST_MATH__
 # define __ldexp_code \
   register long double __value;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fscale"								      \
      : "=t" (__value) : "0" (__x), "u" ((long double) __y));		      \
   return __value
@@ -581,7 +581,7 @@
   if (__fabsl (__x) >= 1.0 - 0.5 * __M_SQRT2)				      \
     __value = logl (1.0 + __x);						      \
   else									      \
-    __asm __volatile__							      \
+    __asm__ __volatile__							      \
       ("fldln2\n\t"							      \
        "fxch\n\t"							      \
        "fyl2xp1"							      \
@@ -611,7 +611,7 @@
 __inline_mathcodeNP(logb, __x, \
   register long double __value;						      \
   register long double __junk;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("fxtract\n\t"							      \
      : "=t" (__junk), "=u" (__value) : "0" (__x));			      \
   return __value)
@@ -699,7 +699,7 @@
 __inline_mathcodeNP2 (drem, __x, __y, \
   register double __value;						      \
   register int __clobbered;						      \
-  __asm __volatile__							      \
+  __asm__ __volatile__							      \
     ("1:	fprem1\n\t"						      \
      "fstsw	%%ax\n\t"						      \
      "sahf\n\t"								      \
Index: uClibc/libc/sysdeps/linux/x86_64/sigaction.c
===================================================================
--- uClibc/libc/sysdeps/linux/x86_64/sigaction.c	(revision 23055)
+++ uClibc/libc/sysdeps/linux/x86_64/sigaction.c	(working copy)
@@ -135,7 +135,7 @@
 
 #define RESTORE(name, syscall) RESTORE2 (name, syscall)
 # define RESTORE2(name, syscall) \
-asm						\
+__asm__						\
   (						\
    ".text\n" \
    "__" #name ":\n"				\
Index: uClibc/libc/sysdeps/linux/mips/sigaction.c
===================================================================
--- uClibc/libc/sysdeps/linux/mips/sigaction.c	(revision 23055)
+++ uClibc/libc/sysdeps/linux/mips/sigaction.c	(working copy)
@@ -140,7 +140,7 @@
 
 #define RESTORE(name, syscall) RESTORE2 (name, syscall)
 #define RESTORE2(name, syscall) \
-asm						\
+__asm__						\
   (						\
    ".align 4\n"					\
    "__" #name ":\n"				\