Ticket #420: ldc-0.9.2-fix.patch
| File ldc-0.9.2-fix.patch, 21.1 kB (added by bioinfornatics, 2 years ago) |
|---|
-
./dmd/backend/cc.h
old new 149 149 #if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS 150 150 #include "../tk/mem.h" 151 151 #else 152 #include " mem.h"152 #include "../tk/mem.h" 153 153 #endif 154 #include " list.h"155 #include " vec.h"154 #include "../tk/list.h" 155 #include "../tk/vec.h" 156 156 157 157 #if SPP 158 158 #define COMPILER "Preprocessor" -
./dmd/bit.c
old new 13 13 #include <string.h> 14 14 #include <time.h> 15 15 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" 23 23 24 24 static char __file__[] = __FILE__; /* for tassert.h */ 25 #include " tassert.h"25 #include "backend/tassert.h" 26 26 27 27 /********************************************** 28 28 * Generate code for: -
./dmd/dsymbol.c
old new 12 12 #include <string.h> 13 13 #include <assert.h> 14 14 15 #include "r mem.h"16 #include " speller.h"17 #include " aav.h"15 #include "root/rmem.h" 16 #include "root/speller.h" 17 #include "root/aav.h" 18 18 19 19 #include "mars.h" 20 20 #include "dsymbol.h" -
./dmd/e2ir.c
old new 33 33 #define __I86__ 1 34 34 #endif 35 35 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" 43 43 #include "irstate.h" 44 44 #include "id.h" 45 #include " type.h"45 #include "backend/type.h" 46 46 #include "toir.h" 47 47 48 48 static char __file__[] = __FILE__; /* for tassert.h */ -
./dmd/eh.c
old new 8 8 #include <string.h> 9 9 #include <time.h> 10 10 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" 18 18 19 19 static char __file__[] = __FILE__; /* for tassert.h */ 20 20 #include "tassert.h" -
./dmd/enum.h
old new 15 15 #pragma once 16 16 #endif /* __DMC__ */ 17 17 18 #include "root .h"18 #include "root/root.h" 19 19 #include "dsymbol.h" 20 20 21 21 struct Identifier; -
./dmd/expression.c
old new 23 23 extern "C" char * __cdecl __locale_decpoint; 24 24 #endif 25 25 26 #include "r mem.h"27 #include " port.h"26 #include "root/rmem.h" 27 #include "root/port.h" 28 28 29 29 #include "mtype.h" 30 30 #include "init.h" … … 7755 7755 7756 7756 ArrayExp::ArrayExp(Loc loc, Expression *e1, Expressions *args) 7757 7757 : UnaExp(loc, TOKarray, sizeof(ArrayExp), e1) 7758 7758 7759 { 7759 7760 arguments = args; 7760 7761 } -
./dmd/glue.c
old new 29 29 #include "lib.h" 30 30 31 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"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" 40 40 #include "irstate.h" 41 41 42 42 struct Environment; -
./dmd/iasm.c
old new 40 40 41 41 // C/C++ compiler 42 42 #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" 53 53 54 54 #undef _DH 55 55 -
./dmd/libelf.c
old new 22 22 23 23 #include "mars.h" 24 24 #include "lib.h" 25 #include " melf.h"25 #include "backend/melf.h" 26 26 27 27 #define LOG 0 28 28 -
./dmd/libmach.c
old new 26 26 #include <sys/types.h> 27 27 #include <sys/stat.h> 28 28 29 #include " mach.h"29 #include "backend/mach.h" 30 30 31 #include "r mem.h"32 #include "root .h"33 #include " stringtable.h"31 #include "root/rmem.h" 32 #include "root/root.h" 33 #include "root/stringtable.h" 34 34 35 35 #include "mars.h" 36 36 #include "lib.h" -
./dmd/libomf.c
old new 17 17 #include <stdlib.h> 18 18 #include <assert.h> 19 19 20 #include "r mem.h"21 #include "root .h"22 #include " stringtable.h"20 #include "root/rmem.h" 21 #include "root/root.h" 22 #include "root/stringtable.h" 23 23 24 24 #include "mars.h" 25 25 #include "lib.h" -
./dmd/module.c
old new 24 24 #include "gdc_alloca.h" 25 25 #endif 26 26 27 #include "r mem.h"27 #include "root/rmem.h" 28 28 29 29 #include "mars.h" 30 30 #include "module.h" -
./dmd/msc.c
old new 14 14 15 15 #include "mars.h" 16 16 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" 25 25 26 26 static char __file__[] = __FILE__; /* for tassert.h */ 27 27 #include "tassert.h" -
./dmd/mtype.c
old new 31 31 #include <malloc.h> 32 32 #endif 33 33 34 #include "r mem.h"35 #include " port.h"34 #include "root/rmem.h" 35 #include "root/port.h" 36 36 37 37 #include "dsymbol.h" 38 38 #include "mtype.h" … … 350 350 */ 351 351 352 352 char *Type::toChars() 353 353 354 { OutBuffer *buf; 354 355 HdrGenState hgs; 355 356 -
./dmd/opover.c
old new 18 18 #include <complex.h> 19 19 #endif 20 20 21 #include "r mem.h"21 #include "root/rmem.h" 22 22 23 23 //#include "port.h" 24 24 #include "mtype.h" -
./dmd/parse.c
old new 13 13 #include <stdio.h> 14 14 #include <assert.h> 15 15 16 #include "r mem.h"16 #include "root/rmem.h" 17 17 #include "lexer.h" 18 18 #include "parse.h" 19 19 #include "init.h" … … 2546 2546 switch (token.value) 2547 2547 { 2548 2548 case TOKlcurly: 2549 2549 2550 /* Scan ahead to see if it is a struct initializer or 2550 2551 * a function literal. 2551 2552 * If it contains a ';', it is a function literal. -
./dmd/ph.c
old new 20 20 #include <new> 21 21 #endif 22 22 23 #include " cc.h"24 #include " global.h"23 #include "backend/cc.h" 24 #include "backend/global.h" 25 25 26 26 static char __file__[] = __FILE__; /* for tassert.h */ 27 27 #include "tassert.h" -
./dmd/s2ir.c
old new 25 25 #include "id.h" 26 26 27 27 // 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" 34 34 35 35 #include "rmem.h" 36 36 -
./dmd/scope.c
old new 10 10 #include <stdio.h> 11 11 #include <assert.h> 12 12 13 #include "root .h"14 #include " speller.h"13 #include "root/root.h" 14 #include "root/speller.h" 15 15 16 16 #include "mars.h" 17 17 #include "init.h" -
./dmd/statement.c
old new 12 12 #include <stdlib.h> 13 13 #include <assert.h> 14 14 15 #include "r mem.h"15 #include "root/rmem.h" 16 16 17 17 #include "statement.h" 18 18 #include "expression.h" … … 344 344 DeclarationStatement::DeclarationStatement(Loc loc, Expression *exp) 345 345 : ExpStatement(loc, exp) 346 346 { 347 347 348 } 348 349 349 350 Statement *DeclarationStatement::syntaxCopy() … … 619 620 for (int i = 0; i < statements->dim; i++) 620 621 { Statement *s = (Statement *)statements->data[i]; 621 622 623 622 624 if (!s) 623 625 continue; 624 626 … … 3507 3509 Scope *scx; 3508 3510 FuncDeclaration *thisfunc = sc->func; 3509 3511 3512 3510 3513 for (scx = sc; scx; scx = scx->enclosing) 3511 3514 { 3512 3515 LabelStatement *ls; -
./dmd/struct.c
old new 11 11 #include <stdio.h> 12 12 #include <assert.h> 13 13 14 #include "root .h"14 #include "root/root.h" 15 15 #include "aggregate.h" 16 16 #include "scope.h" 17 17 #include "mtype.h" -
./dmd/template.c
old new 13 13 #include <stdio.h> 14 14 #include <assert.h> 15 15 16 #include "root .h"17 #include "r mem.h"18 #include " stringtable.h"16 #include "root/root.h" 17 #include "root/rmem.h" 18 #include "root/stringtable.h" 19 19 20 20 #include "mtype.h" 21 21 #include "template.h" … … 884 884 */ 885 885 if (tp) // if variadic 886 886 { 887 887 888 if (nfparams == 0 && nfargs != 0) // if no function parameters 888 889 { 889 890 Tuple *t = new Tuple(); -
./dmd/tk.c
old new 9 9 #include <string.h> 10 10 11 11 static char __file__[] = __FILE__; /* for tassert.h */ 12 #include " tassert.h"12 #include "backend/tassert.h" 13 13 14 #include " mem.h"15 #include " filespec.c"14 #include "tk/mem.h" 15 #include "tk/filespec.c" 16 16 17 17 #if 0 18 18 #define malloc ph_malloc -
./dmd/tocsym.c
old new 30 30 #include "dsymbol.h" 31 31 #include "id.h" 32 32 33 #include "r mem.h"33 #include "root/rmem.h" 34 34 35 35 // 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" 45 45 46 46 void slist_add(Symbol *s); 47 47 void slist_reset(); -
./dmd/toctype.c
old new 26 26 #include "import.h" 27 27 #include "template.h" 28 28 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" 38 38 #include "irstate.h" 39 39 40 40 void out_config_init(); -
./dmd/tocvdebug.c
old new 21 21 #include "id.h" 22 22 #include "import.h" 23 23 #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"35 24 #include "irstate.h" 36 25 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 37 38 /* The CV4 debug format is defined in: 38 39 * "CV4 Symbolic Debug Information Specification" 39 40 * rev 3.1 March 5, 1993 -
./dmd/todt.c
old new 32 32 33 33 34 34 // 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" 42 42 43 43 extern Symbol *static_sym(); 44 44 -
./dmd/toelfdebug.c
old new 21 21 #include "id.h" 22 22 #include "import.h" 23 23 #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"35 24 #include "irstate.h" 36 25 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 37 38 /**************************** 38 39 * Emit symbolic debug info in Dwarf2 format. 39 40 */ -
./dmd/toir.c
old new 28 28 #include "module.h" 29 29 #include "init.h" 30 30 #include "template.h" 31 32 #include "mem.h" // for mem_malloc33 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"41 31 #include "irstate.h" 42 32 #include "id.h" 43 #include "type.h"44 33 #include "toir.h" 45 34 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 46 46 static char __file__[] = __FILE__; /* for tassert.h */ 47 #include " tassert.h"47 #include "backend/tassert.h" 48 48 49 49 /********************************************* 50 50 * Produce elem which increments the usage count for a particular line. -
./dmd/toobj.c
old new 24 24 #include "id.h" 25 25 #include "import.h" 26 26 #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"37 27 #include "irstate.h" 38 28 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 39 39 void obj_lzext(Symbol *s1,Symbol *s2); 40 40 41 41 /* ================================================================== */ -
./dmd/typinf.c
old new 26 26 #include "enum.h" 27 27 #include "import.h" 28 28 #include "aggregate.h" 29 #include "irstate.h" 29 30 30 31 #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" 41 41 #endif 42 42 43 43 extern Symbol *static_sym(); -
./dmd/util.c
old new 18 18 #include <stdlib.h> 19 19 #include <time.h> 20 20 21 #include " cc.h"22 #include " global.h"23 #include " mem.h"24 #include "t oken.h"21 #include "backend/cc.h" 22 #include "backend/global.h" 23 #include "backend/token.h" 24 #include "tk/mem.h" 25 25 #if SCPP || MARS 26 #include " el.h"26 #include "backend/el.h" 27 27 #endif 28 #include " parser.h"28 #include "backend/parser.h" 29 29 30 30 #if _WIN32 && __DMC__ 31 31 //#include "scdll.h" … … 33 33 #endif 34 34 35 35 static char __file__[] = __FILE__; /* for tassert.h */ 36 #include " tassert.h"36 #include "backend/tassert.h" 37 37 38 38 void util_exit(int exitcode); 39 39 -
./dmd/version.c
old new 10 10 #include <stdio.h> 11 11 #include <assert.h> 12 12 13 #include "root .h"13 #include "root/root.h" 14 14 15 15 #include "identifier.h" 16 16 #include "dsymbol.h"

