comparison dmd/backend/Config.d @ 25:3f834bed4f13

FWindows linking issues fixed
author korDen
date Tue, 13 Apr 2010 00:38:04 +0400
parents fd4acc376c45
children e28b18c23469
comparison
equal deleted inserted replaced
24:1b81e14880ef 25:3f834bed4f13
6 extern (C) { 6 extern (C) {
7 void cod3_set64(); 7 void cod3_set64();
8 void cod3_set386(); 8 void cod3_set386();
9 } 9 }
10 10
11 debug extern (C) extern 11
12 { 12 debug {
13 __gshared char debuga; /* cg - watch assignaddr() */ 13
14 __gshared char debugb; /* watch block optimization */ 14 version (Windows) {
15 __gshared char debugc; /* watch code generated */ 15 extern (C++) extern
16 __gshared char debugd; /* watch debug information generated */ 16 {
17 __gshared char debuge; // dump eh info 17 __gshared char debuga; /* cg - watch assignaddr() */
18 __gshared char debugf; /* trees after dooptim */ 18 __gshared char debugb; /* watch block optimization */
19 __gshared char debugg; /* trees for code generator */ 19 __gshared char debugc; /* watch code generated */
20 __gshared char debugo; // watch optimizer 20 __gshared char debugd; /* watch debug information generated */
21 __gshared char debugr; // watch register allocation 21 __gshared char debuge; // dump eh info
22 __gshared char debugs; /* watch common subexp eliminator */ 22 __gshared char debugf; /* trees after dooptim */
23 __gshared char debugt; /* do test points */ 23 __gshared char debugg; /* trees for code generator */
24 __gshared char debugu; 24 __gshared char debugo; // watch optimizer
25 __gshared char debugw; /* watch progress */ 25 __gshared char debugr; // watch register allocation
26 __gshared char debugx; /* suppress predefined CPP stuff */ 26 __gshared char debugs; /* watch common subexp eliminator */
27 __gshared char debugy; /* watch output to il buffer */ 27 __gshared char debugt; /* do test points */
28 __gshared char debugu;
29 __gshared char debugw; /* watch progress */
30 __gshared char debugx; /* suppress predefined CPP stuff */
31 __gshared char debugy; /* watch output to il buffer */
32 }
33 } else {
34 extern (C) extern
35 {
36 __gshared char debuga; /* cg - watch assignaddr() */
37 __gshared char debugb; /* watch block optimization */
38 __gshared char debugc; /* watch code generated */
39 __gshared char debugd; /* watch debug information generated */
40 __gshared char debuge; // dump eh info
41 __gshared char debugf; /* trees after dooptim */
42 __gshared char debugg; /* trees for code generator */
43 __gshared char debugo; // watch optimizer
44 __gshared char debugr; // watch register allocation
45 __gshared char debugs; /* watch common subexp eliminator */
46 __gshared char debugt; /* do test points */
47 __gshared char debugu;
48 __gshared char debugw; /* watch progress */
49 __gshared char debugx; /* suppress predefined CPP stuff */
50 __gshared char debugy; /* watch output to il buffer */
51 }
52 }
53
28 } 54 }
29 55
30 // This part of the configuration is saved in the precompiled header for use 56 // This part of the configuration is saved in the precompiled header for use
31 // in comparing to make sure it hasn't changed. 57 // in comparing to make sure it hasn't changed.
32 58
188 ///#define THRESHMAX 0xFFFF // if threshold == THRESHMAX, all data defaults 214 ///#define THRESHMAX 0xFFFF // if threshold == THRESHMAX, all data defaults
189 // to near 215 // to near
190 LINKAGE linkage; // default function call linkage 216 LINKAGE linkage; // default function call linkage
191 } 217 }
192 218
193 extern (C) extern __gshared Config config; 219 version (Windows) {
220 extern (C++) extern __gshared Config config;
221 } else {
222 extern (C) extern __gshared Config config;
223 }
194 224
195 enum CVNONE = 0; // No symbolic info 225 enum CVNONE = 0; // No symbolic info
196 enum CVOLD = 1; // Codeview 1 symbolic info 226 enum CVOLD = 1; // Codeview 1 symbolic info
197 enum CV4 = 2; // Codeview 4 symbolic info 227 enum CV4 = 2; // Codeview 4 symbolic info
198 enum CVSYM = 3; // Symantec format 228 enum CVSYM = 3; // Symantec format