summaryrefslogtreecommitdiff
path: root/nss/nspr-4.8.4-clang.patch
blob: 974ec688743d49ed7bf70ab2684fc9522849dd69 (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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
--- misc/nss-3.12.6/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86.s	2006-12-11 10:45:30.000000000 +0100
+++ misc/build/nss-3.12.6/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86.s	2013-03-28 17:11:50.919079879 +0100
@@ -1,4 +1,4 @@
-/ -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 / 
 / ***** BEGIN LICENSE BLOCK *****
 / Version: MPL 1.1/GPL 2.0/LGPL 2.1
@@ -40,7 +40,8 @@
 /
 / Atomically increment the integer pointed to by 'val' and return
 / the result of the increment.
-/
+/ */
+
     .text
     .globl _PR_x86_AtomicIncrement
     .align 4
@@ -52,11 +53,11 @@
     incl %eax
     ret
 
-/ PRInt32 _PR_x86_AtomicDecrement(PRInt32 *val)
+/* PRInt32 _PR_x86_AtomicDecrement(PRInt32 *val)
 /
 / Atomically decrement the integer pointed to by 'val' and return
 / the result of the decrement.
-/
+/ */
     .text
     .globl _PR_x86_AtomicDecrement
     .align 4
@@ -68,7 +69,7 @@
     decl %eax
     ret
 
-/ PRInt32 _PR_x86_AtomicSet(PRInt32 *val, PRInt32 newval)
+/* PRInt32 _PR_x86_AtomicSet(PRInt32 *val, PRInt32 newval)
 /
 / Atomically set the integer pointed to by 'val' to the new
 / value 'newval' and return the old value.
@@ -86,7 +87,7 @@
 /   cmpxchgl %edx, (%ecx)
 /   jne retry
 /   ret
-/
+/ */
     .text
     .globl _PR_x86_AtomicSet
     .align 4
@@ -96,11 +97,11 @@
     xchgl %eax, (%ecx)
     ret
 
-/ PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val)
+/* PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val)
 /
 / Atomically add 'val' to the integer pointed to by 'ptr'
 / and return the result of the addition.
-/
+/ */
     .text
     .globl _PR_x86_AtomicAdd
     .align 4
@@ -113,5 +114,5 @@
     addl %edx, %eax
     ret
 
-/ Magic indicating no need for an executable stack
+/* Magic indicating no need for an executable stack */
 .section .note.GNU-stack, "", @progbits ; .previous
--- misc/nss-3.12.6/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86_64.s	2006-12-11 10:45:30.000000000 +0100
+++ misc/build/nss-3.12.6/mozilla/nsprpub/pr/src/md/unix/os_Linux_x86_64.s	2013-03-28 17:12:00.215016941 +0100
@@ -1,4 +1,4 @@
-/ -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 / 
 / ***** BEGIN LICENSE BLOCK *****
 / Version: MPL 1.1/GPL 2.0/LGPL 2.1
@@ -40,7 +40,8 @@
 /
 / Atomically increment the integer pointed to by 'val' and return
 / the result of the increment.
-/
+/ */
+
     .text
     .globl _PR_x86_64_AtomicIncrement
     .align 4
@@ -51,11 +52,11 @@
     incl %eax
     ret
 
-/ PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val)
+/* PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val)
 /
 / Atomically decrement the integer pointed to by 'val' and return
 / the result of the decrement.
-/
+/ */
     .text
     .globl _PR_x86_64_AtomicDecrement
     .align 4
@@ -66,11 +67,11 @@
     decl %eax
     ret
 
-/ PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval)
+/* PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval)
 /
 / Atomically set the integer pointed to by 'val' to the new
 / value 'newval' and return the old value.
-/
+/ */
     .text
     .globl _PR_x86_64_AtomicSet
     .align 4
@@ -79,11 +80,11 @@
     xchgl %eax, (%rdi)
     ret
 
-/ PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val)
+/* PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val)
 /
 / Atomically add 'val' to the integer pointed to by 'ptr'
 / and return the result of the addition.
-/
+/ */
     .text
     .globl _PR_x86_64_AtomicAdd
     .align 4
@@ -94,5 +95,5 @@
     addl %esi, %eax
     ret
 
-/ Magic indicating no need for an executable stack
+/* Magic indicating no need for an executable stack */
 .section .note.GNU-stack, "", @progbits ; .previous
--- misc/nss-3.12.6/mozilla/security/nss/lib/freebl/mpi/mp_comba.c	2008-03-09 07:06:27.000000000 +0100
+++ misc/build/nss-3.12.6/mozilla/security/nss/lib/freebl/mpi/mp_comba.c	2013-03-28 17:17:58.895379167 +0100
@@ -49,7 +49,7 @@
      "addq  %%rax,%0     \n\t"                            \
      "adcq  %%rdx,%1     \n\t"                            \
      "adcq  $0,%2        \n\t"                            \
-     :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j)  :"%rax","%rdx","%cc");
+     :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j)  :"%rax","%rdx");
 
 
 
@@ -76,7 +76,7 @@
      "addq  %%rax,%0     \n\t"                            \
      "adcq  %%rdx,%1     \n\t"                            \
      "adcq  $0,%2        \n\t"                            \
-     :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i) :"%rax","%rdx","%cc");
+     :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i) :"%rax","%rdx");
 
 #define SQRADD2(i, j)                                     \
 __asm__ (                                                     \
@@ -88,7 +88,7 @@
      "addq  %%rax,%0     \n\t"                            \
      "adcq  %%rdx,%1     \n\t"                            \
      "adcq  $0,%2        \n\t"                            \
-     :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j)  :"%rax","%rdx","%cc");
+     :"=r"(c0), "=r"(c1), "=r"(c2): "0"(c0), "1"(c1), "2"(c2), "g"(i), "g"(j)  :"%rax","%rdx");
 
 #define SQRADDSC(i, j)                                    \
 __asm__ (                                                     \
@@ -97,7 +97,7 @@
      "movq  %%rax,%0     \n\t"                            \
      "movq  %%rdx,%1     \n\t"                            \
      "xorq  %2,%2        \n\t"                            \
-     :"=r"(sc0), "=r"(sc1), "=r"(sc2): "g"(i), "g"(j) :"%rax","%rdx","%cc");
+     :"=r"(sc0), "=r"(sc1), "=r"(sc2): "g"(i), "g"(j) :"%rax","%rdx");
 
 #define SQRADDAC(i, j)                                                         \
 __asm__ (                                                     \
@@ -106,7 +106,7 @@
      "addq  %%rax,%0     \n\t"                            \
      "adcq  %%rdx,%1     \n\t"                            \
      "adcq  $0,%2        \n\t"                            \
-     :"=r"(sc0), "=r"(sc1), "=r"(sc2): "0"(sc0), "1"(sc1), "2"(sc2), "g"(i), "g"(j) :"%rax","%rdx","%cc");
+     :"=r"(sc0), "=r"(sc1), "=r"(sc2): "0"(sc0), "1"(sc1), "2"(sc2), "g"(i), "g"(j) :"%rax","%rdx");
 
 #define SQRADDDB                                                               \
 __asm__ (                                                     \
@@ -116,7 +116,7 @@
      "addq %6,%0         \n\t"                            \
      "adcq %7,%1         \n\t"                            \
      "adcq %8,%2         \n\t"                            \
-     :"=&r"(c0), "=&r"(c1), "=&r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(sc0), "r"(sc1), "r"(sc2) : "%cc");
+     :"=&r"(c0), "=&r"(c1), "=&r"(c2) : "0"(c0), "1"(c1), "2"(c2), "r"(sc0), "r"(sc1), "r"(sc2));