Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 822:43178a913a28

Show
Ignore:
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
  • dmd/mtype.c

    r797 r822  
    29802980        arg->defaultArg = resolveProperties(sc, arg->defaultArg); 
    29812981        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         } 
    29902982        } 
    29912983 
  • dmd2/mtype.c

    r797 r822  
    34663466        arg->defaultArg = resolveProperties(sc, arg->defaultArg); 
    34673467        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         } 
    34763468        } 
    34773469 
  • runtime/ldc.diff

    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 
    581Index: lib/common/tango/core/BitManip.d 
    592=================================================================== 
    60 --- lib/common/tango/core/BitManip.d    (revision 4134
     3--- lib/common/tango/core/BitManip.d    (revision 4145
    614+++ lib/common/tango/core/BitManip.d    (working copy) 
    625@@ -171,6 +171,10 @@ 
     
    7316Index: lib/common/tango/core/Thread.d 
    7417=================================================================== 
    75 --- lib/common/tango/core/Thread.d  (revision 4134
     18--- lib/common/tango/core/Thread.d  (revision 4145
    7619+++ lib/common/tango/core/Thread.d  (working copy) 
    7720@@ -273,8 +273,50 @@ 
     
    171114             // NOTE: The ucontext implementation requires architecture specific 
    172115             //       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 @@ 
    187117                 ret; 
    188118             } 
     
    213143         { 
    214144             Fiber   cfib = Fiber.getThis(); 
    215 @@ -2522,7 +2608,7 @@ 
     145@@ -2522,7 +2606,7 @@ 
    216146     } 
    217147 } 
     
    222152 // Fiber 
    223153 //////////////////////////////////////////////////////////////////////////////// 
    224 @@ -3177,6 +3263,22 @@ 
     154@@ -3177,6 +3261,22 @@ 
    225155             push( 0x00000000 );                                     // ESI 
    226156             push( 0x00000000 );                                     // EDI 
     
    245175         { 
    246176             version( StackGrowsDown ) 
     177Index: 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 
    247234Index: lib/gc/basic/gcx.d 
    248235=================================================================== 
    249 --- lib/gc/basic/gcx.d  (revision 4134
     236--- lib/gc/basic/gcx.d  (revision 4145
    250237+++ lib/gc/basic/gcx.d  (working copy) 
    251238@@ -65,6 +65,13 @@ 
     
    340327Index: lib/gc/basic/gcbits.d 
    341328=================================================================== 
    342 --- lib/gc/basic/gcbits.d   (revision 4134
     329--- lib/gc/basic/gcbits.d   (revision 4145
    343330+++ lib/gc/basic/gcbits.d   (working copy) 
    344331@@ -39,6 +39,10 @@ 
     
    355342Index: lib/build-tango.sh 
    356343=================================================================== 
    357 --- lib/build-tango.sh  (revision 4134
     344--- lib/build-tango.sh  (revision 4145
    358345+++ lib/build-tango.sh  (working copy) 
    359346@@ -23,7 +23,7 @@ 
     
    387374Index: tango/text/convert/Layout.d 
    388375=================================================================== 
    389 --- tango/text/convert/Layout.d (revision 4134
     376--- tango/text/convert/Layout.d (revision 4145
    390377+++ tango/text/convert/Layout.d (working copy) 
    391378@@ -47,6 +47,12 @@ 
     
    413400Index: tango/net/cluster/CacheInvalidator.d 
    414401=================================================================== 
    415 --- tango/net/cluster/CacheInvalidator.d    (revision 4134
     402--- tango/net/cluster/CacheInvalidator.d    (revision 4145
    416403+++ tango/net/cluster/CacheInvalidator.d    (working copy) 
    417404@@ -79,7 +79,7 @@ 
     
    426413Index: tango/core/Vararg.d 
    427414=================================================================== 
    428 --- tango/core/Vararg.d (revision 4134
     415--- tango/core/Vararg.d (revision 4145
    429416+++ tango/core/Vararg.d (working copy) 
    430417@@ -15,6 +15,10 @@ 
     
    441428Index: tango/core/sync/Semaphore.d 
    442429=================================================================== 
    443 --- tango/core/sync/Semaphore.d (revision 4134
     430--- tango/core/sync/Semaphore.d (revision 4145
    444431+++ tango/core/sync/Semaphore.d (working copy) 
    445 @@ -380,7 +380,8 @@ 
     432@@ -384,7 +384,8 @@ 
    446433             { 
    447434                 synchronized( synComplete ) 
     
    453440                 } 
    454441                 Thread.yield(); 
    455 @@ -388,9 +389,9 @@ 
     442@@ -392,9 +393,9 @@ 
    456443  
    457444             synchronized( synComplete ) 
     
    465452             { 
    466453                 assert( numConsumed == numToProduce ); 
    467 @@ -451,7 +452,8 @@ 
     454@@ -455,7 +456,8 @@ 
    468455  
    469456     unittest 
     
    477464Index: tango/core/sync/Condition.d 
    478465=================================================================== 
    479 --- tango/core/sync/Condition.d (revision 4134
     466--- tango/core/sync/Condition.d (revision 4145
    480467+++ tango/core/sync/Condition.d (working copy) 
    481468@@ -553,8 +553,11 @@ 
     
    493480Index: tango/core/Atomic.d 
    494481=================================================================== 
    495 --- tango/core/Atomic.d (revision 4134
     482--- tango/core/Atomic.d (revision 4145
    496483+++ tango/core/Atomic.d (working copy) 
    497484@@ -270,6 +270,167 @@ 
     
    665652Index: tango/math/IEEE.d 
    666653=================================================================== 
    667 --- tango/math/IEEE.d   (revision 4134
     654--- tango/math/IEEE.d   (revision 4145
    668655+++ tango/math/IEEE.d   (working copy) 
    669656@@ -1554,7 +1554,12 @@ 
     
    683670Index: tango/math/Math.d 
    684671=================================================================== 
    685 --- tango/math/Math.d   (revision 4134
     672--- tango/math/Math.d   (revision 4145
    686673+++ tango/math/Math.d   (working copy) 
    687674@@ -76,6 +76,14 @@ 
     
    832819Index: tango/stdc/posix/sys/types.d 
    833820=================================================================== 
    834 --- tango/stdc/posix/sys/types.d    (revision 4134
     821--- tango/stdc/posix/sys/types.d    (revision 4145
    835822+++ tango/stdc/posix/sys/types.d    (working copy) 
    836823@@ -422,7 +422,11 @@ 
     
    849836Index: tango/stdc/stdlib.d 
    850837=================================================================== 
    851 --- tango/stdc/stdlib.d (revision 4134
     838--- tango/stdc/stdlib.d (revision 4145
    852839+++ tango/stdc/stdlib.d (working copy) 
    853840@@ -94,6 +94,11 @@ 
     
    865852Index: tango/stdc/stdarg.d 
    866853=================================================================== 
    867 --- tango/stdc/stdarg.d (revision 4134
     854--- tango/stdc/stdarg.d (revision 4145
    868855+++ tango/stdc/stdarg.d (working copy) 
    869856@@ -13,6 +13,10 @@ 
Copyright © 2008, LDC Development Team.