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

Changeset 754:f34b552619fd

Show
Ignore:
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
  • runtime/ldc.diff

    r698 r754  
    11Index: object.di 
    22=================================================================== 
    3 --- object.di   (revision 4002
     3--- object.di   (revision 4071
    44+++ object.di   (working copy) 
    55@@ -150,6 +150,9 @@ 
     
    1313 } 
    1414  
     15Index: 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 
    1572Index: lib/common/tango/core/BitManip.d 
    1673=================================================================== 
    17 --- lib/common/tango/core/BitManip.d    (revision 4002
     74--- lib/common/tango/core/BitManip.d    (revision 4071
    1875+++ lib/common/tango/core/BitManip.d    (working copy) 
    1976@@ -171,6 +171,10 @@ 
     
    3087Index: lib/common/tango/core/Thread.d 
    3188=================================================================== 
    32 --- lib/common/tango/core/Thread.d  (revision 4002
     89--- lib/common/tango/core/Thread.d  (revision 4071
    3390+++ lib/common/tango/core/Thread.d  (working copy) 
    34 @@ -235,6 +235,7 @@ 
     91@@ -247,6 +247,7 @@ 
    3592         // used to track the number of suspended threads 
    3693         // 
     
    4097  
    4198         extern (C) void thread_suspendHandler( int sig ) 
    42 @@ -244,8 +245,29 @@ 
     99@@ -256,8 +257,29 @@ 
    43100         } 
    44101         body 
     
    71128                 { 
    72129                     pushad; 
    73 @@ -286,7 +308,7 @@ 
     130@@ -298,7 +320,7 @@ 
    74131                 status = sigdelset( &sigres, SIGUSR2 ); 
    75132                 assert( status == 0 ); 
     
    80137  
    81138                 sigsuspend( &sigres ); 
    82 @@ -297,8 +319,12 @@ 
     139@@ -309,8 +331,12 @@ 
    83140                 } 
    84141             } 
     
    94151                 { 
    95152                     popad; 
    96 @@ -1572,8 +1598,14 @@ 
     153@@ -1584,8 +1610,14 @@ 
    97154         status = sigaction( SIGUSR2, &sigusr2, null ); 
    98155         assert( status == 0 ); 
     
    111168         status = pthread_key_create( &Thread.sm_this, null ); 
    112169         assert( status == 0 ); 
    113 @@ -1781,7 +1813,7 @@ 
     170@@ -1793,7 +1825,7 @@ 
    114171                 //       to simply loop on sem_wait at the end, but I'm not 
    115172                 //       convinced that this would be much faster than the 
     
    120177             else if( !t.m_lock ) 
    121178             { 
    122 @@ -2286,6 +2318,13 @@ 
     179@@ -2298,6 +2330,13 @@ 
    123180             version = AsmPPC_Posix; 
    124181     } 
     
    134191     version( Posix ) 
    135192     { 
    136 @@ -2296,6 +2328,8 @@ 
     193@@ -2308,6 +2347,8 @@ 
    137194         version( AsmX86_Win32 ) {} else 
    138195         version( AsmX86_Posix ) {} else 
     
    143200             // NOTE: The ucontext implementation requires architecture specific 
    144201             //       data definitions to operate so testing for it must be done 
    145 @@ -2306,10 +2340,10 @@ 
     202@@ -2318,10 +2359,10 @@ 
    146203             import tango.stdc.posix.ucontext; 
    147204         } 
     
    156213 static this() 
    157214 { 
    158 @@ -2336,7 +2370,7 @@ 
     215@@ -2348,7 +2389,7 @@ 
    159216     } 
    160217 } 
     
    165222 // Fiber Entry Point and Context Switch 
    166223 //////////////////////////////////////////////////////////////////////////////// 
    167 @@ -2450,6 +2484,22 @@ 
     224@@ -2462,6 +2503,22 @@ 
    168225                 ret; 
    169226             } 
     
    188245         { 
    189246             Fiber   cfib = Fiber.getThis(); 
    190 @@ -3115,6 +3165,16 @@ 
     247@@ -3127,6 +3184,16 @@ 
    191248             push( 0x00000000 );                                     // ESI 
    192249             push( 0x00000000 );                                     // EDI 
     
    205262         { 
    206263             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 
    264264Index: lib/gc/basic/gcx.d 
    265265=================================================================== 
    266 --- lib/gc/basic/gcx.d  (revision 4002
     266--- lib/gc/basic/gcx.d  (revision 4071
    267267+++ lib/gc/basic/gcx.d  (working copy) 
    268268@@ -65,6 +65,13 @@ 
     
    336336Index: lib/gc/basic/gcbits.d 
    337337=================================================================== 
    338 --- lib/gc/basic/gcbits.d   (revision 4002
     338--- lib/gc/basic/gcbits.d   (revision 4071
    339339+++ lib/gc/basic/gcbits.d   (working copy) 
    340340@@ -39,6 +39,10 @@ 
     
    351351Index: lib/build-tango.sh 
    352352=================================================================== 
    353 --- lib/build-tango.sh  (revision 4002
     353--- lib/build-tango.sh  (revision 4071
    354354+++ lib/build-tango.sh  (working copy) 
    355355@@ -23,7 +23,7 @@ 
     
    383383Index: tango/text/convert/Layout.d 
    384384=================================================================== 
    385 --- tango/text/convert/Layout.d (revision 4002
     385--- tango/text/convert/Layout.d (revision 4071
    386386+++ tango/text/convert/Layout.d (working copy) 
    387387@@ -47,6 +47,12 @@ 
     
    398398         { 
    399399         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); 
    411405+                                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); 
    420409Index: tango/net/cluster/CacheInvalidator.d 
    421410=================================================================== 
    422 --- tango/net/cluster/CacheInvalidator.d    (revision 4002
     411--- tango/net/cluster/CacheInvalidator.d    (revision 4071
    423412+++ tango/net/cluster/CacheInvalidator.d    (working copy) 
    424413@@ -79,7 +79,7 @@ 
     
    433422Index: tango/core/Vararg.d 
    434423=================================================================== 
    435 --- tango/core/Vararg.d (revision 4002
     424--- tango/core/Vararg.d (revision 4071
    436425+++ tango/core/Vararg.d (working copy) 
    437426@@ -15,6 +15,10 @@ 
     
    448437Index: tango/core/sync/Semaphore.d 
    449438=================================================================== 
    450 --- tango/core/sync/Semaphore.d (revision 3979
     439--- tango/core/sync/Semaphore.d (revision 4071
    451440+++ tango/core/sync/Semaphore.d (working copy) 
    452441@@ -329,7 +329,8 @@ 
     
    484473Index: tango/core/sync/Condition.d 
    485474=================================================================== 
    486 --- tango/core/sync/Condition.d (revision 3979
     475--- tango/core/sync/Condition.d (revision 4071
    487476+++ tango/core/sync/Condition.d (working copy) 
    488477@@ -553,8 +553,11 @@ 
     
    500489Index: tango/core/Atomic.d 
    501490=================================================================== 
    502 --- tango/core/Atomic.d (revision 4002
     491--- tango/core/Atomic.d (revision 4071
    503492+++ tango/core/Atomic.d (working copy) 
    504493@@ -270,6 +270,167 @@ 
     
    670659 //////////////////////////////////////////////////////////////////////////////// 
    671660  
    672 @@ -282,9 +598,9 @@ 
     661@@ -282,9 +443,9 @@ 
    673662         { 
    674663             pragma( msg, "tango.core.Atomic: using IA-32 inline asm" ); 
     
    684673Index: tango/math/IEEE.d 
    685674=================================================================== 
    686 --- tango/math/IEEE.d   (revision 3979
     675--- tango/math/IEEE.d   (revision 4071
    687676+++ tango/math/IEEE.d   (working copy) 
    688677@@ -1543,7 +1543,12 @@ 
     
    702691Index: tango/math/Math.d 
    703692=================================================================== 
    704 --- tango/math/Math.d   (revision 4002
     693--- tango/math/Math.d   (revision 4071
    705694+++ tango/math/Math.d   (working copy) 
    706695@@ -76,6 +76,14 @@ 
     
    851840Index: tango/stdc/posix/sys/types.d 
    852841=================================================================== 
    853 --- tango/stdc/posix/sys/types.d    (revision 3979
     842--- tango/stdc/posix/sys/types.d    (revision 4071
    854843+++ tango/stdc/posix/sys/types.d    (working copy) 
    855844@@ -422,7 +422,11 @@ 
     
    868857Index: tango/stdc/stdlib.d 
    869858=================================================================== 
    870 --- tango/stdc/stdlib.d (revision 4002
     859--- tango/stdc/stdlib.d (revision 4071
    871860+++ tango/stdc/stdlib.d (working copy) 
    872861@@ -94,6 +94,11 @@ 
     
    884873Index: tango/stdc/stdarg.d 
    885874=================================================================== 
    886 --- tango/stdc/stdarg.d (revision 4002
     875--- tango/stdc/stdarg.d (revision 4071
    887876+++ tango/stdc/stdarg.d (working copy) 
    888877@@ -13,6 +13,10 @@ 
Copyright © 2008, LDC Development Team.