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

Ticket #420: ldc-0.9.2-fix.patch

File ldc-0.9.2-fix.patch, 21.1 kB (added by bioinfornatics, 2 years ago)

patch 5

  • ./dmd/backend/cc.h

    old new  
    149149#if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS 
    150150#include        "../tk/mem.h" 
    151151#else 
    152 #include        "mem.h" 
     152#include        "../tk/mem.h" 
    153153#endif 
    154 #include        "list.h" 
    155 #include        "vec.h" 
     154#include        "../tk/list.h" 
     155#include        "../tk/vec.h" 
    156156 
    157157#if SPP 
    158158#define COMPILER "Preprocessor" 
  • ./dmd/bit.c

    old new  
    1313#include        <string.h> 
    1414#include        <time.h> 
    1515 
    16 #include        "cc.h" 
    17 #include        "el.h" 
    18 #include        "oper.h" 
    19 #include        "global.h" 
    20 #include        "code.h" 
    21 #include        "type.h" 
    22 #include        "dt.h" 
     16#include        "backend/cc.h" 
     17#include        "backend/el.h" 
     18#include        "backend/oper.h" 
     19#include        "backend/global.h" 
     20#include        "backend/code.h" 
     21#include        "backend/type.h" 
     22#include        "backend/dt.h" 
    2323 
    2424static char __file__[] = __FILE__;      /* for tassert.h                */ 
    25 #include        "tassert.h" 
     25#include        "backend/tassert.h" 
    2626 
    2727/********************************************** 
    2828 * Generate code for: 
  • ./dmd/dsymbol.c

    old new  
    1212#include <string.h> 
    1313#include <assert.h> 
    1414 
    15 #include "rmem.h" 
    16 #include "speller.h" 
    17 #include "aav.h" 
     15#include "root/rmem.h" 
     16#include "root/speller.h" 
     17#include "root/aav.h" 
    1818 
    1919#include "mars.h" 
    2020#include "dsymbol.h" 
  • ./dmd/e2ir.c

    old new  
    3333#define __I86__ 1 
    3434#endif 
    3535 
    36 #include        "cc.h" 
    37 #include        "el.h" 
    38 #include        "oper.h" 
    39 #include        "global.h" 
    40 #include        "code.h" 
    41 #include        "type.h" 
    42 #include        "dt.h" 
     36#include        "backend/cc.h" 
     37#include        "backend/el.h" 
     38#include        "backend/oper.h" 
     39#include        "backend/global.h" 
     40#include        "backend/code.h" 
     41#include        "backend/type.h" 
     42#include        "backend/dt.h" 
    4343#include        "irstate.h" 
    4444#include        "id.h" 
    45 #include        "type.h" 
     45#include        "backend/type.h" 
    4646#include        "toir.h" 
    4747 
    4848static char __file__[] = __FILE__;      /* for tassert.h                */ 
  • ./dmd/eh.c

    old new  
    88#include        <string.h> 
    99#include        <time.h> 
    1010 
    11 #include        "cc.h" 
    12 #include        "el.h" 
    13 #include        "code.h" 
    14 #include        "oper.h" 
    15 #include        "global.h" 
    16 #include        "type.h" 
    17 #include        "dt.h" 
     11#include        "backend/cc.h" 
     12#include        "backend/el.h" 
     13#include        "backend/code.h" 
     14#include        "backend/oper.h" 
     15#include        "backend/global.h" 
     16#include        "backend/type.h" 
     17#include        "backend/dt.h" 
    1818 
    1919static char __file__[] = __FILE__;      /* for tassert.h                */ 
    2020#include        "tassert.h" 
  • ./dmd/enum.h

    old new  
    1515#pragma once 
    1616#endif /* __DMC__ */ 
    1717 
    18 #include "root.h" 
     18#include "root/root.h" 
    1919#include "dsymbol.h" 
    2020 
    2121struct Identifier; 
  • ./dmd/expression.c

    old new  
    2323extern "C" char * __cdecl __locale_decpoint; 
    2424#endif 
    2525 
    26 #include "rmem.h" 
    27 #include "port.h" 
     26#include "root/rmem.h" 
     27#include "root/port.h" 
    2828 
    2929#include "mtype.h" 
    3030#include "init.h" 
     
    77557755 
    77567756ArrayExp::ArrayExp(Loc loc, Expression *e1, Expressions *args) 
    77577757        : UnaExp(loc, TOKarray, sizeof(ArrayExp), e1) 
     7758 
    77587759{ 
    77597760    arguments = args; 
    77607761} 
  • ./dmd/glue.c

    old new  
    2929#include "lib.h" 
    3030 
    3131#include "rmem.h" 
    32 #include "cc.h" 
    33 #include "global.h" 
    34 #include "oper.h" 
    35 #include "code.h" 
    36 #include "type.h" 
    37 #include "dt.h" 
    38 #include "cgcv.h" 
    39 #include "outbuf.h" 
     32#include "backend/cc.h" 
     33#include "backend/global.h" 
     34#include "backend/oper.h" 
     35#include "backend/code.h" 
     36#include "backend/type.h" 
     37#include "backend/dt.h" 
     38#include "backend/cgcv.h" 
     39#include "backend/outbuf.h" 
    4040#include "irstate.h" 
    4141 
    4242struct Environment; 
  • ./dmd/iasm.c

    old new  
    4040 
    4141// C/C++ compiler 
    4242#define SCOPE_H 1               // avoid conflicts with D's Scope 
    43 #include        "cc.h" 
    44 #include        "token.h" 
    45 #include        "parser.h" 
    46 #include        "global.h" 
    47 #include        "el.h" 
    48 #include        "type.h" 
    49 #include        "oper.h" 
    50 #include        "code.h" 
    51 #include        "iasm.h" 
    52 #include        "cpp.h" 
     43#include        "backend/cc.h" 
     44#include        "backend/token.h" 
     45#include        "backend/parser.h" 
     46#include        "backend/global.h" 
     47#include        "backend/el.h" 
     48#include        "backend/type.h" 
     49#include        "backend/oper.h" 
     50#include        "backend/code.h" 
     51#include        "backend/iasm.h" 
     52#include        "backend/cpp.h" 
    5353 
    5454#undef _DH 
    5555 
  • ./dmd/libelf.c

    old new  
    2222 
    2323#include "mars.h" 
    2424#include "lib.h" 
    25 #include "melf.h" 
     25#include "backend/melf.h" 
    2626 
    2727#define LOG 0 
    2828 
  • ./dmd/libmach.c

    old new  
    2626#include <sys/types.h> 
    2727#include <sys/stat.h> 
    2828 
    29 #include "mach.h" 
     29#include "backend/mach.h" 
    3030 
    31 #include "rmem.h" 
    32 #include "root.h" 
    33 #include "stringtable.h" 
     31#include "root/rmem.h" 
     32#include "root/root.h" 
     33#include "root/stringtable.h" 
    3434 
    3535#include "mars.h" 
    3636#include "lib.h" 
  • ./dmd/libomf.c

    old new  
    1717#include <stdlib.h> 
    1818#include <assert.h> 
    1919 
    20 #include "rmem.h" 
    21 #include "root.h" 
    22 #include "stringtable.h" 
     20#include "root/rmem.h" 
     21#include "root/root.h" 
     22#include "root/stringtable.h" 
    2323 
    2424#include "mars.h" 
    2525#include "lib.h" 
  • ./dmd/module.c

    old new  
    2424#include "gdc_alloca.h" 
    2525#endif 
    2626 
    27 #include "rmem.h" 
     27#include "root/rmem.h" 
    2828 
    2929#include "mars.h" 
    3030#include "module.h" 
  • ./dmd/msc.c

    old new  
    1414 
    1515#include        "mars.h" 
    1616 
    17 #include        "cc.h" 
    18 #include        "global.h" 
    19 #include        "parser.h" 
    20 #include        "oper.h" 
    21 #include        "code.h" 
    22 #include        "type.h" 
    23 #include        "dt.h" 
    24 #include        "cgcv.h" 
     17#include        "backend/cc.h" 
     18#include        "backend/global.h" 
     19#include        "backend/parser.h" 
     20#include        "backend/oper.h" 
     21#include        "backend/code.h" 
     22#include        "backend/type.h" 
     23#include        "backend/dt.h" 
     24#include        "backend/cgcv.h" 
    2525 
    2626static char __file__[] = __FILE__;      /* for tassert.h                */ 
    2727#include        "tassert.h" 
  • ./dmd/mtype.c

    old new  
    3131#include <malloc.h> 
    3232#endif 
    3333 
    34 #include "rmem.h" 
    35 #include "port.h" 
     34#include "root/rmem.h" 
     35#include "root/port.h" 
    3636 
    3737#include "dsymbol.h" 
    3838#include "mtype.h" 
     
    350350 */ 
    351351 
    352352char *Type::toChars() 
     353 
    353354{   OutBuffer *buf; 
    354355    HdrGenState hgs; 
    355356 
  • ./dmd/opover.c

    old new  
    1818#include <complex.h> 
    1919#endif 
    2020 
    21 #include "rmem.h" 
     21#include "root/rmem.h" 
    2222 
    2323//#include "port.h" 
    2424#include "mtype.h" 
  • ./dmd/parse.c

    old new  
    1313#include <stdio.h> 
    1414#include <assert.h> 
    1515 
    16 #include "rmem.h" 
     16#include "root/rmem.h" 
    1717#include "lexer.h" 
    1818#include "parse.h" 
    1919#include "init.h" 
     
    25462546    switch (token.value) 
    25472547    { 
    25482548        case TOKlcurly: 
     2549 
    25492550            /* Scan ahead to see if it is a struct initializer or 
    25502551             * a function literal. 
    25512552             * If it contains a ';', it is a function literal. 
  • ./dmd/ph.c

    old new  
    2020#include        <new> 
    2121#endif 
    2222 
    23 #include        "cc.h" 
    24 #include        "global.h" 
     23#include        "backend/cc.h" 
     24#include        "backend/global.h" 
    2525 
    2626static char __file__[] = __FILE__;      /* for tassert.h                */ 
    2727#include        "tassert.h" 
  • ./dmd/s2ir.c

    old new  
    2525#include        "id.h" 
    2626 
    2727// Back end 
    28 #include        "cc.h" 
    29 #include        "type.h" 
    30 #include        "code.h" 
    31 #include        "oper.h" 
    32 #include        "global.h" 
    33 #include        "dt.h" 
     28#include        "backend/cc.h" 
     29#include        "backend/type.h" 
     30#include        "backend/code.h" 
     31#include        "backend/oper.h" 
     32#include        "backend/global.h" 
     33#include        "backend/dt.h" 
    3434 
    3535#include        "rmem.h" 
    3636 
  • ./dmd/scope.c

    old new  
    1010#include <stdio.h> 
    1111#include <assert.h> 
    1212 
    13 #include "root.h" 
    14 #include "speller.h" 
     13#include "root/root.h" 
     14#include "root/speller.h" 
    1515 
    1616#include "mars.h" 
    1717#include "init.h" 
  • ./dmd/statement.c

    old new  
    1212#include <stdlib.h> 
    1313#include <assert.h> 
    1414 
    15 #include "rmem.h" 
     15#include "root/rmem.h" 
    1616 
    1717#include "statement.h" 
    1818#include "expression.h" 
     
    344344DeclarationStatement::DeclarationStatement(Loc loc, Expression *exp) 
    345345    : ExpStatement(loc, exp) 
    346346{ 
     347 
    347348} 
    348349 
    349350Statement *DeclarationStatement::syntaxCopy() 
     
    619620    for (int i = 0; i < statements->dim; i++) 
    620621    {   Statement *s = (Statement *)statements->data[i]; 
    621622 
     623 
    622624        if (!s) 
    623625            continue; 
    624626 
     
    35073509        Scope *scx; 
    35083510        FuncDeclaration *thisfunc = sc->func; 
    35093511 
     3512 
    35103513        for (scx = sc; scx; scx = scx->enclosing) 
    35113514        { 
    35123515            LabelStatement *ls; 
  • ./dmd/struct.c

    old new  
    1111#include <stdio.h> 
    1212#include <assert.h> 
    1313 
    14 #include "root.h" 
     14#include "root/root.h" 
    1515#include "aggregate.h" 
    1616#include "scope.h" 
    1717#include "mtype.h" 
  • ./dmd/template.c

    old new  
    1313#include <stdio.h> 
    1414#include <assert.h> 
    1515 
    16 #include "root.h" 
    17 #include "rmem.h" 
    18 #include "stringtable.h" 
     16#include "root/root.h" 
     17#include "root/rmem.h" 
     18#include "root/stringtable.h" 
    1919 
    2020#include "mtype.h" 
    2121#include "template.h" 
     
    884884     */ 
    885885    if (tp)                             // if variadic 
    886886    { 
     887 
    887888        if (nfparams == 0 && nfargs != 0)               // if no function parameters 
    888889        { 
    889890            Tuple *t = new Tuple(); 
  • ./dmd/tk.c

    old new  
    99#include        <string.h> 
    1010 
    1111static char __file__[] = __FILE__;      /* for tassert.h                */ 
    12 #include        "tassert.h" 
     12#include        "backend/tassert.h" 
    1313 
    14 #include        "mem.h" 
    15 #include        "filespec.c" 
     14#include        "tk/mem.h" 
     15#include        "tk/filespec.c" 
    1616 
    1717#if 0 
    1818#define malloc          ph_malloc 
  • ./dmd/tocsym.c

    old new  
    3030#include "dsymbol.h" 
    3131#include "id.h" 
    3232 
    33 #include "rmem.h" 
     33#include "root/rmem.h" 
    3434 
    3535// Back end 
    36 #include "cc.h" 
    37 #include "global.h" 
    38 #include "oper.h" 
    39 #include "code.h" 
    40 #include "type.h" 
    41 #include "dt.h" 
    42 #include "cgcv.h" 
    43 #include "outbuf.h" 
    44 #include "irstate.h" 
     36#include "backend/cc.h" 
     37#include "backend/global.h" 
     38#include "backend/oper.h" 
     39#include "backend/code.h" 
     40#include "backend/type.h" 
     41#include "backend/dt.h" 
     42#include "backend/cgcv.h" 
     43#include "backend/outbuf.h" 
     44#include "backend/irstate.h" 
    4545 
    4646void slist_add(Symbol *s); 
    4747void slist_reset(); 
  • ./dmd/toctype.c

    old new  
    2626#include "import.h" 
    2727#include "template.h" 
    2828 
    29 #include "rmem.h" 
    30 #include "cc.h" 
    31 #include "global.h" 
    32 #include "oper.h" 
    33 #include "code.h" 
    34 #include "type.h" 
    35 #include "dt.h" 
    36 #include "cgcv.h" 
    37 #include "outbuf.h" 
     29#include "backend/rmem.h" 
     30#include "backend/cc.h" 
     31#include "backend/global.h" 
     32#include "backend/oper.h" 
     33#include "backend/code.h" 
     34#include "backend/type.h" 
     35#include "backend/dt.h" 
     36#include "backend/cgcv.h" 
     37#include "backend/outbuf.h" 
    3838#include "irstate.h" 
    3939 
    4040void out_config_init(); 
  • ./dmd/tocvdebug.c

    old new  
    2121#include "id.h" 
    2222#include "import.h" 
    2323#include "template.h" 
    24  
    25 #include "rmem.h" 
    26 #include "cc.h" 
    27 #include "global.h" 
    28 #include "oper.h" 
    29 #include "code.h" 
    30 #include "type.h" 
    31 #include "dt.h" 
    32 #include "cv4.h" 
    33 #include "cgcv.h" 
    34 #include "outbuf.h" 
    3524#include "irstate.h" 
    3625 
     26#include "root/rmem.h" 
     27 
     28#include "backend/cc.h" 
     29#include "backend/global.h" 
     30#include "backend/oper.h" 
     31#include "backend/code.h" 
     32#include "backend/type.h" 
     33#include "backend/dt.h" 
     34#include "backend/cv4.h" 
     35#include "backend/cgcv.h" 
     36#include "backend/outbuf.h" 
     37 
    3738/* The CV4 debug format is defined in: 
    3839 *      "CV4 Symbolic Debug Information Specification" 
    3940 *      rev 3.1 March 5, 1993 
  • ./dmd/todt.c

    old new  
    3232 
    3333 
    3434// Back end 
    35 #include        "cc.h" 
    36 #include        "el.h" 
    37 #include        "oper.h" 
    38 #include        "global.h" 
    39 #include        "code.h" 
    40 #include        "type.h" 
    41 #include        "dt.h" 
     35#include        "backend/cc.h" 
     36#include        "backend/el.h" 
     37#include        "backend/oper.h" 
     38#include        "backend/global.h" 
     39#include        "backend/code.h" 
     40#include        "backend/type.h" 
     41#include        "backend/dt.h" 
    4242 
    4343extern Symbol *static_sym(); 
    4444 
  • ./dmd/toelfdebug.c

    old new  
    2121#include "id.h" 
    2222#include "import.h" 
    2323#include "template.h" 
    24  
    25 #include "rmem.h" 
    26 #include "cc.h" 
    27 #include "global.h" 
    28 #include "oper.h" 
    29 #include "code.h" 
    30 #include "type.h" 
    31 #include "dt.h" 
    32 #include "cv4.h" 
    33 #include "cgcv.h" 
    34 #include "outbuf.h" 
    3524#include "irstate.h" 
    3625 
     26#include "root/rmem.h" 
     27 
     28#include "backend/cc.h" 
     29#include "backend/global.h" 
     30#include "backend/oper.h" 
     31#include "backend/code.h" 
     32#include "backend/type.h" 
     33#include "backend/dt.h" 
     34#include "backend/cv4.h" 
     35#include "backend/cgcv.h" 
     36#include "backend/outbuf.h" 
     37 
    3738/**************************** 
    3839 * Emit symbolic debug info in Dwarf2 format. 
    3940 */ 
  • ./dmd/toir.c

    old new  
    2828#include        "module.h" 
    2929#include        "init.h" 
    3030#include        "template.h" 
    31  
    32 #include        "mem.h" // for mem_malloc 
    33  
    34 #include        "cc.h" 
    35 #include        "el.h" 
    36 #include        "oper.h" 
    37 #include        "global.h" 
    38 #include        "code.h" 
    39 #include        "type.h" 
    40 #include        "dt.h" 
    4131#include        "irstate.h" 
    4232#include        "id.h" 
    43 #include        "type.h" 
    4433#include        "toir.h" 
    4534 
     35#include        "tk/mem.h" // for mem_malloc 
     36 
     37#include        "backend/cc.h" 
     38#include        "backend/el.h" 
     39#include        "backend/oper.h" 
     40#include        "backend/global.h" 
     41#include        "backend/code.h" 
     42#include        "backend/type.h" 
     43#include        "backend/dt.h" 
     44#include        "backend/type.h" 
     45 
    4646static char __file__[] = __FILE__;      /* for tassert.h                */ 
    47 #include        "tassert.h" 
     47#include        "backend/tassert.h" 
    4848 
    4949/********************************************* 
    5050 * Produce elem which increments the usage count for a particular line. 
  • ./dmd/toobj.c

    old new  
    2424#include "id.h" 
    2525#include "import.h" 
    2626#include "template.h" 
    27  
    28 #include "rmem.h" 
    29 #include "cc.h" 
    30 #include "global.h" 
    31 #include "oper.h" 
    32 #include "code.h" 
    33 #include "type.h" 
    34 #include "dt.h" 
    35 #include "cgcv.h" 
    36 #include "outbuf.h" 
    3727#include "irstate.h" 
    3828 
     29#include "root/rmem.h" 
     30#include "backend/cc.h" 
     31#include "backend/global.h" 
     32#include "backend/oper.h" 
     33#include "backend/code.h" 
     34#include "backend/type.h" 
     35#include "backend/dt.h" 
     36#include "backend/cgcv.h" 
     37#include "backend/outbuf.h" 
     38 
    3939void obj_lzext(Symbol *s1,Symbol *s2); 
    4040 
    4141/* ================================================================== */ 
  • ./dmd/typinf.c

    old new  
    2626#include "enum.h" 
    2727#include "import.h" 
    2828#include "aggregate.h" 
     29#include "irstate.h" 
    2930 
    3031#ifndef TARGET_NET 
    31 #include "rmem.h" 
    32 #include "cc.h" 
    33 #include "global.h" 
    34 #include "oper.h" 
    35 #include "code.h" 
    36 #include "type.h" 
    37 #include "dt.h" 
    38 #include "cgcv.h" 
    39 #include "outbuf.h" 
    40 #include "irstate.h" 
     32#include "root/rmem.h" 
     33#include "backend/cc.h" 
     34#include "backend/global.h" 
     35#include "backend/oper.h" 
     36#include "backend/code.h" 
     37#include "backend/type.h" 
     38#include "backend/dt.h" 
     39#include "backend/cgcv.h" 
     40#include "backend/outbuf.h" 
    4141#endif 
    4242 
    4343extern Symbol *static_sym(); 
  • ./dmd/util.c

    old new  
    1818#include        <stdlib.h> 
    1919#include        <time.h> 
    2020 
    21 #include        "cc.h" 
    22 #include        "global.h" 
    23 #include        "mem.h" 
    24 #include        "token.h" 
     21#include        "backend/cc.h" 
     22#include        "backend/global.h" 
     23#include        "backend/token.h" 
     24#include        "tk/mem.h" 
    2525#if SCPP || MARS 
    26 #include        "el.h" 
     26#include        "backend/el.h" 
    2727#endif 
    28 #include        "parser.h" 
     28#include        "backend/parser.h" 
    2929 
    3030#if _WIN32 && __DMC__ 
    3131//#include      "scdll.h" 
     
    3333#endif 
    3434 
    3535static char __file__[] = __FILE__;      /* for tassert.h                */ 
    36 #include        "tassert.h" 
     36#include        "backend/tassert.h" 
    3737 
    3838void util_exit(int exitcode); 
    3939 
  • ./dmd/version.c

    old new  
    1010#include <stdio.h> 
    1111#include <assert.h> 
    1212 
    13 #include "root.h" 
     13#include "root/root.h" 
    1414 
    1515#include "identifier.h" 
    1616#include "dsymbol.h" 
Copyright © 2008, LDC Development Team.