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