comparison dmd/mtype.c @ 270:d9d5d59873d8 trunk

[svn r291] Fixed a bunch of the old Phobos tests to work with Tango. Branch statements now emit a new block after it. Fixed the _adSort runtime function had a bad signature. Added a missing dot prefix on compiler generated string tables for string switch. Fixed, PTRSIZE seems like it was wrong on 64bit, now it definitely gets set properly.
author lindquist
date Mon, 16 Jun 2008 16:01:19 +0200
parents 4d006f7b2ada
children 297690b5d4a5
comparison
equal deleted inserted replaced
269:967178e31a13 270:d9d5d59873d8
221 basic[basetab[i]] = new TypeBasic(basetab[i]); 221 basic[basetab[i]] = new TypeBasic(basetab[i]);
222 basic[Terror] = basic[Tint32]; 222 basic[Terror] = basic[Tint32];
223 223
224 tvoidptr = tvoid->pointerTo(); 224 tvoidptr = tvoid->pointerTo();
225 225
226 // set size_t / ptrdiff_t types 226 // set size_t / ptrdiff_t types and pointer size
227 if (global.params.is64bit) 227 if (global.params.is64bit)
228 { 228 {
229 Tsize_t = Tuns64; 229 Tsize_t = Tuns64;
230 Tptrdiff_t = Tint64; 230 Tptrdiff_t = Tint64;
231 PTRSIZE = 8;
231 } 232 }
232 else 233 else
233 { 234 {
234 Tsize_t = Tuns32; 235 Tsize_t = Tuns32;
235 Tptrdiff_t = Tint32; 236 Tptrdiff_t = Tint32;
237 PTRSIZE = 4;
236 } 238 }
237 239
238 // set real size and padding 240 // set real size and padding
239 if (global.params.useFP80) 241 if (global.params.useFP80)
240 { 242 {