psystem.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Load the system unit, create required defs for systemunit
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit psystem;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. symbase;
  23. procedure insertinternsyms(p : tsymtable);
  24. procedure insert_intern_types(p : tsymtable);
  25. procedure readconstdefs;
  26. procedure createconstdefs;
  27. procedure registernodes;
  28. procedure registertais;
  29. implementation
  30. uses
  31. globals,globtype,verbose,
  32. symconst,symtype,symsym,symdef,symtable,
  33. aasmtai,aasmcpu,ncgutil,
  34. {$ifdef GDB}
  35. gdb,
  36. {$endif GDB}
  37. node,nbas,nflw,nset,ncon,ncnv,nld,nmem,ncal,nmat,nadd,ninl,nopt
  38. {$ifdef Delphi}
  39. ,dmisc
  40. ,sysutils
  41. {$endif}
  42. ;
  43. procedure insertinternsyms(p : tsymtable);
  44. {
  45. all intern procedures for the system unit
  46. }
  47. begin
  48. p.insert(tsyssym.create('Concat',in_concat_x));
  49. p.insert(tsyssym.create('Write',in_write_x));
  50. p.insert(tsyssym.create('WriteLn',in_writeln_x));
  51. p.insert(tsyssym.create('Assigned',in_assigned_x));
  52. p.insert(tsyssym.create('Read',in_read_x));
  53. p.insert(tsyssym.create('ReadLn',in_readln_x));
  54. p.insert(tsyssym.create('Ofs',in_ofs_x));
  55. p.insert(tsyssym.create('SizeOf',in_sizeof_x));
  56. p.insert(tsyssym.create('TypeOf',in_typeof_x));
  57. p.insert(tsyssym.create('Low',in_low_x));
  58. p.insert(tsyssym.create('High',in_high_x));
  59. p.insert(tsyssym.create('Seg',in_seg_x));
  60. p.insert(tsyssym.create('Ord',in_ord_x));
  61. p.insert(tsyssym.create('Pred',in_pred_x));
  62. p.insert(tsyssym.create('Succ',in_succ_x));
  63. p.insert(tsyssym.create('Exclude',in_exclude_x_y));
  64. p.insert(tsyssym.create('Include',in_include_x_y));
  65. p.insert(tsyssym.create('Break',in_break));
  66. p.insert(tsyssym.create('Exit',in_exit));
  67. p.insert(tsyssym.create('Continue',in_continue));
  68. p.insert(tsyssym.create('Leave',in_leave)); {macpas only}
  69. p.insert(tsyssym.create('Cycle',in_cycle)); {macpas only}
  70. p.insert(tsyssym.create('Dec',in_dec_x));
  71. p.insert(tsyssym.create('Inc',in_inc_x));
  72. p.insert(tsyssym.create('Str',in_str_x_string));
  73. p.insert(tsyssym.create('Assert',in_assert_x_y));
  74. p.insert(tsyssym.create('Val',in_val_x));
  75. p.insert(tsyssym.create('Addr',in_addr_x));
  76. p.insert(tsyssym.create('TypeInfo',in_typeinfo_x));
  77. p.insert(tsyssym.create('SetLength',in_setlength_x));
  78. p.insert(tsyssym.create('Copy',in_copy_x));
  79. p.insert(tsyssym.create('Initialize',in_initialize_x));
  80. p.insert(tsyssym.create('Finalize',in_finalize_x));
  81. p.insert(tsyssym.create('Length',in_length_x));
  82. p.insert(tsyssym.create('New',in_new_x));
  83. p.insert(tsyssym.create('Dispose',in_dispose_x));
  84. end;
  85. procedure insert_intern_types(p : tsymtable);
  86. {
  87. all the types inserted into the system unit
  88. }
  89. function addtype(const s:string;const t:ttype):ttypesym;
  90. begin
  91. result:=ttypesym.create(s,t);
  92. p.insert(result);
  93. { add init/final table if required }
  94. if t.def.needs_inittable then
  95. generate_inittable(result);
  96. end;
  97. procedure adddef(const s:string;def:tdef);
  98. var
  99. t : ttype;
  100. begin
  101. t.setdef(def);
  102. p.insert(ttypesym.create(s,t));
  103. end;
  104. var
  105. hrecst : trecordsymtable;
  106. begin
  107. {$ifdef cpufpemu}
  108. { Normal types }
  109. if (cs_fp_emulation in aktmoduleswitches) then
  110. begin
  111. addtype('Single',s32floattype);
  112. { extended size is the best real type for the target }
  113. addtype('Real',s32floattype);
  114. pbestrealtype:=@s32floattype;
  115. { extended size is the best real type for the target }
  116. addtype('Extended',pbestrealtype^);
  117. end
  118. else
  119. {$endif cpufpemu}
  120. begin
  121. addtype('Single',s32floattype);
  122. addtype('Double',s64floattype);
  123. { extended size is the best real type for the target }
  124. addtype('Extended',pbestrealtype^);
  125. addtype('Real',s64floattype);
  126. end;
  127. {$ifdef x86}
  128. adddef('Comp',tfloatdef.create(s64comp));
  129. {$endif x86}
  130. addtype('Currency',s64currencytype);
  131. addtype('Pointer',voidpointertype);
  132. addtype('FarPointer',voidfarpointertype);
  133. addtype('ShortString',cshortstringtype);
  134. addtype('LongString',clongstringtype);
  135. {$ifdef ansistring_bits}
  136. addtype('AnsiString',cansistringtype16);
  137. addtype('AnsiString',cansistringtype32);
  138. addtype('AnsiString',cansistringtype64);
  139. {$else}
  140. addtype('AnsiString',cansistringtype);
  141. {$endif}
  142. addtype('WideString',cwidestringtype);
  143. addtype('Boolean',booltype);
  144. addtype('ByteBool',booltype);
  145. adddef('WordBool',torddef.create(bool16bit,0,1));
  146. adddef('LongBool',torddef.create(bool32bit,0,1));
  147. addtype('Byte',u8inttype);
  148. addtype('ShortInt',s8inttype);
  149. addtype('Word',u16inttype);
  150. addtype('SmallInt',s16inttype);
  151. addtype('LongWord',u32inttype);
  152. addtype('LongInt',s32inttype);
  153. addtype('QWord',u64inttype);
  154. addtype('Int64',s64inttype);
  155. addtype('Char',cchartype);
  156. addtype('WideChar',cwidechartype);
  157. adddef('Text',tfiledef.createtext);
  158. adddef('TypedFile',tfiledef.createtyped(voidtype));
  159. addtype('Variant',cvarianttype);
  160. addtype('OleVariant',colevarianttype);
  161. { Internal types }
  162. addtype('$formal',cformaltype);
  163. addtype('$void',voidtype);
  164. addtype('$byte',u8inttype);
  165. addtype('$shortint',s8inttype);
  166. addtype('$word',u16inttype);
  167. addtype('$smallint',s16inttype);
  168. addtype('$ulong',u32inttype);
  169. addtype('$longint',s32inttype);
  170. addtype('$qword',u64inttype);
  171. addtype('$int64',s64inttype);
  172. addtype('$char',cchartype);
  173. addtype('$widechar',cwidechartype);
  174. addtype('$shortstring',cshortstringtype);
  175. addtype('$longstring',clongstringtype);
  176. {$ifdef ansistring_bits}
  177. addtype('$ansistring16',cansistringtype16);
  178. addtype('$ansistring32',cansistringtype32);
  179. addtype('$ansistring64',cansistringtype64);
  180. {$else}
  181. addtype('$ansistring',cansistringtype);
  182. {$endif}
  183. addtype('$widestring',cwidestringtype);
  184. addtype('$openshortstring',openshortstringtype);
  185. addtype('$boolean',booltype);
  186. addtype('$void_pointer',voidpointertype);
  187. addtype('$char_pointer',charpointertype);
  188. addtype('$void_farpointer',voidfarpointertype);
  189. addtype('$openchararray',openchararraytype);
  190. addtype('$file',cfiletype);
  191. addtype('$variant',cvarianttype);
  192. addtype('$olevariant',cvarianttype);
  193. addtype('$s32real',s32floattype);
  194. addtype('$s64real',s64floattype);
  195. addtype('$s80real',s80floattype);
  196. addtype('$s64currency',s64currencytype);
  197. { Add a type for virtual method tables }
  198. hrecst:=trecordsymtable.create(aktpackrecords);
  199. vmttype.setdef(trecorddef.create(hrecst));
  200. pvmttype.setdef(tpointerdef.create(vmttype));
  201. hrecst.insertfield(tvarsym.create('$parent',vs_value,pvmttype),true);
  202. hrecst.insertfield(tvarsym.create('$length',vs_value,s32inttype),true);
  203. hrecst.insertfield(tvarsym.create('$mlength',vs_value,s32inttype),true);
  204. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  205. tarraydef(vmtarraytype.def).setelementtype(voidpointertype);
  206. hrecst.insertfield(tvarsym.create('$__pfn',vs_value,vmtarraytype),true);
  207. addtype('$__vtbl_ptr_type',vmttype);
  208. addtype('$pvmt',pvmttype);
  209. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  210. tarraydef(vmtarraytype.def).setelementtype(pvmttype);
  211. addtype('$vtblarray',vmtarraytype);
  212. { Add a type for methodpointers }
  213. hrecst:=trecordsymtable.create(1);
  214. hrecst.insertfield(tvarsym.create('$proc',vs_value,voidpointertype),true);
  215. hrecst.insertfield(tvarsym.create('$self',vs_value,voidpointertype),true);
  216. methodpointertype.setdef(trecorddef.create(hrecst));
  217. addtype('$methodpointer',methodpointertype);
  218. { Add functions that require compiler magic }
  219. insertinternsyms(p);
  220. end;
  221. procedure readconstdefs;
  222. {
  223. Load all default definitions for consts from the system unit
  224. }
  225. procedure loadtype(const s:string;var t:ttype);
  226. var
  227. srsym : tsym;
  228. begin
  229. srsym:=searchsymonlyin(systemunit,s);
  230. if not(assigned(srsym) and
  231. (srsym.typ=typesym)) then
  232. internalerror(200403231);
  233. t:=ttypesym(srsym).restype;
  234. end;
  235. begin
  236. loadtype('byte',u8inttype);
  237. loadtype('shortint',s8inttype);
  238. loadtype('word',u16inttype);
  239. loadtype('smallint',s16inttype);
  240. loadtype('ulong',u32inttype);
  241. loadtype('longint',s32inttype);
  242. loadtype('qword',u64inttype);
  243. loadtype('int64',s64inttype);
  244. loadtype('formal',cformaltype);
  245. loadtype('void',voidtype);
  246. loadtype('char',cchartype);
  247. loadtype('widechar',cwidechartype);
  248. loadtype('shortstring',cshortstringtype);
  249. loadtype('longstring',clongstringtype);
  250. {$ifdef ansistring_bits}
  251. loadtype('ansistring16',cansistringtype16);
  252. loadtype('ansistring32',cansistringtype32);
  253. loadtype('ansistring64',cansistringtype64);
  254. {$else}
  255. loadtype('ansistring',cansistringtype);
  256. {$endif}
  257. loadtype('widestring',cwidestringtype);
  258. loadtype('openshortstring',openshortstringtype);
  259. loadtype('openchararray',openchararraytype);
  260. loadtype('s32real',s32floattype);
  261. loadtype('s64real',s64floattype);
  262. loadtype('s80real',s80floattype);
  263. loadtype('s64currency',s64currencytype);
  264. loadtype('boolean',booltype);
  265. loadtype('void_pointer',voidpointertype);
  266. loadtype('char_pointer',charpointertype);
  267. loadtype('void_farpointer',voidfarpointertype);
  268. loadtype('file',cfiletype);
  269. loadtype('pvmt',pvmttype);
  270. loadtype('vtblarray',vmtarraytype);
  271. loadtype('__vtbl_ptr_type',vmttype);
  272. loadtype('variant',cvarianttype);
  273. loadtype('olevariant',colevarianttype);
  274. loadtype('methodpointer',methodpointertype);
  275. {$ifdef cpu64bit}
  276. uinttype:=u64inttype;
  277. sinttype:=s64inttype;
  278. ptrinttype:=u64inttype;
  279. {$else cpu64bit}
  280. uinttype:=u32inttype;
  281. sinttype:=s32inttype;
  282. ptrinttype:=u32inttype;
  283. {$endif cpu64bit}
  284. end;
  285. procedure createconstdefs;
  286. {
  287. Create all default definitions for consts for the system unit
  288. }
  289. var
  290. oldregisterdef : boolean;
  291. begin
  292. { create definitions for constants }
  293. oldregisterdef:=registerdef;
  294. registerdef:=false;
  295. cformaltype.setdef(tformaldef.create);
  296. voidtype.setdef(torddef.create(uvoid,0,0));
  297. u8inttype.setdef(torddef.create(u8bit,0,255));
  298. s8inttype.setdef(torddef.create(s8bit,-128,127));
  299. u16inttype.setdef(torddef.create(u16bit,0,65535));
  300. s16inttype.setdef(torddef.create(s16bit,-32768,32767));
  301. u32inttype.setdef(torddef.create(u32bit,0,high(longword)));
  302. s32inttype.setdef(torddef.create(s32bit,low(longint),high(longint)));
  303. u64inttype.setdef(torddef.create(u64bit,low(qword),TConstExprInt(high(qword))));
  304. s64inttype.setdef(torddef.create(s64bit,low(int64),high(int64)));
  305. booltype.setdef(torddef.create(bool8bit,0,1));
  306. cchartype.setdef(torddef.create(uchar,0,255));
  307. cwidechartype.setdef(torddef.create(uwidechar,0,65535));
  308. cshortstringtype.setdef(tstringdef.createshort(255));
  309. { should we give a length to the default long and ansi string definition ?? }
  310. clongstringtype.setdef(tstringdef.createlong(-1));
  311. {$ifdef ansistring_bits}
  312. cansistringtype16.setdef(tstringdef.createansi(-1,sb_16));
  313. cansistringtype32.setdef(tstringdef.createansi(-1,sb_32));
  314. cansistringtype64.setdef(tstringdef.createansi(-1,sb_64));
  315. {$else}
  316. cansistringtype.setdef(tstringdef.createansi(-1));
  317. {$endif}
  318. cwidestringtype.setdef(tstringdef.createwide(-1));
  319. { length=0 for shortstring is open string (needed for readln(string) }
  320. openshortstringtype.setdef(tstringdef.createshort(0));
  321. openchararraytype.setdef(tarraydef.create(0,-1,s32inttype));
  322. tarraydef(openchararraytype.def).setelementtype(cchartype);
  323. {$ifdef x86}
  324. s32floattype.setdef(tfloatdef.create(s32real));
  325. s64floattype.setdef(tfloatdef.create(s64real));
  326. s80floattype.setdef(tfloatdef.create(s80real));
  327. s64currencytype.setdef(tfloatdef.create(s64currency));
  328. {$endif x86}
  329. {$ifdef powerpc}
  330. s32floattype.setdef(tfloatdef.create(s32real));
  331. s64floattype.setdef(tfloatdef.create(s64real));
  332. s80floattype.setdef(tfloatdef.create(s80real));
  333. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  334. {$endif powerpc}
  335. {$ifdef sparc}
  336. s32floattype.setdef(tfloatdef.create(s32real));
  337. s64floattype.setdef(tfloatdef.create(s64real));
  338. s80floattype.setdef(tfloatdef.create(s80real));
  339. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  340. {$endif sparc}
  341. {$ifdef m68k}
  342. s32floattype.setdef(tfloatdef.create(s32real));
  343. s64floattype.setdef(tfloatdef.create(s64real));
  344. s80floattype.setdef(tfloatdef.create(s80real));
  345. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  346. {$endif}
  347. {$ifdef arm}
  348. s32floattype.setdef(tfloatdef.create(s32real));
  349. s64floattype.setdef(tfloatdef.create(s64real));
  350. s80floattype.setdef(tfloatdef.create(s80real));
  351. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  352. {$endif arm}
  353. {$ifdef cpu64bit}
  354. uinttype:=u64inttype;
  355. sinttype:=s64inttype;
  356. ptrinttype:=u64inttype;
  357. {$else cpu64bit}
  358. uinttype:=u32inttype;
  359. sinttype:=s32inttype;
  360. ptrinttype:=u32inttype;
  361. {$endif cpu64bit}
  362. { some other definitions }
  363. voidpointertype.setdef(tpointerdef.create(voidtype));
  364. charpointertype.setdef(tpointerdef.create(cchartype));
  365. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  366. cfiletype.setdef(tfiledef.createuntyped);
  367. cvarianttype.setdef(tvariantdef.create(vt_normalvariant));
  368. colevarianttype.setdef(tvariantdef.create(vt_olevariant));
  369. registerdef:=oldregisterdef;
  370. end;
  371. procedure registernodes;
  372. {
  373. Register all possible nodes in the nodeclass array that
  374. will be used for loading the nodes from a ppu
  375. }
  376. begin
  377. nodeclass[addn]:=caddnode;
  378. nodeclass[muln]:=caddnode;
  379. nodeclass[subn]:=caddnode;
  380. nodeclass[divn]:=cmoddivnode;
  381. nodeclass[symdifn]:=caddnode;
  382. nodeclass[modn]:=cmoddivnode;
  383. nodeclass[assignn]:=cassignmentnode;
  384. nodeclass[loadn]:=cloadnode;
  385. nodeclass[rangen]:=crangenode;
  386. nodeclass[ltn]:=caddnode;
  387. nodeclass[lten]:=caddnode;
  388. nodeclass[gtn]:=caddnode;
  389. nodeclass[gten]:=caddnode;
  390. nodeclass[equaln]:=caddnode;
  391. nodeclass[unequaln]:=caddnode;
  392. nodeclass[inn]:=cinnode;
  393. nodeclass[orn]:=caddnode;
  394. nodeclass[xorn]:=caddnode;
  395. nodeclass[shrn]:=cshlshrnode;
  396. nodeclass[shln]:=cshlshrnode;
  397. nodeclass[slashn]:=caddnode;
  398. nodeclass[andn]:=caddnode;
  399. nodeclass[subscriptn]:=csubscriptnode;
  400. nodeclass[derefn]:=cderefnode;
  401. nodeclass[addrn]:=caddrnode;
  402. nodeclass[ordconstn]:=cordconstnode;
  403. nodeclass[typeconvn]:=ctypeconvnode;
  404. nodeclass[calln]:=ccallnode;
  405. nodeclass[callparan]:=ccallparanode;
  406. nodeclass[realconstn]:=crealconstnode;
  407. nodeclass[unaryminusn]:=cunaryminusnode;
  408. nodeclass[asmn]:=casmnode;
  409. nodeclass[vecn]:=cvecnode;
  410. nodeclass[pointerconstn]:=cpointerconstnode;
  411. nodeclass[stringconstn]:=cstringconstnode;
  412. nodeclass[notn]:=cnotnode;
  413. nodeclass[inlinen]:=cinlinenode;
  414. nodeclass[niln]:=cnilnode;
  415. nodeclass[errorn]:=cerrornode;
  416. nodeclass[typen]:=ctypenode;
  417. nodeclass[setelementn]:=csetelementnode;
  418. nodeclass[setconstn]:=csetconstnode;
  419. nodeclass[blockn]:=cblocknode;
  420. nodeclass[statementn]:=cstatementnode;
  421. nodeclass[ifn]:=cifnode;
  422. nodeclass[breakn]:=cbreaknode;
  423. nodeclass[continuen]:=ccontinuenode;
  424. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  425. nodeclass[forn]:=cfornode;
  426. nodeclass[exitn]:=cexitnode;
  427. nodeclass[withn]:=cwithnode;
  428. nodeclass[casen]:=ccasenode;
  429. nodeclass[labeln]:=clabelnode;
  430. nodeclass[goton]:=cgotonode;
  431. nodeclass[tryexceptn]:=ctryexceptnode;
  432. nodeclass[raisen]:=craisenode;
  433. nodeclass[tryfinallyn]:=ctryfinallynode;
  434. nodeclass[onn]:=connode;
  435. nodeclass[isn]:=cisnode;
  436. nodeclass[asn]:=casnode;
  437. nodeclass[caretn]:=caddnode;
  438. nodeclass[starstarn]:=caddnode;
  439. nodeclass[arrayconstructorn]:=carrayconstructornode;
  440. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  441. nodeclass[tempcreaten]:=ctempcreatenode;
  442. nodeclass[temprefn]:=ctemprefnode;
  443. nodeclass[tempdeleten]:=ctempdeletenode;
  444. nodeclass[addoptn]:=caddnode;
  445. nodeclass[nothingn]:=cnothingnode;
  446. nodeclass[loadvmtaddrn]:=cloadvmtaddrnode;
  447. nodeclass[guidconstn]:=cguidconstnode;
  448. nodeclass[rttin]:=crttinode;
  449. nodeclass[loadparentfpn]:=cloadparentfpnode;
  450. end;
  451. procedure registertais;
  452. {
  453. Register all possible tais in the taiclass array that
  454. will be used for loading the tais from a ppu
  455. }
  456. begin
  457. aiclass[ait_none]:=nil;
  458. aiclass[ait_align]:=tai_align;
  459. aiclass[ait_section]:=tai_section;
  460. aiclass[ait_comment]:=tai_comment;
  461. aiclass[ait_direct]:=tai_direct;
  462. aiclass[ait_string]:=tai_string;
  463. aiclass[ait_instruction]:=taicpu;
  464. aiclass[ait_datablock]:=tai_datablock;
  465. aiclass[ait_symbol]:=tai_symbol;
  466. aiclass[ait_symbol_end]:=tai_symbol_end;
  467. aiclass[ait_label]:=tai_label;
  468. aiclass[ait_const_64bit]:=tai_const;
  469. aiclass[ait_const_32bit]:=tai_const;
  470. aiclass[ait_const_16bit]:=tai_const;
  471. aiclass[ait_const_8bit]:=tai_const;
  472. aiclass[ait_const_indirect_symbol]:=tai_const;
  473. aiclass[ait_const_rva_symbol]:=tai_const;
  474. aiclass[ait_real_32bit]:=tai_real_32bit;
  475. aiclass[ait_real_64bit]:=tai_real_64bit;
  476. aiclass[ait_real_80bit]:=tai_real_80bit;
  477. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  478. {$ifdef GDB}
  479. aiclass[ait_stabn]:=tai_stabn;
  480. aiclass[ait_stabs]:=tai_stabs;
  481. aiclass[ait_force_line]:=tai_force_line;
  482. aiclass[ait_stab_function_name]:=tai_stab_function_name;
  483. {$endif GDB}
  484. {$ifdef alpha}
  485. { the follow is for the DEC Alpha }
  486. aiclass[ait_frame]:=tai_frame;
  487. aiclass[ait_ent]:=tai_ent;
  488. {$endif alpha}
  489. {$ifdef m68k}
  490. {$warning FIXME: tai_labeled_instruction doesn't exists}
  491. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  492. {$endif m68k}
  493. {$ifdef ia64}
  494. aiclass[ait_bundle]:=tai_bundle;
  495. aiclass[ait_stop]:=tai_stop;
  496. {$endif ia64}
  497. {$ifdef SPARC}
  498. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  499. {$endif SPARC}
  500. aiclass[ait_cutobject]:=tai_cutobject;
  501. aiclass[ait_regalloc]:=tai_regalloc;
  502. aiclass[ait_tempalloc]:=tai_tempalloc;
  503. aiclass[ait_marker]:=tai_marker;
  504. end;
  505. end.
  506. {
  507. $Log$
  508. Revision 1.71 2004-07-05 21:49:43 olle
  509. + macpas style: exit, cycle, leave
  510. + macpas compiler directive: PUSH POP
  511. Revision 1.70 2004/06/20 08:55:30 florian
  512. * logs truncated
  513. Revision 1.69 2004/06/16 20:07:09 florian
  514. * dwarf branch merged
  515. Revision 1.68 2004/04/29 19:56:37 daniel
  516. * Prepare compiler infrastructure for multiple ansistring types
  517. Revision 1.67.2.3 2004/04/12 19:34:46 peter
  518. * basic framework for dwarf CFI
  519. Revision 1.67.2.2 2004/04/12 14:45:11 peter
  520. * tai_const_symbol and tai_const merged
  521. Revision 1.67.2.1 2004/04/08 18:33:22 peter
  522. * rewrite of TAsmSection
  523. }