Mercurial > projects > ldc
comparison runtime/ldc.diff @ 842:e66c627c177e
Update tango patch for newest tango.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 08 Dec 2008 17:09:13 +0100 |
parents | 43178a913a28 |
children | 0ffa92f4ac99 |
comparison
equal
deleted
inserted
replaced
833:482cd74d1c71 | 842:e66c627c177e |
---|---|
1 Index: lib/unittest.sh | |
2 =================================================================== | |
3 --- lib/unittest.sh (revision 4150) | |
4 +++ lib/unittest.sh (working copy) | |
5 @@ -18,8 +18,9 @@ | |
6 --help: This message | |
7 --run-all: Reports result instead of breaking. Do not use this if you want to | |
8 run unittest runner through a debugger. | |
9 - dmd: Builds unittests for dmd | |
10 - gdc: Builds unittests for gdc | |
11 + dmd: Builds unittests for dmd | |
12 + gdc: Builds unittests for gdc | |
13 + ldc: Builds unittests for ldc | |
14 | |
15 <none>: Builds unittests for all known compilers.' | |
16 exit 0 | |
17 @@ -86,7 +87,7 @@ | |
18 void main() {} | |
19 EOF | |
20 | |
21 - rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
22 + rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
23 -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ | |
24 tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ | |
25 tango/io/vfs/*.d tango/io/vfs/model/*.d \ | |
26 @@ -125,6 +126,9 @@ | |
27 gdc) | |
28 GDC=1 | |
29 ;; | |
30 + ldc) | |
31 + LDC=1 | |
32 + ;; | |
33 *) | |
34 usage | |
35 ;; | |
36 @@ -132,10 +136,11 @@ | |
37 shift | |
38 done | |
39 | |
40 -if [ ! "$DMD" -a ! "$GDC" ] | |
41 +if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] | |
42 then | |
43 DMD=1 | |
44 GDC=1 | |
45 + LDC=1 | |
46 fi | |
47 | |
48 if [ "$DMD" = "1" ] | |
49 @@ -146,4 +151,7 @@ | |
50 then | |
51 compile gdc runUnitTest_gdc | |
52 fi | |
53 - | |
54 +if [ "$LDC" = "1" ] | |
55 +then | |
56 + compile ldc runUnitTest_ldc | |
57 +fi | |
1 Index: lib/common/tango/core/BitManip.d | 58 Index: lib/common/tango/core/BitManip.d |
2 =================================================================== | 59 =================================================================== |
3 --- lib/common/tango/core/BitManip.d (revision 4145) | 60 --- lib/common/tango/core/BitManip.d (revision 4150) |
4 +++ lib/common/tango/core/BitManip.d (working copy) | 61 +++ lib/common/tango/core/BitManip.d (working copy) |
5 @@ -171,6 +171,10 @@ | 62 @@ -171,6 +171,10 @@ |
6 */ | 63 */ |
7 uint outpl( uint port_address, uint value ); | 64 uint outpl( uint port_address, uint value ); |
8 } | 65 } |
13 else | 70 else |
14 { | 71 { |
15 public import std.intrinsic; | 72 public import std.intrinsic; |
16 Index: lib/common/tango/core/Thread.d | 73 Index: lib/common/tango/core/Thread.d |
17 =================================================================== | 74 =================================================================== |
18 --- lib/common/tango/core/Thread.d (revision 4145) | 75 --- lib/common/tango/core/Thread.d (revision 4150) |
19 +++ lib/common/tango/core/Thread.d (working copy) | 76 +++ lib/common/tango/core/Thread.d (working copy) |
20 @@ -273,8 +273,50 @@ | 77 @@ -273,8 +273,50 @@ |
21 } | 78 } |
22 body | 79 body |
23 { | 80 { |
149 - | 206 - |
150 +extern(C) int printf(char*, ...); | 207 +extern(C) int printf(char*, ...); |
151 //////////////////////////////////////////////////////////////////////////////// | 208 //////////////////////////////////////////////////////////////////////////////// |
152 // Fiber | 209 // Fiber |
153 //////////////////////////////////////////////////////////////////////////////// | 210 //////////////////////////////////////////////////////////////////////////////// |
154 @@ -3177,6 +3261,22 @@ | 211 @@ -3255,6 +3339,22 @@ |
155 push( 0x00000000 ); // ESI | 212 push( 0x00000000 ); // ESI |
156 push( 0x00000000 ); // EDI | 213 push( 0x00000000 ); // EDI |
157 } | 214 } |
158 + else version( LLVM_AsmX86_Posix ) | 215 + else version( LLVM_AsmX86_Posix ) |
159 + { | 216 + { |
172 + } | 229 + } |
173 ++/ | 230 ++/ |
174 else version( AsmPPC_Posix ) | 231 else version( AsmPPC_Posix ) |
175 { | 232 { |
176 version( StackGrowsDown ) | 233 version( StackGrowsDown ) |
177 Index: lib/unittest.sh | |
178 =================================================================== | |
179 --- lib/unittest.sh (revision 4145) | |
180 +++ lib/unittest.sh (working copy) | |
181 @@ -18,8 +18,9 @@ | |
182 --help: This message | |
183 --run-all: Reports result instead of breaking. Do not use this if you want to | |
184 run unittest runner through a debugger. | |
185 - dmd: Builds unittests for dmd | |
186 - gdc: Builds unittests for gdc | |
187 + dmd: Builds unittests for dmd | |
188 + gdc: Builds unittests for gdc | |
189 + ldc: Builds unittests for ldc | |
190 | |
191 <none>: Builds unittests for all known compilers.' | |
192 exit 0 | |
193 @@ -86,7 +87,7 @@ | |
194 void main() {} | |
195 EOF | |
196 | |
197 - rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
198 + rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ | |
199 -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ | |
200 tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ | |
201 tango/io/vfs/*.d tango/io/vfs/model/*.d \ | |
202 @@ -125,6 +126,9 @@ | |
203 gdc) | |
204 GDC=1 | |
205 ;; | |
206 + ldc) | |
207 + LDC=1 | |
208 + ;; | |
209 *) | |
210 usage | |
211 ;; | |
212 @@ -132,10 +136,11 @@ | |
213 shift | |
214 done | |
215 | |
216 -if [ ! "$DMD" -a ! "$GDC" ] | |
217 +if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] | |
218 then | |
219 DMD=1 | |
220 GDC=1 | |
221 + LDC=1 | |
222 fi | |
223 | |
224 if [ "$DMD" = "1" ] | |
225 @@ -146,4 +151,7 @@ | |
226 then | |
227 compile gdc runUnitTest_gdc | |
228 fi | |
229 - | |
230 +if [ "$LDC" = "1" ] | |
231 +then | |
232 + compile ldc runUnitTest_ldc | |
233 +fi | |
234 Index: lib/gc/basic/gcx.d | 234 Index: lib/gc/basic/gcx.d |
235 =================================================================== | 235 =================================================================== |
236 --- lib/gc/basic/gcx.d (revision 4145) | 236 --- lib/gc/basic/gcx.d (revision 4150) |
237 +++ lib/gc/basic/gcx.d (working copy) | 237 +++ lib/gc/basic/gcx.d (working copy) |
238 @@ -65,6 +65,13 @@ | 238 @@ -65,6 +65,13 @@ |
239 } | 239 } |
240 | 240 |
241 | 241 |
324 else | 324 else |
325 { | 325 { |
326 asm | 326 asm |
327 Index: lib/gc/basic/gcbits.d | 327 Index: lib/gc/basic/gcbits.d |
328 =================================================================== | 328 =================================================================== |
329 --- lib/gc/basic/gcbits.d (revision 4145) | 329 --- lib/gc/basic/gcbits.d (revision 4150) |
330 +++ lib/gc/basic/gcbits.d (working copy) | 330 +++ lib/gc/basic/gcbits.d (working copy) |
331 @@ -39,6 +39,10 @@ | 331 @@ -39,6 +39,10 @@ |
332 { | 332 { |
333 // use the unoptimized version | 333 // use the unoptimized version |
334 } | 334 } |
339 else version (D_InlineAsm_X86) | 339 else version (D_InlineAsm_X86) |
340 { | 340 { |
341 version = Asm86; | 341 version = Asm86; |
342 Index: lib/build-tango.sh | 342 Index: lib/build-tango.sh |
343 =================================================================== | 343 =================================================================== |
344 --- lib/build-tango.sh (revision 4145) | 344 --- lib/build-tango.sh (revision 4150) |
345 +++ lib/build-tango.sh (working copy) | 345 +++ lib/build-tango.sh (working copy) |
346 @@ -23,7 +23,7 @@ | 346 @@ -23,7 +23,7 @@ |
347 --debug: Will enable debug info | 347 --debug: Will enable debug info |
348 --warn: Will enable warnings | 348 --warn: Will enable warnings |
349 --verbose: Increase verbosity | 349 --verbose: Increase verbosity |
371 mac) | 371 mac) |
372 # build Universal Binary version of the Tango library | 372 # build Universal Binary version of the Tango library |
373 build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc | 373 build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc |
374 Index: tango/text/convert/Layout.d | 374 Index: tango/text/convert/Layout.d |
375 =================================================================== | 375 =================================================================== |
376 --- tango/text/convert/Layout.d (revision 4145) | 376 --- tango/text/convert/Layout.d (revision 4150) |
377 +++ tango/text/convert/Layout.d (working copy) | 377 +++ tango/text/convert/Layout.d (working copy) |
378 @@ -47,6 +47,12 @@ | 378 @@ -47,6 +47,12 @@ |
379 alias void* Arg; | 379 alias void* Arg; |
380 alias va_list ArgList; | 380 alias va_list ArgList; |
381 } | 381 } |
397 } | 397 } |
398 } | 398 } |
399 return parse (formatStr, arguments, arglist, sink); | 399 return parse (formatStr, arguments, arglist, sink); |
400 Index: tango/net/cluster/CacheInvalidator.d | 400 Index: tango/net/cluster/CacheInvalidator.d |
401 =================================================================== | 401 =================================================================== |
402 --- tango/net/cluster/CacheInvalidator.d (revision 4145) | 402 --- tango/net/cluster/CacheInvalidator.d (revision 4150) |
403 +++ tango/net/cluster/CacheInvalidator.d (working copy) | 403 +++ tango/net/cluster/CacheInvalidator.d (working copy) |
404 @@ -79,7 +79,7 @@ | 404 @@ -79,7 +79,7 @@ |
405 | 405 |
406 *******************************************************************************/ | 406 *******************************************************************************/ |
407 | 407 |
410 { | 410 { |
411 private char[] key_; | 411 private char[] key_; |
412 | 412 |
413 Index: tango/core/Vararg.d | 413 Index: tango/core/Vararg.d |
414 =================================================================== | 414 =================================================================== |
415 --- tango/core/Vararg.d (revision 4145) | 415 --- tango/core/Vararg.d (revision 4150) |
416 +++ tango/core/Vararg.d (working copy) | 416 +++ tango/core/Vararg.d (working copy) |
417 @@ -15,6 +15,10 @@ | 417 @@ -15,6 +15,10 @@ |
418 { | 418 { |
419 public import std.stdarg; | 419 public import std.stdarg; |
420 } | 420 } |
425 else | 425 else |
426 { | 426 { |
427 /** | 427 /** |
428 Index: tango/core/sync/Semaphore.d | 428 Index: tango/core/sync/Semaphore.d |
429 =================================================================== | 429 =================================================================== |
430 --- tango/core/sync/Semaphore.d (revision 4145) | 430 --- tango/core/sync/Semaphore.d (revision 4150) |
431 +++ tango/core/sync/Semaphore.d (working copy) | 431 +++ tango/core/sync/Semaphore.d (working copy) |
432 @@ -384,7 +384,8 @@ | 432 @@ -384,7 +384,8 @@ |
433 { | 433 { |
434 synchronized( synComplete ) | 434 synchronized( synComplete ) |
435 { | 435 { |
461 + testWaitTimeout();} | 461 + testWaitTimeout();} |
462 } | 462 } |
463 } | 463 } |
464 Index: tango/core/sync/Condition.d | 464 Index: tango/core/sync/Condition.d |
465 =================================================================== | 465 =================================================================== |
466 --- tango/core/sync/Condition.d (revision 4145) | 466 --- tango/core/sync/Condition.d (revision 4150) |
467 +++ tango/core/sync/Condition.d (working copy) | 467 +++ tango/core/sync/Condition.d (working copy) |
468 @@ -553,8 +553,11 @@ | 468 @@ -553,8 +553,11 @@ |
469 | 469 |
470 unittest | 470 unittest |
471 { | 471 { |
477 + } | 477 + } |
478 } | 478 } |
479 } | 479 } |
480 Index: tango/core/Atomic.d | 480 Index: tango/core/Atomic.d |
481 =================================================================== | 481 =================================================================== |
482 --- tango/core/Atomic.d (revision 4145) | 482 --- tango/core/Atomic.d (revision 4150) |
483 +++ tango/core/Atomic.d (working copy) | 483 +++ tango/core/Atomic.d (working copy) |
484 @@ -270,6 +270,167 @@ | 484 @@ -270,6 +270,167 @@ |
485 | 485 |
486 | 486 |
487 //////////////////////////////////////////////////////////////////////////////// | 487 //////////////////////////////////////////////////////////////////////////////// |
649 // x86 Atomic Function Implementation | 649 // x86 Atomic Function Implementation |
650 //////////////////////////////////////////////////////////////////////////////// | 650 //////////////////////////////////////////////////////////////////////////////// |
651 | 651 |
652 Index: tango/math/IEEE.d | 652 Index: tango/math/IEEE.d |
653 =================================================================== | 653 =================================================================== |
654 --- tango/math/IEEE.d (revision 4145) | 654 --- tango/math/IEEE.d (revision 4150) |
655 +++ tango/math/IEEE.d (working copy) | 655 +++ tango/math/IEEE.d (working copy) |
656 @@ -1554,7 +1554,12 @@ | 656 @@ -1554,7 +1554,12 @@ |
657 return (bitsdiff == 0 && !((pa[F.EXPPOS_SHORT] ^ pb[F.EXPPOS_SHORT])& F.EXPMASK)) ? 1 : 0; | 657 return (bitsdiff == 0 && !((pa[F.EXPPOS_SHORT] ^ pb[F.EXPPOS_SHORT])& F.EXPMASK)) ? 1 : 0; |
658 } | 658 } |
659 } else { | 659 } else { |
667 } | 667 } |
668 } | 668 } |
669 | 669 |
670 Index: tango/math/Math.d | 670 Index: tango/math/Math.d |
671 =================================================================== | 671 =================================================================== |
672 --- tango/math/Math.d (revision 4145) | 672 --- tango/math/Math.d (revision 4150) |
673 +++ tango/math/Math.d (working copy) | 673 +++ tango/math/Math.d (working copy) |
674 @@ -76,6 +76,14 @@ | 674 @@ -76,6 +76,14 @@ |
675 version = DigitalMars_D_InlineAsm_X86; | 675 version = DigitalMars_D_InlineAsm_X86; |
676 } | 676 } |
677 } | 677 } |
816 } | 816 } |
817 | 817 |
818 debug(UnitTest) { | 818 debug(UnitTest) { |
819 Index: tango/stdc/posix/sys/types.d | 819 Index: tango/stdc/posix/sys/types.d |
820 =================================================================== | 820 =================================================================== |
821 --- tango/stdc/posix/sys/types.d (revision 4145) | 821 --- tango/stdc/posix/sys/types.d (revision 4150) |
822 +++ tango/stdc/posix/sys/types.d (working copy) | 822 +++ tango/stdc/posix/sys/types.d (working copy) |
823 @@ -422,7 +422,11 @@ | 823 @@ -422,7 +422,11 @@ |
824 } | 824 } |
825 else version( darwin ) | 825 else version( darwin ) |
826 { | 826 { |
833 } | 833 } |
834 else version( freebsd ) | 834 else version( freebsd ) |
835 { | 835 { |
836 Index: tango/stdc/stdlib.d | 836 Index: tango/stdc/stdlib.d |
837 =================================================================== | 837 =================================================================== |
838 --- tango/stdc/stdlib.d (revision 4145) | 838 --- tango/stdc/stdlib.d (revision 4150) |
839 +++ tango/stdc/stdlib.d (working copy) | 839 +++ tango/stdc/stdlib.d (working copy) |
840 @@ -94,6 +94,11 @@ | 840 @@ -94,6 +94,11 @@ |
841 { | 841 { |
842 void* alloca(size_t size); | 842 void* alloca(size_t size); |
843 } | 843 } |
849 else version( GNU ) | 849 else version( GNU ) |
850 { | 850 { |
851 private import gcc.builtins; | 851 private import gcc.builtins; |
852 Index: tango/stdc/stdarg.d | 852 Index: tango/stdc/stdarg.d |
853 =================================================================== | 853 =================================================================== |
854 --- tango/stdc/stdarg.d (revision 4145) | 854 --- tango/stdc/stdarg.d (revision 4150) |
855 +++ tango/stdc/stdarg.d (working copy) | 855 +++ tango/stdc/stdarg.d (working copy) |
856 @@ -13,6 +13,10 @@ | 856 @@ -13,6 +13,10 @@ |
857 { | 857 { |
858 public import std.c.stdarg; | 858 public import std.c.stdarg; |
859 } | 859 } |