psystem.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  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,
  32. symconst,symtype,symsym,symdef,symtable,
  33. aasmtai,aasmcpu,
  34. {$ifdef GDB}
  35. gdb,
  36. {$endif GDB}
  37. node,nbas,nflw,nset,ncon,ncnv,nld,nmem,ncal,nmat,nadd,ninl,nopt;
  38. procedure insertinternsyms(p : tsymtable);
  39. {
  40. all intern procedures for the system unit
  41. }
  42. begin
  43. p.insert(tsyssym.create('Concat',in_concat_x));
  44. p.insert(tsyssym.create('Write',in_write_x));
  45. p.insert(tsyssym.create('WriteLn',in_writeln_x));
  46. p.insert(tsyssym.create('Assigned',in_assigned_x));
  47. p.insert(tsyssym.create('Read',in_read_x));
  48. p.insert(tsyssym.create('ReadLn',in_readln_x));
  49. p.insert(tsyssym.create('Ofs',in_ofs_x));
  50. p.insert(tsyssym.create('SizeOf',in_sizeof_x));
  51. p.insert(tsyssym.create('TypeOf',in_typeof_x));
  52. p.insert(tsyssym.create('Low',in_low_x));
  53. p.insert(tsyssym.create('High',in_high_x));
  54. p.insert(tsyssym.create('Seg',in_seg_x));
  55. p.insert(tsyssym.create('Ord',in_ord_x));
  56. p.insert(tsyssym.create('Pred',in_pred_x));
  57. p.insert(tsyssym.create('Succ',in_succ_x));
  58. p.insert(tsyssym.create('Exclude',in_exclude_x_y));
  59. p.insert(tsyssym.create('Include',in_include_x_y));
  60. p.insert(tsyssym.create('Break',in_break));
  61. p.insert(tsyssym.create('Exit',in_exit));
  62. p.insert(tsyssym.create('Continue',in_continue));
  63. p.insert(tsyssym.create('Dec',in_dec_x));
  64. p.insert(tsyssym.create('Inc',in_inc_x));
  65. p.insert(tsyssym.create('Str',in_str_x_string));
  66. p.insert(tsyssym.create('Assert',in_assert_x_y));
  67. p.insert(tsyssym.create('Val',in_val_x));
  68. p.insert(tsyssym.create('Addr',in_addr_x));
  69. p.insert(tsyssym.create('TypeInfo',in_typeinfo_x));
  70. p.insert(tsyssym.create('SetLength',in_setlength_x));
  71. p.insert(tsyssym.create('Copy',in_copy_x));
  72. p.insert(tsyssym.create('Finalize',in_finalize_x));
  73. p.insert(tsyssym.create('Length',in_length_x));
  74. p.insert(tsyssym.create('New',in_new_x));
  75. p.insert(tsyssym.create('Dispose',in_dispose_x));
  76. end;
  77. procedure insert_intern_types(p : tsymtable);
  78. {
  79. all the types inserted into the system unit
  80. }
  81. function addtype(const s:string;const t:ttype):ttypesym;
  82. begin
  83. result:=ttypesym.create(s,t);
  84. p.insert(result);
  85. { add init/final table if required }
  86. if t.def.needs_inittable then
  87. generate_inittable(result);
  88. end;
  89. procedure adddef(const s:string;def:tdef);
  90. var
  91. t : ttype;
  92. begin
  93. t.setdef(def);
  94. p.insert(ttypesym.create(s,t));
  95. end;
  96. var
  97. { several defs to simulate more or less C++ objects for GDB }
  98. vmttype,
  99. vmtarraytype : ttype;
  100. vmtsymtable : tsymtable;
  101. begin
  102. { Normal types }
  103. if (cs_fp_emulation in aktmoduleswitches) then
  104. begin
  105. addtype('Single',s32floattype);
  106. { extended size is the best real type for the target }
  107. addtype('Real',s32floattype);
  108. pbestrealtype:=@s32floattype;
  109. end
  110. else
  111. begin
  112. addtype('Single',s32floattype);
  113. addtype('Double',s64floattype);
  114. { extended size is the best real type for the target }
  115. addtype('Extended',pbestrealtype^);
  116. addtype('Real',s64floattype);
  117. end;
  118. {$ifdef x86}
  119. adddef('Comp',tfloatdef.create(s64comp));
  120. {$endif x86}
  121. addtype('Currency',s64currencytype);
  122. addtype('Pointer',voidpointertype);
  123. addtype('FarPointer',voidfarpointertype);
  124. addtype('ShortString',cshortstringtype);
  125. addtype('LongString',clongstringtype);
  126. addtype('AnsiString',cansistringtype);
  127. addtype('WideString',cwidestringtype);
  128. addtype('Boolean',booltype);
  129. addtype('ByteBool',booltype);
  130. adddef('WordBool',torddef.create(bool16bit,0,1));
  131. adddef('LongBool',torddef.create(bool32bit,0,1));
  132. addtype('Char',cchartype);
  133. addtype('WideChar',cwidechartype);
  134. adddef('Text',tfiledef.createtext);
  135. addtype('Longword',u32bittype);
  136. addtype('QWord',cu64bittype);
  137. addtype('Int64',cs64bittype);
  138. adddef('TypedFile',tfiledef.createtyped(voidtype));
  139. addtype('Variant',cvarianttype);
  140. { Internal types }
  141. addtype('$formal',cformaltype);
  142. addtype('$void',voidtype);
  143. addtype('$byte',u8bittype);
  144. addtype('$word',u16bittype);
  145. addtype('$ulong',u32bittype);
  146. addtype('$longint',s32bittype);
  147. addtype('$qword',cu64bittype);
  148. addtype('$int64',cs64bittype);
  149. addtype('$char',cchartype);
  150. addtype('$widechar',cwidechartype);
  151. addtype('$shortstring',cshortstringtype);
  152. addtype('$longstring',clongstringtype);
  153. addtype('$ansistring',cansistringtype);
  154. addtype('$widestring',cwidestringtype);
  155. addtype('$openshortstring',openshortstringtype);
  156. addtype('$boolean',booltype);
  157. addtype('$void_pointer',voidpointertype);
  158. addtype('$char_pointer',charpointertype);
  159. addtype('$void_farpointer',voidfarpointertype);
  160. addtype('$openchararray',openchararraytype);
  161. addtype('$file',cfiletype);
  162. addtype('$variant',cvarianttype);
  163. addtype('$s32real',s32floattype);
  164. addtype('$s64real',s64floattype);
  165. addtype('$s80real',s80floattype);
  166. addtype('$s64currency',s64currencytype);
  167. { Add a type for virtual method tables }
  168. vmtsymtable:=trecordsymtable.create;
  169. vmttype.setdef(trecorddef.create(vmtsymtable));
  170. pvmttype.setdef(tpointerdef.create(vmttype));
  171. vmtsymtable.insert(tvarsym.create('$parent',pvmttype));
  172. vmtsymtable.insert(tvarsym.create('$length',s32bittype));
  173. vmtsymtable.insert(tvarsym.create('$mlength',s32bittype));
  174. vmtarraytype.setdef(tarraydef.create(0,1,s32bittype));
  175. tarraydef(vmtarraytype.def).setelementtype(voidpointertype);
  176. vmtsymtable.insert(tvarsym.create('$__pfn',vmtarraytype));
  177. addtype('$__vtbl_ptr_type',vmttype);
  178. addtype('$pvmt',pvmttype);
  179. vmtarraytype.setdef(tarraydef.create(0,1,s32bittype));
  180. tarraydef(vmtarraytype.def).setelementtype(pvmttype);
  181. addtype('$vtblarray',vmtarraytype);
  182. { Add functions that require compiler magic }
  183. insertinternsyms(p);
  184. end;
  185. procedure readconstdefs;
  186. {
  187. Load all default definitions for consts from the system unit
  188. }
  189. begin
  190. globaldef('byte',u8bittype);
  191. globaldef('word',u16bittype);
  192. globaldef('ulong',u32bittype);
  193. globaldef('longint',s32bittype);
  194. globaldef('qword',cu64bittype);
  195. globaldef('int64',cs64bittype);
  196. globaldef('formal',cformaltype);
  197. globaldef('void',voidtype);
  198. globaldef('char',cchartype);
  199. globaldef('widechar',cwidechartype);
  200. globaldef('shortstring',cshortstringtype);
  201. globaldef('longstring',clongstringtype);
  202. globaldef('ansistring',cansistringtype);
  203. globaldef('widestring',cwidestringtype);
  204. globaldef('openshortstring',openshortstringtype);
  205. globaldef('openchararray',openchararraytype);
  206. globaldef('s32real',s32floattype);
  207. globaldef('s64real',s64floattype);
  208. globaldef('s80real',s80floattype);
  209. globaldef('s64currency',s64currencytype);
  210. globaldef('boolean',booltype);
  211. globaldef('void_pointer',voidpointertype);
  212. globaldef('char_pointer',charpointertype);
  213. globaldef('void_farpointer',voidfarpointertype);
  214. globaldef('file',cfiletype);
  215. globaldef('pvmt',pvmttype);
  216. globaldef('variant',cvarianttype);
  217. {$ifdef i386}
  218. ordpointertype:=u32bittype;
  219. {$endif i386}
  220. {$ifdef x86_64}
  221. ordpointertype:=cu64bittype;
  222. {$endif x86_64}
  223. {$ifdef powerpc}
  224. ordpointertype:=u32bittype;
  225. {$endif powerpc}
  226. {$ifdef sparc}
  227. ordpointertype:=u32bittype;
  228. {$endif sparc}
  229. {$ifdef m68k}
  230. ordpointertype:=u32bittype;
  231. {$endif}
  232. end;
  233. procedure createconstdefs;
  234. {
  235. Create all default definitions for consts for the system unit
  236. }
  237. var
  238. oldregisterdef : boolean;
  239. begin
  240. { create definitions for constants }
  241. oldregisterdef:=registerdef;
  242. registerdef:=false;
  243. cformaltype.setdef(tformaldef.create);
  244. voidtype.setdef(torddef.create(uvoid,0,0));
  245. u8bittype.setdef(torddef.create(u8bit,0,255));
  246. u16bittype.setdef(torddef.create(u16bit,0,65535));
  247. u32bittype.setdef(torddef.create(u32bit,0,high(longword)));
  248. s32bittype.setdef(torddef.create(s32bit,low(longint),high(longint)));
  249. cu64bittype.setdef(torddef.create(u64bit,low(qword),TConstExprInt(high(qword))));
  250. cs64bittype.setdef(torddef.create(s64bit,low(int64),high(int64)));
  251. booltype.setdef(torddef.create(bool8bit,0,1));
  252. cchartype.setdef(torddef.create(uchar,0,255));
  253. cwidechartype.setdef(torddef.create(uwidechar,0,65535));
  254. cshortstringtype.setdef(tstringdef.createshort(255));
  255. { should we give a length to the default long and ansi string definition ?? }
  256. clongstringtype.setdef(tstringdef.createlong(-1));
  257. cansistringtype.setdef(tstringdef.createansi(-1));
  258. cwidestringtype.setdef(tstringdef.createwide(-1));
  259. { length=0 for shortstring is open string (needed for readln(string) }
  260. openshortstringtype.setdef(tstringdef.createshort(0));
  261. openchararraytype.setdef(tarraydef.create(0,-1,s32bittype));
  262. tarraydef(openchararraytype.def).setelementtype(cchartype);
  263. {$ifdef x86}
  264. {$ifdef i386}
  265. ordpointertype:=u32bittype;
  266. {$endif i386}
  267. {$ifdef x86_64}
  268. ordpointertype:=cu64bittype;
  269. {$endif x86_64}
  270. s32floattype.setdef(tfloatdef.create(s32real));
  271. s64floattype.setdef(tfloatdef.create(s64real));
  272. s80floattype.setdef(tfloatdef.create(s80real));
  273. {$endif x86}
  274. {$ifdef powerpc}
  275. ordpointertype:=u32bittype;
  276. s32floattype.setdef(tfloatdef.create(s32real));
  277. s64floattype.setdef(tfloatdef.create(s64real));
  278. s80floattype.setdef(tfloatdef.create(s80real));
  279. {$endif powerpc}
  280. {$ifdef sparc}
  281. ordpointertype:=u32bittype;
  282. s32floattype.setdef(tfloatdef.create(s32real));
  283. s64floattype.setdef(tfloatdef.create(s64real));
  284. s80floattype.setdef(tfloatdef.create(s80real));
  285. {$endif sparc}
  286. {$ifdef m68k}
  287. ordpointertype:=u32bittype;
  288. s32floattype.setdef(tfloatdef.create(s32real));
  289. s64floattype.setdef(tfloatdef.create(s64real));
  290. s80floattype.setdef(tfloatdef.create(s80real));
  291. {$endif}
  292. s64currencytype.setdef(tfloatdef.create(s64currency));
  293. { some other definitions }
  294. voidpointertype.setdef(tpointerdef.create(voidtype));
  295. charpointertype.setdef(tpointerdef.create(cchartype));
  296. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  297. cfiletype.setdef(tfiledef.createuntyped);
  298. cvarianttype.setdef(tvariantdef.create);
  299. registerdef:=oldregisterdef;
  300. end;
  301. procedure registernodes;
  302. {
  303. Register all possible nodes in the nodeclass array that
  304. will be used for loading the nodes from a ppu
  305. }
  306. begin
  307. nodeclass[addn]:=caddnode;
  308. nodeclass[muln]:=caddnode;
  309. nodeclass[subn]:=caddnode;
  310. nodeclass[divn]:=cmoddivnode;
  311. nodeclass[symdifn]:=caddnode;
  312. nodeclass[modn]:=cmoddivnode;
  313. nodeclass[assignn]:=cassignmentnode;
  314. nodeclass[loadn]:=cloadnode;
  315. nodeclass[rangen]:=crangenode;
  316. nodeclass[ltn]:=caddnode;
  317. nodeclass[lten]:=caddnode;
  318. nodeclass[gtn]:=caddnode;
  319. nodeclass[gten]:=caddnode;
  320. nodeclass[equaln]:=caddnode;
  321. nodeclass[unequaln]:=caddnode;
  322. nodeclass[inn]:=cinnode;
  323. nodeclass[orn]:=caddnode;
  324. nodeclass[xorn]:=caddnode;
  325. nodeclass[shrn]:=cshlshrnode;
  326. nodeclass[shln]:=cshlshrnode;
  327. nodeclass[slashn]:=caddnode;
  328. nodeclass[andn]:=caddnode;
  329. nodeclass[subscriptn]:=csubscriptnode;
  330. nodeclass[derefn]:=cderefnode;
  331. nodeclass[addrn]:=caddrnode;
  332. nodeclass[doubleaddrn]:=cdoubleaddrnode;
  333. nodeclass[ordconstn]:=cordconstnode;
  334. nodeclass[typeconvn]:=ctypeconvnode;
  335. nodeclass[calln]:=ccallnode;
  336. nodeclass[callparan]:=ccallparanode;
  337. nodeclass[realconstn]:=crealconstnode;
  338. nodeclass[unaryminusn]:=cunaryminusnode;
  339. nodeclass[asmn]:=casmnode;
  340. nodeclass[vecn]:=cvecnode;
  341. nodeclass[pointerconstn]:=cpointerconstnode;
  342. nodeclass[stringconstn]:=cstringconstnode;
  343. nodeclass[funcretn]:=cfuncretnode;
  344. nodeclass[selfn]:=cselfnode;
  345. nodeclass[notn]:=cnotnode;
  346. nodeclass[inlinen]:=cinlinenode;
  347. nodeclass[niln]:=cnilnode;
  348. nodeclass[errorn]:=cerrornode;
  349. nodeclass[typen]:=ctypenode;
  350. nodeclass[hnewn]:=chnewnode;
  351. nodeclass[hdisposen]:=chdisposenode;
  352. nodeclass[setelementn]:=csetelementnode;
  353. nodeclass[setconstn]:=csetconstnode;
  354. nodeclass[blockn]:=cblocknode;
  355. nodeclass[statementn]:=cstatementnode;
  356. nodeclass[ifn]:=cifnode;
  357. nodeclass[breakn]:=cbreaknode;
  358. nodeclass[continuen]:=ccontinuenode;
  359. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  360. nodeclass[forn]:=cfornode;
  361. nodeclass[exitn]:=cexitnode;
  362. nodeclass[withn]:=cwithnode;
  363. nodeclass[casen]:=ccasenode;
  364. nodeclass[labeln]:=clabelnode;
  365. nodeclass[goton]:=cgotonode;
  366. nodeclass[tryexceptn]:=ctryexceptnode;
  367. nodeclass[raisen]:=craisenode;
  368. nodeclass[tryfinallyn]:=ctryfinallynode;
  369. nodeclass[onn]:=connode;
  370. nodeclass[isn]:=cisnode;
  371. nodeclass[asn]:=casnode;
  372. nodeclass[caretn]:=caddnode;
  373. nodeclass[failn]:=cfailnode;
  374. nodeclass[starstarn]:=caddnode;
  375. nodeclass[procinlinen]:=cprocinlinenode;
  376. nodeclass[arrayconstructorn]:=carrayconstructornode;
  377. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  378. nodeclass[tempcreaten]:=ctempcreatenode;
  379. nodeclass[temprefn]:=ctemprefnode;
  380. nodeclass[tempdeleten]:=ctempdeletenode;
  381. nodeclass[addoptn]:=caddnode;
  382. nodeclass[nothingn]:=cnothingnode;
  383. nodeclass[loadvmtn]:=cloadvmtnode;
  384. nodeclass[guidconstn]:=cguidconstnode;
  385. nodeclass[rttin]:=crttinode;
  386. end;
  387. procedure registertais;
  388. {
  389. Register all possible tais in the taiclass array that
  390. will be used for loading the tais from a ppu
  391. }
  392. begin
  393. aiclass[ait_none]:=nil;
  394. aiclass[ait_align]:=tai_align;
  395. aiclass[ait_section]:=tai_section;
  396. aiclass[ait_comment]:=tai_comment;
  397. aiclass[ait_direct]:=tai_direct;
  398. aiclass[ait_string]:=tai_string;
  399. aiclass[ait_instruction]:=taicpu;
  400. aiclass[ait_datablock]:=tai_datablock;
  401. aiclass[ait_symbol]:=tai_symbol;
  402. aiclass[ait_symbol_end]:=tai_symbol_end;
  403. aiclass[ait_label]:=tai_label;
  404. aiclass[ait_const_32bit]:=tai_const;
  405. aiclass[ait_const_16bit]:=tai_const;
  406. aiclass[ait_const_8bit]:=tai_const;
  407. aiclass[ait_const_symbol]:=tai_const_symbol;
  408. aiclass[ait_const_rva]:=tai_const_symbol;
  409. aiclass[ait_real_32bit]:=tai_real_32bit;
  410. aiclass[ait_real_64bit]:=tai_real_64bit;
  411. aiclass[ait_real_80bit]:=tai_real_80bit;
  412. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  413. {$ifdef GDB}
  414. aiclass[ait_stabn]:=tai_stabn;
  415. aiclass[ait_stabs]:=tai_stabs;
  416. aiclass[ait_force_line]:=tai_force_line;
  417. aiclass[ait_stab_function_name]:=tai_stab_function_name;
  418. {$endif GDB}
  419. {$ifdef alpha}
  420. { the follow is for the DEC Alpha }
  421. aiclass[ait_frame]:=tai_frame;
  422. aiclass[ait_ent]:=tai_ent;
  423. {$endif alpha}
  424. {$ifdef m68k}
  425. {$warning FIXME: tai_labeled_instruction doesn't exists}
  426. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  427. {$endif m68k}
  428. {$ifdef ia64}
  429. aiclass[ait_bundle]:=tai_bundle;
  430. aiclass[ait_stop]:=tai_stop;
  431. {$endif ia64}
  432. {$ifdef SPARC}
  433. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  434. {$endif SPARC}
  435. aiclass[ait_cut]:=tai_cut;
  436. aiclass[ait_regalloc]:=tai_regalloc;
  437. aiclass[ait_tempalloc]:=tai_tempalloc;
  438. aiclass[ait_marker]:=tai_marker;
  439. end;
  440. end.
  441. {
  442. $Log$
  443. Revision 1.41 2002-10-02 18:20:53 peter
  444. * Copy() is now internal syssym that calls compilerprocs
  445. Revision 1.40 2002/09/27 21:13:29 carl
  446. * low-highval always checked if limit ober 2GB is reached (to avoid overflow)
  447. Revision 1.39 2002/09/07 20:46:10 carl
  448. * cardinal -> longword
  449. Revision 1.38 2002/08/23 13:11:11 mazen
  450. fixed compilation problem related to tai_labeled_instruction
  451. Revision 1.37 2002/08/18 20:06:25 peter
  452. * inlining is now also allowed in interface
  453. * renamed write/load to ppuwrite/ppuload
  454. * tnode storing in ppu
  455. * nld,ncon,nbas are already updated for storing in ppu
  456. Revision 1.36 2002/08/15 19:10:35 peter
  457. * first things tai,tnode storing in ppu
  458. Revision 1.35 2002/08/14 19:14:39 carl
  459. + fpu emulation support (generic and untested)
  460. Revision 1.34 2002/08/13 18:01:52 carl
  461. * rename swatoperands to swapoperands
  462. + m68k first compilable version (still needs a lot of testing):
  463. assembler generator, system information , inline
  464. assembler reader.
  465. Revision 1.33 2002/08/11 15:28:00 florian
  466. + support of explicit type case <any ordinal type>->pointer
  467. (delphi mode only)
  468. Revision 1.32 2002/07/25 17:54:24 carl
  469. + Extended is now CPU dependant (equal to bestrealtype)
  470. Revision 1.30 2002/07/07 09:52:32 florian
  471. * powerpc target fixed, very simple units can be compiled
  472. * some basic stuff for better callparanode handling, far from being finished
  473. Revision 1.29 2002/07/06 20:18:47 carl
  474. + more SPARC patches from Mazen
  475. Revision 1.28 2002/07/04 20:43:02 florian
  476. * first x86-64 patches
  477. Revision 1.27 2002/07/01 16:23:54 peter
  478. * cg64 patch
  479. * basics for currency
  480. * asnode updates for class and interface (not finished)
  481. Revision 1.26 2002/05/18 13:34:16 peter
  482. * readded missing revisions
  483. Revision 1.25 2002/05/16 19:46:44 carl
  484. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  485. + try to fix temp allocation (still in ifdef)
  486. + generic constructor calls
  487. + start of tassembler / tmodulebase class cleanup
  488. Revision 1.23 2002/05/12 16:53:09 peter
  489. * moved entry and exitcode to ncgutil and cgobj
  490. * foreach gets extra argument for passing local data to the
  491. iterator function
  492. * -CR checks also class typecasts at runtime by changing them
  493. into as
  494. * fixed compiler to cycle with the -CR option
  495. * fixed stabs with elf writer, finally the global variables can
  496. be watched
  497. * removed a lot of routines from cga unit and replaced them by
  498. calls to cgobj
  499. * u32bit-s32bit updates for and,or,xor nodes. When one element is
  500. u32bit then the other is typecasted also to u32bit without giving
  501. a rangecheck warning/error.
  502. * fixed pascal calling method with reversing also the high tree in
  503. the parast, detected by tcalcst3 test
  504. Revision 1.22 2002/01/24 12:33:53 jonas
  505. * adapted ranges of native types to int64 (e.g. high cardinal is no
  506. longer longint($ffffffff), but just $fffffff in psystem)
  507. * small additional fix in 64bit rangecheck code generation for 32 bit
  508. processors
  509. * adaption of ranges required the matching talgorithm used for selecting
  510. which overloaded procedure to call to be adapted. It should now always
  511. select the closest match for ordinal parameters.
  512. + inttostr(qword) in sysstr.inc/sysstrh.inc
  513. + abs(int64), sqr(int64), sqr(qword) in systemh.inc/generic.inc (previous
  514. fixes were required to be able to add them)
  515. * is_in_limit() moved from ncal to types unit, should always be used
  516. instead of direct comparisons of low/high values of orddefs because
  517. qword is a special case
  518. }