Changeset 822:43178a913a28
- Timestamp:
- 12/01/08 20:45:31
(1 month ago)
- Author:
- Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
- branch:
- default
- Message:
Removed PAGESIZE part of Tango patch, it works for me when the check is removed.
Updated Tango patch to latest Tango revision.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r797 |
r822 |
|
| 2980 | 2980 | arg->defaultArg = resolveProperties(sc, arg->defaultArg); |
|---|
| 2981 | 2981 | arg->defaultArg = arg->defaultArg->implicitCastTo(sc, arg->type); |
|---|
| 2982 | | |
|---|
| 2983 | | // make sure default arguments only use variables with lower protection |
|---|
| 2984 | | // this check only catches the common case that the default arg Exp is a VarExp |
|---|
| 2985 | | if(arg->defaultArg->op == TOKvar) |
|---|
| 2986 | | { VarExp *ve = (VarExp *)arg->defaultArg; |
|---|
| 2987 | | if(ve->var->protection != PROTundefined && ve->var->protection < sc->protection) |
|---|
| 2988 | | error(loc, "default argument %s has stronger protection than function %s", ve->var->toChars(), toChars()); |
|---|
| 2989 | | } |
|---|
| 2990 | 2982 | } |
|---|
| 2991 | 2983 | |
|---|
| r797 |
r822 |
|
| 3466 | 3466 | arg->defaultArg = resolveProperties(sc, arg->defaultArg); |
|---|
| 3467 | 3467 | arg->defaultArg = arg->defaultArg->implicitCastTo(sc, arg->type); |
|---|
| 3468 | | |
|---|
| 3469 | | // make sure default arguments only use variables with lower protection |
|---|
| 3470 | | // this check only catches the common case that the default arg Exp is a VarExp |
|---|
| 3471 | | if(arg->defaultArg->op == TOKvar) |
|---|
| 3472 | | { VarExp *ve = (VarExp *)arg->defaultArg; |
|---|
| 3473 | | if(ve->var->protection != PROTundefined && ve->var->protection < sc->protection) |
|---|
| 3474 | | error(loc, "default argument %s has stronger protection than function %s", ve->var->toChars(), toChars()); |
|---|
| 3475 | | } |
|---|
| 3476 | 3468 | } |
|---|
| 3477 | 3469 | |
|---|
| r818 |
r822 |
|
| 1 | | Index: lib/unittest.sh |
|---|
| 2 | | =================================================================== |
|---|
| 3 | | --- lib/unittest.sh (revision 4134) |
|---|
| 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 |
|---|
| 58 | 1 | Index: lib/common/tango/core/BitManip.d |
|---|
| 59 | 2 | =================================================================== |
|---|
| 60 | | --- lib/common/tango/core/BitManip.d (revision 4134) |
|---|
| | 3 | --- lib/common/tango/core/BitManip.d (revision 4145) |
|---|
| 61 | 4 | +++ lib/common/tango/core/BitManip.d (working copy) |
|---|
| 62 | 5 | @@ -171,6 +171,10 @@ |
|---|
| … | … | |
| 73 | 16 | Index: lib/common/tango/core/Thread.d |
|---|
| 74 | 17 | =================================================================== |
|---|
| 75 | | --- lib/common/tango/core/Thread.d (revision 4134) |
|---|
| | 18 | --- lib/common/tango/core/Thread.d (revision 4145) |
|---|
| 76 | 19 | +++ lib/common/tango/core/Thread.d (working copy) |
|---|
| 77 | 20 | @@ -273,8 +273,50 @@ |
|---|
| … | … | |
| 171 | 114 | // NOTE: The ucontext implementation requires architecture specific |
|---|
| 172 | 115 | // data definitions to operate so testing for it must be done |
|---|
| 173 | | @@ -2367,9 +2429,11 @@ |
|---|
| 174 | | import tango.stdc.posix.ucontext; |
|---|
| 175 | | } |
|---|
| 176 | | } |
|---|
| 177 | | - const size_t PAGESIZE; |
|---|
| 178 | | } |
|---|
| 179 | | |
|---|
| 180 | | +// this currently need to be public for LDC |
|---|
| 181 | | +const size_t PAGESIZE; |
|---|
| 182 | | + |
|---|
| 183 | | static this() |
|---|
| 184 | | { |
|---|
| 185 | | static if( is( typeof( GetSystemInfo ) ) ) |
|---|
| 186 | | @@ -2510,6 +2574,28 @@ |
|---|
| | 116 | @@ -2510,6 +2572,28 @@ |
|---|
| 187 | 117 | ret; |
|---|
| 188 | 118 | } |
|---|
| … | … | |
| 213 | 143 | { |
|---|
| 214 | 144 | Fiber cfib = Fiber.getThis(); |
|---|
| 215 | | @@ -2522,7 +2608,7 @@ |
|---|
| | 145 | @@ -2522,7 +2606,7 @@ |
|---|
| 216 | 146 | } |
|---|
| 217 | 147 | } |
|---|
| … | … | |
| 222 | 152 | // Fiber |
|---|
| 223 | 153 | //////////////////////////////////////////////////////////////////////////////// |
|---|
| 224 | | @@ -3177,6 +3263,22 @@ |
|---|
| | 154 | @@ -3177,6 +3261,22 @@ |
|---|
| 225 | 155 | push( 0x00000000 ); // ESI |
|---|
| 226 | 156 | push( 0x00000000 ); // EDI |
|---|
| … | … | |
| 245 | 175 | { |
|---|
| 246 | 176 | 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 |
|---|
| 247 | 234 | Index: lib/gc/basic/gcx.d |
|---|
| 248 | 235 | =================================================================== |
|---|
| 249 | | --- lib/gc/basic/gcx.d (revision 4134) |
|---|
| | 236 | --- lib/gc/basic/gcx.d (revision 4145) |
|---|
| 250 | 237 | +++ lib/gc/basic/gcx.d (working copy) |
|---|
| 251 | 238 | @@ -65,6 +65,13 @@ |
|---|
| … | … | |
| 340 | 327 | Index: lib/gc/basic/gcbits.d |
|---|
| 341 | 328 | =================================================================== |
|---|
| 342 | | --- lib/gc/basic/gcbits.d (revision 4134) |
|---|
| | 329 | --- lib/gc/basic/gcbits.d (revision 4145) |
|---|
| 343 | 330 | +++ lib/gc/basic/gcbits.d (working copy) |
|---|
| 344 | 331 | @@ -39,6 +39,10 @@ |
|---|
| … | … | |
| 355 | 342 | Index: lib/build-tango.sh |
|---|
| 356 | 343 | =================================================================== |
|---|
| 357 | | --- lib/build-tango.sh (revision 4134) |
|---|
| | 344 | --- lib/build-tango.sh (revision 4145) |
|---|
| 358 | 345 | +++ lib/build-tango.sh (working copy) |
|---|
| 359 | 346 | @@ -23,7 +23,7 @@ |
|---|
| … | … | |
| 387 | 374 | Index: tango/text/convert/Layout.d |
|---|
| 388 | 375 | =================================================================== |
|---|
| 389 | | --- tango/text/convert/Layout.d (revision 4134) |
|---|
| | 376 | --- tango/text/convert/Layout.d (revision 4145) |
|---|
| 390 | 377 | +++ tango/text/convert/Layout.d (working copy) |
|---|
| 391 | 378 | @@ -47,6 +47,12 @@ |
|---|
| … | … | |
| 413 | 400 | Index: tango/net/cluster/CacheInvalidator.d |
|---|
| 414 | 401 | =================================================================== |
|---|
| 415 | | --- tango/net/cluster/CacheInvalidator.d (revision 4134) |
|---|
| | 402 | --- tango/net/cluster/CacheInvalidator.d (revision 4145) |
|---|
| 416 | 403 | +++ tango/net/cluster/CacheInvalidator.d (working copy) |
|---|
| 417 | 404 | @@ -79,7 +79,7 @@ |
|---|
| … | … | |
| 426 | 413 | Index: tango/core/Vararg.d |
|---|
| 427 | 414 | =================================================================== |
|---|
| 428 | | --- tango/core/Vararg.d (revision 4134) |
|---|
| | 415 | --- tango/core/Vararg.d (revision 4145) |
|---|
| 429 | 416 | +++ tango/core/Vararg.d (working copy) |
|---|
| 430 | 417 | @@ -15,6 +15,10 @@ |
|---|
| … | … | |
| 441 | 428 | Index: tango/core/sync/Semaphore.d |
|---|
| 442 | 429 | =================================================================== |
|---|
| 443 | | --- tango/core/sync/Semaphore.d (revision 4134) |
|---|
| | 430 | --- tango/core/sync/Semaphore.d (revision 4145) |
|---|
| 444 | 431 | +++ tango/core/sync/Semaphore.d (working copy) |
|---|
| 445 | | @@ -380,7 +380,8 @@ |
|---|
| | 432 | @@ -384,7 +384,8 @@ |
|---|
| 446 | 433 | { |
|---|
| 447 | 434 | synchronized( synComplete ) |
|---|
| … | … | |
| 453 | 440 | } |
|---|
| 454 | 441 | Thread.yield(); |
|---|
| 455 | | @@ -388,9 +389,9 @@ |
|---|
| | 442 | @@ -392,9 +393,9 @@ |
|---|
| 456 | 443 | |
|---|
| 457 | 444 | synchronized( synComplete ) |
|---|
| … | … | |
| 465 | 452 | { |
|---|
| 466 | 453 | assert( numConsumed == numToProduce ); |
|---|
| 467 | | @@ -451,7 +452,8 @@ |
|---|
| | 454 | @@ -455,7 +456,8 @@ |
|---|
| 468 | 455 | |
|---|
| 469 | 456 | unittest |
|---|
| … | … | |
| 477 | 464 | Index: tango/core/sync/Condition.d |
|---|
| 478 | 465 | =================================================================== |
|---|
| 479 | | --- tango/core/sync/Condition.d (revision 4134) |
|---|
| | 466 | --- tango/core/sync/Condition.d (revision 4145) |
|---|
| 480 | 467 | +++ tango/core/sync/Condition.d (working copy) |
|---|
| 481 | 468 | @@ -553,8 +553,11 @@ |
|---|
| … | … | |
| 493 | 480 | Index: tango/core/Atomic.d |
|---|
| 494 | 481 | =================================================================== |
|---|
| 495 | | --- tango/core/Atomic.d (revision 4134) |
|---|
| | 482 | --- tango/core/Atomic.d (revision 4145) |
|---|
| 496 | 483 | +++ tango/core/Atomic.d (working copy) |
|---|
| 497 | 484 | @@ -270,6 +270,167 @@ |
|---|
| … | … | |
| 665 | 652 | Index: tango/math/IEEE.d |
|---|
| 666 | 653 | =================================================================== |
|---|
| 667 | | --- tango/math/IEEE.d (revision 4134) |
|---|
| | 654 | --- tango/math/IEEE.d (revision 4145) |
|---|
| 668 | 655 | +++ tango/math/IEEE.d (working copy) |
|---|
| 669 | 656 | @@ -1554,7 +1554,12 @@ |
|---|
| … | … | |
| 683 | 670 | Index: tango/math/Math.d |
|---|
| 684 | 671 | =================================================================== |
|---|
| 685 | | --- tango/math/Math.d (revision 4134) |
|---|
| | 672 | --- tango/math/Math.d (revision 4145) |
|---|
| 686 | 673 | +++ tango/math/Math.d (working copy) |
|---|
| 687 | 674 | @@ -76,6 +76,14 @@ |
|---|
| … | … | |
| 832 | 819 | Index: tango/stdc/posix/sys/types.d |
|---|
| 833 | 820 | =================================================================== |
|---|
| 834 | | --- tango/stdc/posix/sys/types.d (revision 4134) |
|---|
| | 821 | --- tango/stdc/posix/sys/types.d (revision 4145) |
|---|
| 835 | 822 | +++ tango/stdc/posix/sys/types.d (working copy) |
|---|
| 836 | 823 | @@ -422,7 +422,11 @@ |
|---|
| … | … | |
| 849 | 836 | Index: tango/stdc/stdlib.d |
|---|
| 850 | 837 | =================================================================== |
|---|
| 851 | | --- tango/stdc/stdlib.d (revision 4134) |
|---|
| | 838 | --- tango/stdc/stdlib.d (revision 4145) |
|---|
| 852 | 839 | +++ tango/stdc/stdlib.d (working copy) |
|---|
| 853 | 840 | @@ -94,6 +94,11 @@ |
|---|
| … | … | |
| 865 | 852 | Index: tango/stdc/stdarg.d |
|---|
| 866 | 853 | =================================================================== |
|---|
| 867 | | --- tango/stdc/stdarg.d (revision 4134) |
|---|
| | 854 | --- tango/stdc/stdarg.d (revision 4145) |
|---|
| 868 | 855 | +++ tango/stdc/stdarg.d (working copy) |
|---|
| 869 | 856 | @@ -13,6 +13,10 @@ |
|---|