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

Changeset 763:9a9f403ab399

Show
Ignore:
Timestamp:
11/12/08 01:22:05 (2 months ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
branch:
default
Message:

D2 changes!
Removed druntime from the repository again.. Sorry :/
Updated the druntime port a bit, now requires druntime from trunk.
Added info in runtime/README on how to get druntime from trunk.
Added patch to add LDC support to druntime.
Removed some debug logging from D2 builds.
Fixed broken typeinfo for const/invariant in D2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dmd2/mtype.c

    r758 r763  
    27602760    arguments = new Expressions(); 
    27612761    arguments->push(e->addressOf(sc)); 
    2762     arguments->push(index->getTypeInfo(sc));   // LDC, we don't support the getInternalTypeInfo 
    2763                                                // optimization arbitrarily, not yet at least...    
     2762    arguments->push(index->getInternalTypeInfo(sc)); 
    27642763    e = new CallExp(e->loc, ec, arguments); 
    27652764    e->type = this; 
  • gen/toir.cpp

    r758 r763  
    5959    if (VarDeclaration* vd = var->isVarDeclaration()) 
    6060    { 
    61         Logger::println("VarDeclaration %s", vd->toChars()); 
     61        Logger::println("VarDeclaration ' %s ' of type ' %s '", vd->toChars(), vd->type->toChars()); 
    6262 
    6363        // _arguments 
  • gen/toobj.cpp

    r758 r763  
    10041004    else 
    10051005    { 
    1006     #if DMDV2 
     1006#if DMDV2 
     1007    #if 0 
    10071008        if (!ir.irField) 
    10081009        { 
     
    10121013        } 
    10131014    #endif 
    1014 //         assert(ir.irField != 0); 
     1015#else 
     1016        assert(ir.irField != 0); 
     1017#endif 
    10151018    } 
    10161019    Logger::println("VarDeclaration::toObjFile is done"); 
  • gen/typinf.cpp

    r761 r763  
    231231int TypeBasic::builtinTypeInfo() 
    232232{ 
    233     return 1
     233    return !mod
    234234} 
    235235 
    236236int TypeDArray::builtinTypeInfo() 
    237237{ 
     238#if DMDV2 
     239    return !mod && next->isTypeBasic() != NULL && !next->mod; 
     240#else 
    238241    return next->isTypeBasic() != NULL; 
     242#endif 
    239243} 
    240244 
  • runtime/README

    r663 r763  
     1FOR D1: 
     2======= 
    131) Do a checkout of tango trunk in the ldc root dir (along dmd, gen, runtime etc). 
    24 
     
    1012 
    1113    *    sh build.sh 
     14 
     15FOR D2: 
     16======= 
     17Highly experimental!!! 
     18 
     191) Do a checkout of druntime trunk in the ldc root dir (along dmd, gen, runtime etc). 
     20 
     21    *    svn co http://svn.dsource.org/projects/druntime/trunk ../druntime 
     22 
     232) Patch druntime 
     24 
     25    *    sh patch-druntime.sh 
     26 
     273) Compile druntime 
     28 
     29    *    cd ../druntime/src 
     30    *    sh build-ldc.sh 
     31 
     32Enjoy! 
Copyright © 2008, LDC Development Team.