root/dmd2036.patch

Revision 112:3f02152c5e68, 3.2 kB (checked in by Trass3r, 2 years ago)

dmd 2.036 patch

  • a/src/dmd/class.c

    old new  
    6161    if (id) 
    6262    {   // Look for special class names 
    6363 
    64     if (id == Id::__sizeof || id == Id::alignof || id == Id::mangleof) 
     64    if (id == Id::__sizeof || id == Id::_alignof || id == Id::mangleof) 
    6565        error("illegal class name"); 
    6666 
    6767    // BUG: What if this is the wrong TypeInfo, i.e. it is nested? 
  • a/src/dmd/dsymbol.c

    old new  
    488488    } 
    489489    if (sd->isAggregateDeclaration() || sd->isEnumDeclaration()) 
    490490    { 
    491         if (ident == Id::__sizeof || ident == Id::alignof || ident == Id::mangleof) 
     491        if (ident == Id::__sizeof || ident == Id::_alignof || ident == Id::mangleof) 
    492492        error(".%s property cannot be redefined", ident->toChars()); 
    493493    } 
    494494    return 1; 
  • a/src/dmd/expression.c

    old new  
    57475747    } 
    57485748    else if (t1b->ty == Tpointer && 
    57495749         ident != Id::init && ident != Id::__sizeof && 
    5750          ident != Id::alignof && ident != Id::offsetof && 
     5750         ident != Id::_alignof && ident != Id::offsetof && 
    57515751         ident != Id::mangleof && ident != Id::stringof) 
    57525752    {   /* Rewrite: 
    57535753         *   p.ident 
  • a/src/dmd/idgen.c

    old new  
    4545    { "init" }, 
    4646    { "size" }, 
    4747    { "__sizeof", "sizeof" }, 
    48     { "alignof" }, 
     48    { "_alignof", "alignof" }, 
    4949    { "mangleof" }, 
    5050    { "stringof" }, 
    5151    { "tupleof" }, 
  • a/src/dmd/mtype.c

    old new  
    12661266    error(loc, ".size property should be replaced with .sizeof"); 
    12671267    e = new ErrorExp(); 
    12681268    } 
    1269     else if (ident == Id::alignof) 
     1269    else if (ident == Id::_alignof) 
    12701270    { 
    12711271    e = new IntegerExp(loc, alignsize(), Type::tsize_t); 
    12721272    } 
     
    58955895    if (!s) 
    58965896    { 
    58975897    if (ident != Id::__sizeof && 
    5898         ident != Id::alignof && 
     5898        ident != Id::_alignof && 
    58995899        ident != Id::init && 
    59005900        ident != Id::mangleof && 
    59015901        ident != Id::stringof && 
     
    63866386    { 
    63876387 
    63886388        if (ident != Id::__sizeof && 
    6389         ident != Id::alignof && 
     6389        ident != Id::_alignof && 
    63906390        ident != Id::init && 
    63916391        ident != Id::mangleof && 
    63926392        ident != Id::stringof && 
  • a/src/druntime/src/compiler/dmd/win32.mak

    old new  
    163163 
    164164# Patterns - asm 
    165165 
    166 minit.obj : minit.asm 
    167   $(CC) -c $** 
     166#minit.obj : minit.asm 
     167# $(CC) -c $** 
    168168 
    169169# Rulez 
Note: See TracBrowser for help on using the browser.