Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #857: tango-0.99.4_dynload3.patch

File tango-0.99.4_dynload3.patch, 3.5 kB (added by jascha, 11 months ago)

v2 didnt work with svn branch 0.99.4

  • lib/common/tango/posix.mak

    old new  
    2020ADD_CFLAGS= 
    2121ADD_DFLAGS= 
    2222 
    23 CFLAGS=-O -m32 $(ADD_CFLAGS) 
     23CFLAGS=-O -m32 -fPIC $(ADD_CFLAGS) 
    2424#CFLAGS=-g -m32 $(ADD_CFLAGS) 
    2525 
    2626DFLAGS=-release -O -inline -w -nofloat -version=Posix $(ADD_DFLAGS) 
  • lib/gdc-posix.mak

    old new  
    1818LC=$(AR) -qsv 
    1919DC=gdmd 
    2020 
    21 ADD_CFLAGS= 
    22 ADD_DFLAGS=-q,-nostdinc -I`pwd`/common -I`pwd`/.. -I`pwd`/compiler/gdc 
     21ADD_CFLAGS=-fPIC 
     22ADD_DFLAGS=-q,-nostdinc -fPIC -I`pwd`/common -I`pwd`/.. -I`pwd`/compiler/gdc 
    2323 
    2424targets : lib doc 
    2525all     : lib doc 
  • lib/compiler/gdc/configure

    old new  
    93949394                ;; 
    93959395  linux*) 
    93969396        #d_gc_stack=GC_Use_Stack_Proc_Stat 
    9397         d_gc_data="$d_gc_data GC_Use_Data_Fixed" 
     9397        #d_gc_data="$d_gc_data GC_Use_Data_Fixed" 
     9398        d_gc_data="$d_gc_data GC_Use_Data_Proc_Maps" 
    93989399        #have_proc_maps=1 
    93999400        ;; 
    94009401  skyos*) 
  • lib/compiler/gdc/memory.d

    old new  
    241241    } 
    242242    else version( GC_Use_Data_Proc_Maps ) 
    243243    { 
     244        private import tango.stdc.posix.fcntl; 
     245        private import tango.stdc.posix.unistd; 
     246        private import tango.stdc.string; 
    244247        version = GC_Use_Dynamic_Ranges; 
    245248    } 
    246249    version( GC_Use_Dynamic_Ranges ) 
     
    369372        void* start; 
    370373        void* end; 
    371374 
    372         p = buf
     375        p = buf.ptr
    373376        if (fd != -1) 
    374377        { 
    375378            while ( (count = read(fd, p, buf.sizeof - (p - buf.ptr))) > 0 ) 
    376379            { 
    377380                e = p + count; 
    378                 p = buf
     381                p = buf.ptr
    379382                while (true) 
    380383                { 
    381384                    s = p; 
     
    436439                    else 
    437440                    { 
    438441                        count = p - s; 
    439                         memmove(buf, s, count); 
     442                        memmove(buf.ptr, s, count); 
    440443                        p = buf.ptr + count; 
    441444                        break; 
    442445                    } 
  • tango/text/locale/Posix.d

    old new  
    9898} 
    9999 
    100100ulong getUtcTime() { 
    101    int t; 
     101   long t; 
    102102   time(&t); 
    103103   gmtime(&t); 
    104104   return cast(ulong)((cast(long)t * 10000000L) + 116444736000000000L); 
  • tango/text/Regex.d

    old new  
    36433643         * Append output of C's printf() to internal buffer. 
    36443644         */ 
    36453645 
    3646         void printf(char[] format, ...) 
     3646/+         void printf(char[] format, ...) 
    36473647        { 
    36483648        va_list ap; 
    36493649        ap = cast(va_list)&format; 
    36503650        ap += format.sizeof; 
    36513651        vprintf(format, ap); 
    36523652        } 
    3653  
     3653 +/ 
    36543654        /***************************************** 
    36553655         * At offset index into buffer, create nbytes of space by shifting upwards 
    36563656         * all data past index.