Changeset 754:f34b552619fd
- Timestamp:
- 11/08/08 04:22:08
(2 months ago)
- Author:
- Christian Kamm <kamm incasoftware de>
- branch:
- default
- Message:
Update tango patch to latest tango revision.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r698 |
r754 |
|
| 1 | 1 | Index: object.di |
|---|
| 2 | 2 | =================================================================== |
|---|
| 3 | | --- object.di (revision 4002) |
|---|
| | 3 | --- object.di (revision 4071) |
|---|
| 4 | 4 | +++ object.di (working copy) |
|---|
| 5 | 5 | @@ -150,6 +150,9 @@ |
|---|
| … | … | |
| 13 | 13 | } |
|---|
| 14 | 14 | |
|---|
| | 15 | Index: lib/unittest.sh |
|---|
| | 16 | =================================================================== |
|---|
| | 17 | --- lib/unittest.sh (revision 4071) |
|---|
| | 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 | 72 | Index: lib/common/tango/core/BitManip.d |
|---|
| 16 | 73 | =================================================================== |
|---|
| 17 | | --- lib/common/tango/core/BitManip.d (revision 4002) |
|---|
| | 74 | --- lib/common/tango/core/BitManip.d (revision 4071) |
|---|
| 18 | 75 | +++ lib/common/tango/core/BitManip.d (working copy) |
|---|
| 19 | 76 | @@ -171,6 +171,10 @@ |
|---|
| … | … | |
| 30 | 87 | Index: lib/common/tango/core/Thread.d |
|---|
| 31 | 88 | =================================================================== |
|---|
| 32 | | --- lib/common/tango/core/Thread.d (revision 4002) |
|---|
| | 89 | --- lib/common/tango/core/Thread.d (revision 4071) |
|---|
| 33 | 90 | +++ lib/common/tango/core/Thread.d (working copy) |
|---|
| 34 | | @@ -235,6 +235,7 @@ |
|---|
| | 91 | @@ -247,6 +247,7 @@ |
|---|
| 35 | 92 | // used to track the number of suspended threads |
|---|
| 36 | 93 | // |
|---|
| … | … | |
| 40 | 97 | |
|---|
| 41 | 98 | extern (C) void thread_suspendHandler( int sig ) |
|---|
| 42 | | @@ -244,8 +245,29 @@ |
|---|
| | 99 | @@ -256,8 +257,29 @@ |
|---|
| 43 | 100 | } |
|---|
| 44 | 101 | body |
|---|
| … | … | |
| 71 | 128 | { |
|---|
| 72 | 129 | pushad; |
|---|
| 73 | | @@ -286,7 +308,7 @@ |
|---|
| | 130 | @@ -298,7 +320,7 @@ |
|---|
| 74 | 131 | status = sigdelset( &sigres, SIGUSR2 ); |
|---|
| 75 | 132 | assert( status == 0 ); |
|---|
| … | … | |
| 80 | 137 | |
|---|
| 81 | 138 | sigsuspend( &sigres ); |
|---|
| 82 | | @@ -297,8 +319,12 @@ |
|---|
| | 139 | @@ -309,8 +331,12 @@ |
|---|
| 83 | 140 | } |
|---|
| 84 | 141 | } |
|---|
| … | … | |
| 94 | 151 | { |
|---|
| 95 | 152 | popad; |
|---|
| 96 | | @@ -1572,8 +1598,14 @@ |
|---|
| | 153 | @@ -1584,8 +1610,14 @@ |
|---|
| 97 | 154 | status = sigaction( SIGUSR2, &sigusr2, null ); |
|---|
| 98 | 155 | assert( status == 0 ); |
|---|
| … | … | |
| 111 | 168 | status = pthread_key_create( &Thread.sm_this, null ); |
|---|
| 112 | 169 | assert( status == 0 ); |
|---|
| 113 | | @@ -1781,7 +1813,7 @@ |
|---|
| | 170 | @@ -1793,7 +1825,7 @@ |
|---|
| 114 | 171 | // to simply loop on sem_wait at the end, but I'm not |
|---|
| 115 | 172 | // convinced that this would be much faster than the |
|---|
| … | … | |
| 120 | 177 | else if( !t.m_lock ) |
|---|
| 121 | 178 | { |
|---|
| 122 | | @@ -2286,6 +2318,13 @@ |
|---|
| | 179 | @@ -2298,6 +2330,13 @@ |
|---|
| 123 | 180 | version = AsmPPC_Posix; |
|---|
| 124 | 181 | } |
|---|
| … | … | |
| 134 | 191 | version( Posix ) |
|---|
| 135 | 192 | { |
|---|
| 136 | | @@ -2296,6 +2328,8 @@ |
|---|
| | 193 | @@ -2308,6 +2347,8 @@ |
|---|
| 137 | 194 | version( AsmX86_Win32 ) {} else |
|---|
| 138 | 195 | version( AsmX86_Posix ) {} else |
|---|
| … | … | |
| 143 | 200 | // NOTE: The ucontext implementation requires architecture specific |
|---|
| 144 | 201 | // data definitions to operate so testing for it must be done |
|---|
| 145 | | @@ -2306,10 +2340,10 @@ |
|---|
| | 202 | @@ -2318,10 +2359,10 @@ |
|---|
| 146 | 203 | import tango.stdc.posix.ucontext; |
|---|
| 147 | 204 | } |
|---|
| … | … | |
| 156 | 213 | static this() |
|---|
| 157 | 214 | { |
|---|
| 158 | | @@ -2336,7 +2370,7 @@ |
|---|
| | 215 | @@ -2348,7 +2389,7 @@ |
|---|
| 159 | 216 | } |
|---|
| 160 | 217 | } |
|---|
| … | … | |
| 165 | 222 | // Fiber Entry Point and Context Switch |
|---|
| 166 | 223 | //////////////////////////////////////////////////////////////////////////////// |
|---|
| 167 | | @@ -2450,6 +2484,22 @@ |
|---|
| | 224 | @@ -2462,6 +2503,22 @@ |
|---|
| 168 | 225 | ret; |
|---|
| 169 | 226 | } |
|---|
| … | … | |
| 188 | 245 | { |
|---|
| 189 | 246 | Fiber cfib = Fiber.getThis(); |
|---|
| 190 | | @@ -3115,6 +3165,16 @@ |
|---|
| | 247 | @@ -3127,6 +3184,16 @@ |
|---|
| 191 | 248 | push( 0x00000000 ); // ESI |
|---|
| 192 | 249 | push( 0x00000000 ); // EDI |
|---|
| … | … | |
| 205 | 262 | { |
|---|
| 206 | 263 | version( StackGrowsDown ) |
|---|
| 207 | | Index: lib/unittest.sh |
|---|
| 208 | | =================================================================== |
|---|
| 209 | | --- lib/unittest.sh (revision 4002) |
|---|
| 210 | | +++ lib/unittest.sh (working copy) |
|---|
| 211 | | @@ -18,8 +18,9 @@ |
|---|
| 212 | | --help: This message |
|---|
| 213 | | --run-all: Reports result instead of breaking. Do not use this if you want to |
|---|
| 214 | | run unittest runner through a debugger. |
|---|
| 215 | | - dmd: Builds unittests for dmd |
|---|
| 216 | | - gdc: Builds unittests for gdc |
|---|
| 217 | | + dmd: Builds unittests for dmd |
|---|
| 218 | | + gdc: Builds unittests for gdc |
|---|
| 219 | | + ldc: Builds unittests for ldc |
|---|
| 220 | | |
|---|
| 221 | | <none>: Builds unittests for all known compilers.' |
|---|
| 222 | | exit 0 |
|---|
| 223 | | @@ -86,7 +87,7 @@ |
|---|
| 224 | | void main() {} |
|---|
| 225 | | EOF |
|---|
| 226 | | |
|---|
| 227 | | - rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ |
|---|
| 228 | | + rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ |
|---|
| 229 | | -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ |
|---|
| 230 | | tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ |
|---|
| 231 | | tango/io/vfs/*.d tango/io/vfs/model/*.d \ |
|---|
| 232 | | @@ -125,6 +126,9 @@ |
|---|
| 233 | | gdc) |
|---|
| 234 | | GDC=1 |
|---|
| 235 | | ;; |
|---|
| 236 | | + ldc) |
|---|
| 237 | | + LDC=1 |
|---|
| 238 | | + ;; |
|---|
| 239 | | *) |
|---|
| 240 | | usage |
|---|
| 241 | | ;; |
|---|
| 242 | | @@ -132,10 +136,11 @@ |
|---|
| 243 | | shift |
|---|
| 244 | | done |
|---|
| 245 | | |
|---|
| 246 | | -if [ ! "$DMD" -a ! "$GDC" ] |
|---|
| 247 | | +if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] |
|---|
| 248 | | then |
|---|
| 249 | | DMD=1 |
|---|
| 250 | | GDC=1 |
|---|
| 251 | | + LDC=1 |
|---|
| 252 | | fi |
|---|
| 253 | | |
|---|
| 254 | | if [ "$DMD" = "1" ] |
|---|
| 255 | | @@ -146,4 +151,7 @@ |
|---|
| 256 | | then |
|---|
| 257 | | compile gdc runUnitTest_gdc |
|---|
| 258 | | fi |
|---|
| 259 | | - |
|---|
| 260 | | +if [ "$LDC" = "1" ] |
|---|
| 261 | | +then |
|---|
| 262 | | + compile ldc runUnitTest_ldc |
|---|
| 263 | | +fi |
|---|
| 264 | 264 | Index: lib/gc/basic/gcx.d |
|---|
| 265 | 265 | =================================================================== |
|---|
| 266 | | --- lib/gc/basic/gcx.d (revision 4002) |
|---|
| | 266 | --- lib/gc/basic/gcx.d (revision 4071) |
|---|
| 267 | 267 | +++ lib/gc/basic/gcx.d (working copy) |
|---|
| 268 | 268 | @@ -65,6 +65,13 @@ |
|---|
| … | … | |
| 336 | 336 | Index: lib/gc/basic/gcbits.d |
|---|
| 337 | 337 | =================================================================== |
|---|
| 338 | | --- lib/gc/basic/gcbits.d (revision 4002) |
|---|
| | 338 | --- lib/gc/basic/gcbits.d (revision 4071) |
|---|
| 339 | 339 | +++ lib/gc/basic/gcbits.d (working copy) |
|---|
| 340 | 340 | @@ -39,6 +39,10 @@ |
|---|
| … | … | |
| 351 | 351 | Index: lib/build-tango.sh |
|---|
| 352 | 352 | =================================================================== |
|---|
| 353 | | --- lib/build-tango.sh (revision 4002) |
|---|
| | 353 | --- lib/build-tango.sh (revision 4071) |
|---|
| 354 | 354 | +++ lib/build-tango.sh (working copy) |
|---|
| 355 | 355 | @@ -23,7 +23,7 @@ |
|---|
| … | … | |
| 383 | 383 | Index: tango/text/convert/Layout.d |
|---|
| 384 | 384 | =================================================================== |
|---|
| 385 | | --- tango/text/convert/Layout.d (revision 4002) |
|---|
| | 385 | --- tango/text/convert/Layout.d (revision 4071) |
|---|
| 386 | 386 | +++ tango/text/convert/Layout.d (working copy) |
|---|
| 387 | 387 | @@ -47,6 +47,12 @@ |
|---|
| … | … | |
| 398 | 398 | { |
|---|
| 399 | 399 | alias void* Arg; |
|---|
| 400 | | @@ -197,9 +203,18 @@ |
|---|
| 401 | | assert (formatStr, "null format specifier"); |
|---|
| 402 | | assert (arguments.length < 64, "too many args in Layout.convert"); |
|---|
| 403 | | |
|---|
| 404 | | - version (GNU) |
|---|
| 405 | | + version (LDC) |
|---|
| 406 | | { |
|---|
| 407 | | Arg[64] arglist = void; |
|---|
| 408 | | + foreach (i, arg; arguments) |
|---|
| 409 | | + { |
|---|
| 410 | | + arglist[i] = args; |
|---|
| | 400 | @@ -295,7 +301,7 @@ |
|---|
| | 401 | foreach (i, arg; arguments) |
|---|
| | 402 | { |
|---|
| | 403 | arglist[i] = args; |
|---|
| | 404 | - args += (arg.tsize + int.sizeof - 1) & ~ (int.sizeof - 1); |
|---|
| 411 | 405 | + args += (arg.tsize + size_t.sizeof - 1) & ~ (size_t.sizeof - 1); |
|---|
| 412 | | + } |
|---|
| 413 | | + } |
|---|
| 414 | | + else version (GNU) |
|---|
| 415 | | + { |
|---|
| 416 | | + Arg[64] arglist = void; |
|---|
| 417 | | int[64] intargs = void; |
|---|
| 418 | | byte[64] byteargs = void; |
|---|
| 419 | | long[64] longargs = void; |
|---|
| | 406 | } |
|---|
| | 407 | } |
|---|
| | 408 | return parse (formatStr, arguments, arglist, sink); |
|---|
| 420 | 409 | Index: tango/net/cluster/CacheInvalidator.d |
|---|
| 421 | 410 | =================================================================== |
|---|
| 422 | | --- tango/net/cluster/CacheInvalidator.d (revision 4002) |
|---|
| | 411 | --- tango/net/cluster/CacheInvalidator.d (revision 4071) |
|---|
| 423 | 412 | +++ tango/net/cluster/CacheInvalidator.d (working copy) |
|---|
| 424 | 413 | @@ -79,7 +79,7 @@ |
|---|
| … | … | |
| 433 | 422 | Index: tango/core/Vararg.d |
|---|
| 434 | 423 | =================================================================== |
|---|
| 435 | | --- tango/core/Vararg.d (revision 4002) |
|---|
| | 424 | --- tango/core/Vararg.d (revision 4071) |
|---|
| 436 | 425 | +++ tango/core/Vararg.d (working copy) |
|---|
| 437 | 426 | @@ -15,6 +15,10 @@ |
|---|
| … | … | |
| 448 | 437 | Index: tango/core/sync/Semaphore.d |
|---|
| 449 | 438 | =================================================================== |
|---|
| 450 | | --- tango/core/sync/Semaphore.d (revision 3979) |
|---|
| | 439 | --- tango/core/sync/Semaphore.d (revision 4071) |
|---|
| 451 | 440 | +++ tango/core/sync/Semaphore.d (working copy) |
|---|
| 452 | 441 | @@ -329,7 +329,8 @@ |
|---|
| … | … | |
| 484 | 473 | Index: tango/core/sync/Condition.d |
|---|
| 485 | 474 | =================================================================== |
|---|
| 486 | | --- tango/core/sync/Condition.d (revision 3979) |
|---|
| | 475 | --- tango/core/sync/Condition.d (revision 4071) |
|---|
| 487 | 476 | +++ tango/core/sync/Condition.d (working copy) |
|---|
| 488 | 477 | @@ -553,8 +553,11 @@ |
|---|
| … | … | |
| 500 | 489 | Index: tango/core/Atomic.d |
|---|
| 501 | 490 | =================================================================== |
|---|
| 502 | | --- tango/core/Atomic.d (revision 4002) |
|---|
| | 491 | --- tango/core/Atomic.d (revision 4071) |
|---|
| 503 | 492 | +++ tango/core/Atomic.d (working copy) |
|---|
| 504 | 493 | @@ -270,6 +270,167 @@ |
|---|
| … | … | |
| 670 | 659 | //////////////////////////////////////////////////////////////////////////////// |
|---|
| 671 | 660 | |
|---|
| 672 | | @@ -282,9 +598,9 @@ |
|---|
| | 661 | @@ -282,9 +443,9 @@ |
|---|
| 673 | 662 | { |
|---|
| 674 | 663 | pragma( msg, "tango.core.Atomic: using IA-32 inline asm" ); |
|---|
| … | … | |
| 684 | 673 | Index: tango/math/IEEE.d |
|---|
| 685 | 674 | =================================================================== |
|---|
| 686 | | --- tango/math/IEEE.d (revision 3979) |
|---|
| | 675 | --- tango/math/IEEE.d (revision 4071) |
|---|
| 687 | 676 | +++ tango/math/IEEE.d (working copy) |
|---|
| 688 | 677 | @@ -1543,7 +1543,12 @@ |
|---|
| … | … | |
| 702 | 691 | Index: tango/math/Math.d |
|---|
| 703 | 692 | =================================================================== |
|---|
| 704 | | --- tango/math/Math.d (revision 4002) |
|---|
| | 693 | --- tango/math/Math.d (revision 4071) |
|---|
| 705 | 694 | +++ tango/math/Math.d (working copy) |
|---|
| 706 | 695 | @@ -76,6 +76,14 @@ |
|---|
| … | … | |
| 851 | 840 | Index: tango/stdc/posix/sys/types.d |
|---|
| 852 | 841 | =================================================================== |
|---|
| 853 | | --- tango/stdc/posix/sys/types.d (revision 3979) |
|---|
| | 842 | --- tango/stdc/posix/sys/types.d (revision 4071) |
|---|
| 854 | 843 | +++ tango/stdc/posix/sys/types.d (working copy) |
|---|
| 855 | 844 | @@ -422,7 +422,11 @@ |
|---|
| … | … | |
| 868 | 857 | Index: tango/stdc/stdlib.d |
|---|
| 869 | 858 | =================================================================== |
|---|
| 870 | | --- tango/stdc/stdlib.d (revision 4002) |
|---|
| | 859 | --- tango/stdc/stdlib.d (revision 4071) |
|---|
| 871 | 860 | +++ tango/stdc/stdlib.d (working copy) |
|---|
| 872 | 861 | @@ -94,6 +94,11 @@ |
|---|
| … | … | |
| 884 | 873 | Index: tango/stdc/stdarg.d |
|---|
| 885 | 874 | =================================================================== |
|---|
| 886 | | --- tango/stdc/stdarg.d (revision 4002) |
|---|
| | 875 | --- tango/stdc/stdarg.d (revision 4071) |
|---|
| 887 | 876 | +++ tango/stdc/stdarg.d (working copy) |
|---|
| 888 | 877 | @@ -13,6 +13,10 @@ |
|---|