Mercurial > projects > ldc
comparison runtime/ldc.diff @ 685:8d7e58801c82
Adjust build-tango.sh for ldc.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Oct 2008 11:23:27 +0200 |
parents | d8a1481eaa0c |
children | f0ba5d37dd86 |
comparison
equal
deleted
inserted
replaced
684:f1560a529987 | 685:8d7e58801c82 |
---|---|
1 Index: object.di | 1 Index: object.di |
2 =================================================================== | 2 =================================================================== |
3 --- object.di (revision 3954) | 3 --- object.di (revision 4002) |
4 +++ object.di (working copy) | 4 +++ object.di (working copy) |
5 @@ -150,6 +150,9 @@ | 5 @@ -150,6 +150,9 @@ |
6 void function() dtor; | 6 void function() dtor; |
7 void function() unitTest; | 7 void function() unitTest; |
8 | 8 |
12 static int opApply( int delegate( inout ModuleInfo ) ); | 12 static int opApply( int delegate( inout ModuleInfo ) ); |
13 } | 13 } |
14 | 14 |
15 Index: lib/common/tango/core/BitManip.d | 15 Index: lib/common/tango/core/BitManip.d |
16 =================================================================== | 16 =================================================================== |
17 --- lib/common/tango/core/BitManip.d (revision 3954) | 17 --- lib/common/tango/core/BitManip.d (revision 4002) |
18 +++ lib/common/tango/core/BitManip.d (working copy) | 18 +++ lib/common/tango/core/BitManip.d (working copy) |
19 @@ -171,6 +171,10 @@ | 19 @@ -171,6 +171,10 @@ |
20 */ | 20 */ |
21 uint outpl( uint port_address, uint value ); | 21 uint outpl( uint port_address, uint value ); |
22 } | 22 } |
27 else | 27 else |
28 { | 28 { |
29 public import std.intrinsic; | 29 public import std.intrinsic; |
30 Index: lib/common/tango/core/Thread.d | 30 Index: lib/common/tango/core/Thread.d |
31 =================================================================== | 31 =================================================================== |
32 --- lib/common/tango/core/Thread.d (revision 3954) | 32 --- lib/common/tango/core/Thread.d (revision 4002) |
33 +++ lib/common/tango/core/Thread.d (working copy) | 33 +++ lib/common/tango/core/Thread.d (working copy) |
34 @@ -244,8 +244,29 @@ | 34 @@ -244,8 +244,29 @@ |
35 } | 35 } |
36 body | 36 body |
37 { | 37 { |
161 else version( AsmPPC_Posix ) | 161 else version( AsmPPC_Posix ) |
162 { | 162 { |
163 version( StackGrowsDown ) | 163 version( StackGrowsDown ) |
164 Index: lib/unittest.sh | 164 Index: lib/unittest.sh |
165 =================================================================== | 165 =================================================================== |
166 --- lib/unittest.sh (revision 3954) | 166 --- lib/unittest.sh (revision 4002) |
167 +++ lib/unittest.sh (working copy) | 167 +++ lib/unittest.sh (working copy) |
168 @@ -18,8 +18,9 @@ | 168 @@ -18,8 +18,9 @@ |
169 --help: This message | 169 --help: This message |
170 --run-all: Reports result instead of breaking. Do not use this if you want to | 170 --run-all: Reports result instead of breaking. Do not use this if you want to |
171 run unittest runner through a debugger. | 171 run unittest runner through a debugger. |
218 +then | 218 +then |
219 + compile ldc runUnitTest_ldc | 219 + compile ldc runUnitTest_ldc |
220 +fi | 220 +fi |
221 Index: lib/gc/basic/gcx.d | 221 Index: lib/gc/basic/gcx.d |
222 =================================================================== | 222 =================================================================== |
223 --- lib/gc/basic/gcx.d (revision 3954) | 223 --- lib/gc/basic/gcx.d (revision 4002) |
224 +++ lib/gc/basic/gcx.d (working copy) | 224 +++ lib/gc/basic/gcx.d (working copy) |
225 @@ -65,6 +65,13 @@ | 225 @@ -65,6 +65,13 @@ |
226 } | 226 } |
227 | 227 |
228 | 228 |
290 else | 290 else |
291 { | 291 { |
292 asm | 292 asm |
293 Index: lib/gc/basic/gcbits.d | 293 Index: lib/gc/basic/gcbits.d |
294 =================================================================== | 294 =================================================================== |
295 --- lib/gc/basic/gcbits.d (revision 3954) | 295 --- lib/gc/basic/gcbits.d (revision 4002) |
296 +++ lib/gc/basic/gcbits.d (working copy) | 296 +++ lib/gc/basic/gcbits.d (working copy) |
297 @@ -39,6 +39,10 @@ | 297 @@ -39,6 +39,10 @@ |
298 { | 298 { |
299 // use the unoptimized version | 299 // use the unoptimized version |
300 } | 300 } |
303 + // ditto | 303 + // ditto |
304 +} | 304 +} |
305 else version (D_InlineAsm_X86) | 305 else version (D_InlineAsm_X86) |
306 { | 306 { |
307 version = Asm86; | 307 version = Asm86; |
308 Index: lib/build-tango.sh | |
309 =================================================================== | |
310 --- lib/build-tango.sh (revision 4002) | |
311 +++ lib/build-tango.sh (working copy) | |
312 @@ -23,7 +23,7 @@ | |
313 --debug: Will enable debug info | |
314 --warn: Will enable warnings | |
315 --verbose: Increase verbosity | |
316 - <identifier> is one of {dmd, gdc, mac} and will build libtango.a, | |
317 + <identifier> is one of {dmd, gdc, ldc, mac} and will build libtango.a, | |
318 libgtango.a or universal Mac binaries respectively | |
319 | |
320 The script must be called from within lib/ and the resulting | |
321 @@ -105,7 +105,7 @@ | |
322 if filter $OBJNAME | |
323 then | |
324 if [ $VERBOSE == 1 ]; then echo "[$DC] $FILENAME"; fi | |
325 - $DC $WARN -c $INLINE $DEBUG $RELEASE -version=Posix -version=Tango -of$OBJNAME $FILENAME | |
326 + $DC $WARN -c $INLINE $DEBUG $RELEASE -version=Tango -of$OBJNAME $FILENAME | |
327 if [ "$?" != 0 ] | |
328 then | |
329 return 1; | |
330 @@ -189,6 +189,9 @@ | |
331 gdc) | |
332 build gdmd libgtango.a libgphobos.a | |
333 ;; | |
334 + ldc) | |
335 + build ldc libtango-user-ldc.a build-tango.sh | |
336 + ;; | |
337 mac) | |
338 # build Universal Binary version of the Tango library | |
339 build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc | |
308 Index: tango/text/convert/Layout.d | 340 Index: tango/text/convert/Layout.d |
309 =================================================================== | 341 =================================================================== |
310 --- tango/text/convert/Layout.d (revision 3954) | 342 --- tango/text/convert/Layout.d (revision 4002) |
311 +++ tango/text/convert/Layout.d (working copy) | 343 +++ tango/text/convert/Layout.d (working copy) |
312 @@ -47,6 +47,12 @@ | 344 @@ -47,6 +47,12 @@ |
313 alias void* Arg; | 345 alias void* Arg; |
314 alias va_list ArgList; | 346 alias va_list ArgList; |
315 } | 347 } |
340 + { | 372 + { |
341 + Arg[64] arglist = void; | 373 + Arg[64] arglist = void; |
342 int[64] intargs = void; | 374 int[64] intargs = void; |
343 byte[64] byteargs = void; | 375 byte[64] byteargs = void; |
344 long[64] longargs = void; | 376 long[64] longargs = void; |
377 Index: tango/net/cluster/CacheInvalidator.d | |
378 =================================================================== | |
379 --- tango/net/cluster/CacheInvalidator.d (revision 4002) | |
380 +++ tango/net/cluster/CacheInvalidator.d (working copy) | |
381 @@ -79,7 +79,7 @@ | |
382 | |
383 *******************************************************************************/ | |
384 | |
385 -private class InvalidatorPayload : NetworkMessage | |
386 +package class InvalidatorPayload : NetworkMessage | |
387 { | |
388 private char[] key_; | |
389 | |
345 Index: tango/core/Vararg.d | 390 Index: tango/core/Vararg.d |
346 =================================================================== | 391 =================================================================== |
347 --- tango/core/Vararg.d (revision 3954) | 392 --- tango/core/Vararg.d (revision 4002) |
348 +++ tango/core/Vararg.d (working copy) | 393 +++ tango/core/Vararg.d (working copy) |
349 @@ -15,6 +15,10 @@ | 394 @@ -15,6 +15,10 @@ |
350 { | 395 { |
351 public import std.stdarg; | 396 public import std.stdarg; |
352 } | 397 } |
357 else | 402 else |
358 { | 403 { |
359 /** | 404 /** |
360 Index: tango/core/Atomic.d | 405 Index: tango/core/Atomic.d |
361 =================================================================== | 406 =================================================================== |
362 --- tango/core/Atomic.d (revision 3954) | 407 --- tango/core/Atomic.d (revision 4002) |
363 +++ tango/core/Atomic.d (working copy) | 408 +++ tango/core/Atomic.d (working copy) |
364 @@ -270,6 +270,167 @@ | 409 @@ -270,6 +270,167 @@ |
365 | 410 |
366 | 411 |
367 //////////////////////////////////////////////////////////////////////////////// | 412 //////////////////////////////////////////////////////////////////////////////// |
529 // x86 Atomic Function Implementation | 574 // x86 Atomic Function Implementation |
530 //////////////////////////////////////////////////////////////////////////////// | 575 //////////////////////////////////////////////////////////////////////////////// |
531 | 576 |
532 Index: tango/math/Math.d | 577 Index: tango/math/Math.d |
533 =================================================================== | 578 =================================================================== |
534 --- tango/math/Math.d (revision 3954) | 579 --- tango/math/Math.d (revision 4002) |
535 +++ tango/math/Math.d (working copy) | 580 +++ tango/math/Math.d (working copy) |
536 @@ -76,6 +76,14 @@ | 581 @@ -76,6 +76,14 @@ |
537 version = DigitalMars_D_InlineAsm_X86; | 582 version = DigitalMars_D_InlineAsm_X86; |
538 } | 583 } |
539 } | 584 } |
678 } | 723 } |
679 | 724 |
680 debug(UnitTest) { | 725 debug(UnitTest) { |
681 Index: tango/stdc/stdlib.d | 726 Index: tango/stdc/stdlib.d |
682 =================================================================== | 727 =================================================================== |
683 --- tango/stdc/stdlib.d (revision 3954) | 728 --- tango/stdc/stdlib.d (revision 4002) |
684 +++ tango/stdc/stdlib.d (working copy) | 729 +++ tango/stdc/stdlib.d (working copy) |
685 @@ -94,6 +94,11 @@ | 730 @@ -94,6 +94,11 @@ |
686 { | 731 { |
687 void* alloca(size_t size); | 732 void* alloca(size_t size); |
688 } | 733 } |
694 else version( GNU ) | 739 else version( GNU ) |
695 { | 740 { |
696 private import gcc.builtins; | 741 private import gcc.builtins; |
697 Index: tango/stdc/stdarg.d | 742 Index: tango/stdc/stdarg.d |
698 =================================================================== | 743 =================================================================== |
699 --- tango/stdc/stdarg.d (revision 3954) | 744 --- tango/stdc/stdarg.d (revision 4002) |
700 +++ tango/stdc/stdarg.d (working copy) | 745 +++ tango/stdc/stdarg.d (working copy) |
701 @@ -13,6 +13,10 @@ | 746 @@ -13,6 +13,10 @@ |
702 { | 747 { |
703 public import std.c.stdarg; | 748 public import std.c.stdarg; |
704 } | 749 } |