Mercurial > projects > ldc
comparison runtime/ldc.diff @ 776:6aa2b350c8cc
tango patch fix
author | tomas@myhost |
---|---|
date | Thu, 20 Nov 2008 17:20:00 +0100 |
parents | 0375841e3175 |
children | 961e249eb2aa |
comparison
equal
deleted
inserted
replaced
775:0375841e3175 | 776:6aa2b350c8cc |
---|---|
10 + void function() ictor; | 10 + void function() ictor; |
11 + | 11 + |
12 static int opApply( int delegate( inout ModuleInfo ) ); | 12 static int opApply( int delegate( inout ModuleInfo ) ); |
13 } | 13 } |
14 | 14 |
15 Index: lib/unittest.sh | |
16 =================================================================== | |
17 --- lib/unittest.sh (revision 4097) | |
18 +++ lib/unittest.sh (working copy) | |
19 @@ -18,8 +18,9 @@ | |
20 --help: This message | |
21 --run-all: Reports result instead of breaking. Do not use this if you want to | |
22 run unittest runner through a debugger. | |
23 - dmd: Builds unittests for dmd | |
24 - gdc: Builds unittests for gdc | |
25 + dmd: Builds unittests for dmd | |
26 + gdc: Builds unittests for gdc | |
27 + ldc: Builds unittests for ldc | |
28 | |
29 <none>: Builds unittests for all known compilers.' | |
30 exit 0 | |
31 @@ -86,7 +87,7 @@ | |
32 void main() {} | |
33 EOF | |
34 | |
35 - rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
36 + rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
37 -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ | |
38 tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ | |
39 tango/io/vfs/*.d tango/io/vfs/model/*.d \ | |
40 @@ -125,6 +126,9 @@ | |
41 gdc) | |
42 GDC=1 | |
43 ;; | |
44 + ldc) | |
45 + LDC=1 | |
46 + ;; | |
47 *) | |
48 usage | |
49 ;; | |
50 @@ -132,10 +136,11 @@ | |
51 shift | |
52 done | |
53 | |
54 -if [ ! "$DMD" -a ! "$GDC" ] | |
55 +if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] | |
56 then | |
57 DMD=1 | |
58 GDC=1 | |
59 + LDC=1 | |
60 fi | |
61 | |
62 if [ "$DMD" = "1" ] | |
63 @@ -146,4 +151,7 @@ | |
64 then | |
65 compile gdc runUnitTest_gdc | |
66 fi | |
67 - | |
68 +if [ "$LDC" = "1" ] | |
69 +then | |
70 + compile ldc runUnitTest_ldc | |
71 +fi | |
15 Index: lib/common/tango/core/BitManip.d | 72 Index: lib/common/tango/core/BitManip.d |
16 =================================================================== | 73 =================================================================== |
17 --- lib/common/tango/core/BitManip.d (revision 4097) | 74 --- lib/common/tango/core/BitManip.d (revision 4097) |
18 +++ lib/common/tango/core/BitManip.d (working copy) | 75 +++ lib/common/tango/core/BitManip.d (working copy) |
19 @@ -171,6 +171,10 @@ | 76 @@ -171,6 +171,10 @@ |
106 +//TODO: Enable when x86-64 Posix supports fibers | 163 +//TODO: Enable when x86-64 Posix supports fibers |
107 +// version( LLVM_AsmX86_64_Posix ) {} else | 164 +// version( LLVM_AsmX86_64_Posix ) {} else |
108 { | 165 { |
109 // NOTE: The ucontext implementation requires architecture specific | 166 // NOTE: The ucontext implementation requires architecture specific |
110 // data definitions to operate so testing for it must be done | 167 // data definitions to operate so testing for it must be done |
111 @@ -2522,7 +2572,7 @@ | 168 @@ -2367,9 +2417,11 @@ |
169 import tango.stdc.posix.ucontext; | |
170 } | |
171 } | |
172 - const size_t PAGESIZE; | |
173 } | |
174 | |
175 +// this currently need to be public for LDC | |
176 +const size_t PAGESIZE; | |
177 + | |
178 static this() | |
179 { | |
180 static if( is( typeof( GetSystemInfo ) ) ) | |
181 @@ -2522,7 +2574,7 @@ | |
112 } | 182 } |
113 } | 183 } |
114 | 184 |
115 - | 185 - |
116 +extern(C) int printf(char*, ...); | 186 +extern(C) int printf(char*, ...); |
117 //////////////////////////////////////////////////////////////////////////////// | 187 //////////////////////////////////////////////////////////////////////////////// |
118 // Fiber | 188 // Fiber |
119 //////////////////////////////////////////////////////////////////////////////// | 189 //////////////////////////////////////////////////////////////////////////////// |
120 @@ -3204,6 +3254,28 @@ | 190 @@ -3204,6 +3256,28 @@ |
121 | 191 |
122 assert( cast(uint) pstack & 0x0f == 0 ); | 192 assert( cast(uint) pstack & 0x0f == 0 ); |
123 } | 193 } |
124 + else version( LLVM_AsmX86_Posix ) | 194 + else version( LLVM_AsmX86_Posix ) |
125 + { | 195 + { |
144 + } | 214 + } |
145 ++/ | 215 ++/ |
146 else static if( is( ucontext_t ) ) | 216 else static if( is( ucontext_t ) ) |
147 { | 217 { |
148 getcontext( &m_utxt ); | 218 getcontext( &m_utxt ); |
149 Index: lib/unittest.sh | |
150 =================================================================== | |
151 --- lib/unittest.sh (revision 4097) | |
152 +++ lib/unittest.sh (working copy) | |
153 @@ -18,8 +18,9 @@ | |
154 --help: This message | |
155 --run-all: Reports result instead of breaking. Do not use this if you want to | |
156 run unittest runner through a debugger. | |
157 - dmd: Builds unittests for dmd | |
158 - gdc: Builds unittests for gdc | |
159 + dmd: Builds unittests for dmd | |
160 + gdc: Builds unittests for gdc | |
161 + ldc: Builds unittests for ldc | |
162 | |
163 <none>: Builds unittests for all known compilers.' | |
164 exit 0 | |
165 @@ -86,7 +87,7 @@ | |
166 void main() {} | |
167 EOF | |
168 | |
169 - rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
170 + rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
171 -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ | |
172 tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ | |
173 tango/io/vfs/*.d tango/io/vfs/model/*.d \ | |
174 @@ -125,6 +126,9 @@ | |
175 gdc) | |
176 GDC=1 | |
177 ;; | |
178 + ldc) | |
179 + LDC=1 | |
180 + ;; | |
181 *) | |
182 usage | |
183 ;; | |
184 @@ -132,10 +136,11 @@ | |
185 shift | |
186 done | |
187 | |
188 -if [ ! "$DMD" -a ! "$GDC" ] | |
189 +if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] | |
190 then | |
191 DMD=1 | |
192 GDC=1 | |
193 + LDC=1 | |
194 fi | |
195 | |
196 if [ "$DMD" = "1" ] | |
197 @@ -146,4 +151,7 @@ | |
198 then | |
199 compile gdc runUnitTest_gdc | |
200 fi | |
201 - | |
202 +if [ "$LDC" = "1" ] | |
203 +then | |
204 + compile ldc runUnitTest_ldc | |
205 +fi | |
206 Index: lib/gc/basic/gcx.d | 219 Index: lib/gc/basic/gcx.d |
207 =================================================================== | 220 =================================================================== |
208 --- lib/gc/basic/gcx.d (revision 4097) | 221 --- lib/gc/basic/gcx.d (revision 4097) |
209 +++ lib/gc/basic/gcx.d (working copy) | 222 +++ lib/gc/basic/gcx.d (working copy) |
210 @@ -65,6 +65,13 @@ | 223 @@ -65,6 +65,13 @@ |