cgi386.pas 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. {
  2. $Id$
  3. Copyright (c) 1993-98 by Florian Klaempfl
  4. This unit generates i386 (or better) assembler from the parse tree
  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. {$ifdef TP}
  19. {$E+,F+,N+,D+,L+,Y+}
  20. {$endif}
  21. unit cgi386;
  22. interface
  23. uses
  24. tree;
  25. { produces assembler for the expression in variable p }
  26. { and produces an assembler node at the end }
  27. procedure generatecode(var p : ptree);
  28. { produces the actual code }
  29. function do_secondpass(var p : ptree) : boolean;
  30. procedure secondpass(var p : ptree);
  31. {$ifdef test_dest_loc}
  32. const
  33. { used to avoid temporary assignments }
  34. dest_loc_known : boolean = false;
  35. in_dest_loc : boolean = false;
  36. dest_loc_tree : ptree = nil;
  37. var
  38. dest_loc : tlocation;
  39. procedure mov_reg_to_dest(p : ptree; s : topsize; reg : tregister);
  40. {$endif test_dest_loc}
  41. implementation
  42. uses
  43. cobjects,verbose,comphook,systems,globals,files,
  44. symtable,types,aasm,scanner,
  45. pass_1,hcodegen,temp_gen
  46. {$ifdef GDB}
  47. ,gdb
  48. {$endif}
  49. {$ifdef i386}
  50. ,i386,tgeni386,cgai386
  51. ,cg386con,cg386mat,cg386cnv,cg386set,cg386add
  52. ,cg386mem,cg386cal,cg386ld,cg386flw,cg386inl
  53. {$endif}
  54. ;
  55. {$ifdef test_dest_loc}
  56. procedure mov_reg_to_dest(p : ptree; s : topsize; reg : tregister);
  57. begin
  58. if (dest_loc.loc=LOC_CREGISTER) or (dest_loc.loc=LOC_REGISTER) then
  59. begin
  60. emit_reg_reg(A_MOV,s,reg,dest_loc.register);
  61. p^.location:=dest_loc;
  62. in_dest_loc:=true;
  63. end
  64. else
  65. if (dest_loc.loc=LOC_REFERENCE) or (dest_loc.loc=LOC_MEM) then
  66. begin
  67. exprasmlist^.concat(new(pai386,op_reg_ref(A_MOV,s,reg,newreference(dest_loc.reference))));
  68. p^.location:=dest_loc;
  69. in_dest_loc:=true;
  70. end
  71. else
  72. internalerror(20080);
  73. end;
  74. {$endif test_dest_loc}
  75. procedure message(const t : tmsgconst);
  76. var
  77. olderrorcount : longint;
  78. begin
  79. if not(codegenerror) then
  80. begin
  81. olderrorcount:=status.errorcount;
  82. verbose.Message(t);
  83. codegenerror:=olderrorcount<>status.errorcount;
  84. end;
  85. end;
  86. procedure message1(const t : tmsgconst;const s : string);
  87. var
  88. olderrorcount : longint;
  89. begin
  90. if not(codegenerror) then
  91. begin
  92. olderrorcount:=status.errorcount;
  93. verbose.Message1(t,s);
  94. codegenerror:=olderrorcount<>status.errorcount;
  95. end;
  96. end;
  97. procedure message2(const t : tmsgconst;const s1,s2 : string);
  98. var
  99. olderrorcount : longint;
  100. begin
  101. if not(codegenerror) then
  102. begin
  103. olderrorcount:=status.errorcount;
  104. verbose.Message2(t,s1,s2);
  105. codegenerror:=olderrorcount<>status.errorcount;
  106. end;
  107. end;
  108. procedure message3(const t : tmsgconst;const s1,s2,s3 : string);
  109. var
  110. olderrorcount : longint;
  111. begin
  112. if not(codegenerror) then
  113. begin
  114. olderrorcount:=status.errorcount;
  115. verbose.Message3(t,s1,s2,s3);
  116. codegenerror:=olderrorcount<>status.errorcount;
  117. end;
  118. end;
  119. {*****************************************************************************
  120. SecondPass
  121. *****************************************************************************}
  122. type
  123. secondpassproc = procedure(var p : ptree);
  124. procedure secondnothing(var p : ptree);
  125. begin
  126. end;
  127. procedure seconderror(var p : ptree);
  128. begin
  129. p^.error:=true;
  130. codegenerror:=true;
  131. end;
  132. procedure secondstatement(var p : ptree);
  133. var
  134. hp : ptree;
  135. begin
  136. hp:=p;
  137. while assigned(hp) do
  138. begin
  139. if assigned(hp^.right) then
  140. begin
  141. cleartempgen;
  142. secondpass(hp^.right);
  143. end;
  144. hp:=hp^.left;
  145. end;
  146. end;
  147. procedure secondblockn(var p : ptree);
  148. begin
  149. { do second pass on left node }
  150. if assigned(p^.left) then
  151. secondpass(p^.left);
  152. end;
  153. procedure secondasm(var p : ptree);
  154. begin
  155. exprasmlist^.concatlist(p^.p_asm);
  156. if not p^.object_preserved then
  157. maybe_loadesi;
  158. end;
  159. procedure secondpass(var p : ptree);
  160. const
  161. procedures : array[ttreetyp] of secondpassproc =
  162. (secondadd,secondadd,secondadd,secondmoddiv,secondadd,
  163. secondmoddiv,secondassignment,secondload,secondnothing,
  164. secondadd,secondadd,secondadd,secondadd,
  165. secondadd,secondadd,secondin,secondadd,
  166. secondadd,secondshlshr,secondshlshr,secondadd,
  167. secondadd,secondsubscriptn,secondderef,secondaddr,
  168. seconddoubleaddr,
  169. secondordconst,secondtypeconv,secondcalln,secondnothing,
  170. secondrealconst,secondfixconst,secondumminus,
  171. secondasm,secondvecn,
  172. secondstringconst,secondfuncret,secondselfn,
  173. secondnot,secondinline,secondniln,seconderror,
  174. secondnothing,secondhnewn,secondhdisposen,secondnewn,
  175. secondsimplenewdispose,secondsetelement,secondsetconst,secondblockn,
  176. secondstatement,secondnothing,secondifn,secondbreakn,
  177. secondcontinuen,second_while_repeatn,second_while_repeatn,secondfor,
  178. secondexitn,secondwith,secondcase,secondlabel,
  179. secondgoto,secondsimplenewdispose,secondtryexcept,
  180. secondraise,
  181. secondnothing,secondtryfinally,secondon,secondis,
  182. secondas,seconderror,
  183. secondfail,secondadd,secondprocinline,
  184. secondnothing,secondloadvmt);
  185. var
  186. oldcodegenerror : boolean;
  187. oldlocalswitches : tlocalswitches;
  188. oldpos : tfileposinfo;
  189. begin
  190. oldcodegenerror:=codegenerror;
  191. oldlocalswitches:=aktlocalswitches;
  192. oldpos:=aktfilepos;
  193. aktfilepos:=p^.fileinfo;
  194. aktlocalswitches:=p^.localswitches;
  195. if not(p^.error) then
  196. begin
  197. codegenerror:=false;
  198. procedures[p^.treetype](p);
  199. p^.error:=codegenerror;
  200. codegenerror:=codegenerror or oldcodegenerror;
  201. end
  202. else
  203. codegenerror:=true;
  204. aktlocalswitches:=oldlocalswitches;
  205. aktfilepos:=oldpos;
  206. end;
  207. function do_secondpass(var p : ptree) : boolean;
  208. begin
  209. codegenerror:=false;
  210. if not(p^.error) then
  211. secondpass(p);
  212. do_secondpass:=codegenerror;
  213. end;
  214. var
  215. regvars : array[1..maxvarregs] of pvarsym;
  216. regvars_para : array[1..maxvarregs] of boolean;
  217. regvars_refs : array[1..maxvarregs] of longint;
  218. parasym : boolean;
  219. procedure searchregvars(p : psym);
  220. var
  221. i,j,k : longint;
  222. begin
  223. if (p^.typ=varsym) and ((pvarsym(p)^.var_options and vo_regable)<>0) then
  224. begin
  225. { walk through all momentary register variables }
  226. for i:=1 to maxvarregs do
  227. begin
  228. { free register ? }
  229. if regvars[i]=nil then
  230. begin
  231. regvars[i]:=pvarsym(p);
  232. regvars_para[i]:=parasym;
  233. break;
  234. end;
  235. { else throw out a variable ? }
  236. j:=pvarsym(p)^.refs;
  237. { parameter get a less value }
  238. if parasym then
  239. begin
  240. if cs_littlesize in aktglobalswitches then
  241. dec(j,1)
  242. else
  243. dec(j,100);
  244. end;
  245. if (j>regvars_refs[i]) and (j>0) then
  246. begin
  247. for k:=maxvarregs-1 downto i do
  248. begin
  249. regvars[k+1]:=regvars[k];
  250. regvars_para[k+1]:=regvars_para[k];
  251. end;
  252. { calc the new refs
  253. pvarsym(p)^.refs:=j; }
  254. regvars[i]:=pvarsym(p);
  255. regvars_para[i]:=parasym;
  256. regvars_refs[i]:=j;
  257. break;
  258. end;
  259. end;
  260. end;
  261. end;
  262. procedure generatecode(var p : ptree);
  263. var
  264. i : longint;
  265. regsize : topsize;
  266. regi : tregister;
  267. hr : preference;
  268. label
  269. nextreg;
  270. begin
  271. cleartempgen;
  272. { when size optimization only count occurrence }
  273. if cs_littlesize in aktglobalswitches then
  274. t_times:=1
  275. else
  276. { reference for repetition is 100 }
  277. t_times:=100;
  278. { clear register count }
  279. {$ifdef SUPPORT_MMX}
  280. for regi:=R_EAX to R_MM6 do
  281. begin
  282. reg_pushes[regi]:=0;
  283. is_reg_var[regi]:=false;
  284. end;
  285. {$else SUPPORT_MMX}
  286. for regi:=R_EAX to R_EDI do
  287. begin
  288. reg_pushes[regi]:=0;
  289. is_reg_var[regi]:=false;
  290. end;
  291. {$endif SUPPORT_MMX}
  292. use_esp_stackframe:=false;
  293. if not(do_firstpass(p)) then
  294. begin
  295. { max. optimizations }
  296. { only if no asm is used }
  297. { and no try statement }
  298. if (cs_regalloc in aktglobalswitches) and
  299. ((procinfo.flags and (pi_uses_asm or pi_uses_exceptions))=0) then
  300. begin
  301. { can we omit the stack frame ? }
  302. { conditions:
  303. 1. procedure (not main block)
  304. 2. no constructor or destructor
  305. 3. no call to other procedures
  306. 4. no interrupt handler
  307. }
  308. if assigned(aktprocsym) then
  309. begin
  310. if (aktprocsym^.definition^.options and
  311. (poconstructor+podestructor{+poinline}+pointerrupt)=0) and
  312. ((procinfo.flags and pi_do_call)=0) and (lexlevel>1) then
  313. begin
  314. { use ESP as frame pointer }
  315. procinfo.framepointer:=R_ESP;
  316. use_esp_stackframe:=true;
  317. { calc parameter distance new }
  318. dec(procinfo.framepointer_offset,4);
  319. dec(procinfo.ESI_offset,4);
  320. { is this correct ???}
  321. { retoffset can be negativ for results in eax !! }
  322. { the value should be decreased only if positive }
  323. if procinfo.retoffset>=0 then
  324. dec(procinfo.retoffset,4);
  325. dec(procinfo.call_offset,4);
  326. aktprocsym^.definition^.parast^.call_offset:=procinfo.call_offset;
  327. end;
  328. end;
  329. if (p^.registers32<4) then
  330. begin
  331. for i:=1 to maxvarregs do
  332. regvars[i]:=nil;
  333. parasym:=false;
  334. {$ifdef tp}
  335. symtablestack^.foreach(searchregvars);
  336. {$else}
  337. symtablestack^.foreach(@searchregvars);
  338. {$endif}
  339. { copy parameter into a register ? }
  340. parasym:=true;
  341. {$ifdef tp}
  342. symtablestack^.next^.foreach(searchregvars);
  343. {$else}
  344. symtablestack^.next^.foreach(@searchregvars);
  345. {$endif}
  346. { hold needed registers free }
  347. for i:=maxvarregs downto maxvarregs-p^.registers32+1 do
  348. regvars[i]:=nil;
  349. { now assign register }
  350. for i:=1 to maxvarregs-p^.registers32 do
  351. begin
  352. if assigned(regvars[i]) then
  353. begin
  354. { it is nonsens, to copy the variable to }
  355. { a register because we need then much }
  356. { pushes ? }
  357. if reg_pushes[varregs[i]]>=regvars[i]^.refs then
  358. begin
  359. regvars[i]:=nil;
  360. goto nextreg;
  361. end;
  362. { register is no longer available for }
  363. { expressions }
  364. { search the register which is the most }
  365. { unused }
  366. usableregs:=usableregs-[varregs[i]];
  367. is_reg_var[varregs[i]]:=true;
  368. dec(c_usableregs);
  369. { possibly no 32 bit register are needed }
  370. { call by reference/const ? }
  371. if (regvars[i]^.varspez=vs_var) or
  372. ((regvars[i]^.varspez=vs_const) and
  373. dont_copy_const_param(regvars[i]^.definition)
  374. ) then
  375. begin
  376. regvars[i]^.reg:=varregs[i];
  377. regsize:=S_L;
  378. end
  379. else if (regvars[i]^.definition^.deftype=orddef) and
  380. (porddef(regvars[i]^.definition)^.typ in [bool8bit,uchar,u8bit,s8bit]) then
  381. begin
  382. regvars[i]^.reg:=reg32toreg8(varregs[i]);
  383. regsize:=S_B;
  384. end
  385. else if (regvars[i]^.definition^.deftype=orddef) and
  386. (porddef(regvars[i]^.definition)^.typ in [bool16bit,u16bit,s16bit]) then
  387. begin
  388. regvars[i]^.reg:=reg32toreg16(varregs[i]);
  389. regsize:=S_W;
  390. end
  391. else
  392. begin
  393. regvars[i]^.reg:=varregs[i];
  394. regsize:=S_L;
  395. end;
  396. { parameter must be load }
  397. if regvars_para[i] then
  398. begin
  399. { procinfo is there actual, }
  400. { because we can't never be in a }
  401. { nested procedure }
  402. { when loading parameter to reg }
  403. new(hr);
  404. reset_reference(hr^);
  405. hr^.offset:=pvarsym(regvars[i])^.address+procinfo.call_offset;
  406. hr^.base:=procinfo.framepointer;
  407. procinfo.aktentrycode^.concat(new(pai386,op_ref_reg(A_MOV,regsize,
  408. hr,regvars[i]^.reg)));
  409. unused:=unused - [regvars[i]^.reg];
  410. end;
  411. { procedure uses this register }
  412. usedinproc:=usedinproc or ($80 shr byte(varregs[i]));
  413. end;
  414. nextreg:
  415. { dummy }
  416. regsize:=S_W;
  417. end;
  418. if (status.verbosity and v_debug)=v_debug then
  419. begin
  420. for i:=1 to maxvarregs do
  421. begin
  422. if assigned(regvars[i]) then
  423. Message3(cg_d_register_weight,reg2str(regvars[i]^.reg),
  424. tostr(regvars[i]^.refs),regvars[i]^.name);
  425. end;
  426. end;
  427. end;
  428. end;
  429. if assigned(aktprocsym) and
  430. ((aktprocsym^.definition^.options and poinline)<>0) then
  431. make_const_global:=true;
  432. do_secondpass(p);
  433. {$ifdef StoreFPULevel}
  434. procinfo.def^.fpu_used:=p^.registersfpu;
  435. {$endif StoreFPULevel}
  436. { all registers can be used again }
  437. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX];
  438. {$ifdef SUPPORT_MMX}
  439. usableregs:=usableregs+[R_MM0..R_MM6];
  440. {$endif SUPPORT_MMX}
  441. c_usableregs:=4;
  442. end;
  443. procinfo.aktproccode^.concatlist(exprasmlist);
  444. make_const_global:=false;
  445. end;
  446. end.
  447. {
  448. $Log$
  449. Revision 1.53 1998-09-07 18:46:03 peter
  450. * update smartlinking, uses getdatalabel
  451. * renamed ptree.value vars to value_str,value_real,value_set
  452. Revision 1.52 1998/09/05 23:03:58 florian
  453. * some fixes to get -Or work:
  454. - inc/dec didn't take care of CREGISTER
  455. - register calculcation of inc/dec was wrong
  456. - var/const parameters get now assigned 32 bit register, but
  457. const parameters only if they are passed by reference !
  458. Revision 1.51 1998/08/31 12:22:14 peter
  459. * secondinline moved to cg386inl
  460. Revision 1.50 1998/08/28 10:54:20 peter
  461. * fixed smallset generation from elements, it has never worked before!
  462. Revision 1.49 1998/08/19 16:07:42 jonas
  463. * changed optimizer switches + cleanup of DestroyRefs in daopt386.pas
  464. Revision 1.48 1998/08/14 18:18:43 peter
  465. + dynamic set contruction
  466. * smallsets are now working (always longint size)
  467. Revision 1.47 1998/08/10 14:49:53 peter
  468. + localswitches, moduleswitches, globalswitches splitting
  469. Revision 1.46 1998/08/10 10:18:23 peter
  470. + Compiler,Comphook unit which are the new interface units to the
  471. compiler
  472. Revision 1.45 1998/07/30 13:30:34 florian
  473. * final implemenation of exception support, maybe it needs
  474. some fixes :)
  475. Revision 1.44 1998/07/30 11:18:15 florian
  476. + first implementation of try ... except on .. do end;
  477. * limitiation of 65535 bytes parameters for cdecl removed
  478. Revision 1.43 1998/07/28 21:52:50 florian
  479. + implementation of raise and try..finally
  480. + some misc. exception stuff
  481. Revision 1.42 1998/07/15 16:06:44 jonas
  482. * fixed bug that caused the stackframe never to be omitted
  483. Revision 1.41 1998/07/14 14:46:44 peter
  484. * released NEWINPUT
  485. Revision 1.40 1998/07/07 11:19:52 peter
  486. + NEWINPUT for a better inputfile and scanner object
  487. Revision 1.39 1998/06/12 10:32:23 pierre
  488. * column problem hopefully solved
  489. + C vars declaration changed
  490. Revision 1.38 1998/06/09 16:01:37 pierre
  491. + added procedure directive parsing for procvars
  492. (accepted are popstack cdecl and pascal)
  493. + added C vars with the following syntax
  494. var C calias 'true_c_name';(can be followed by external)
  495. reason is that you must add the Cprefix
  496. which is target dependent
  497. Revision 1.37 1998/06/08 13:13:41 pierre
  498. + temporary variables now in temp_gen.pas unit
  499. because it is processor independent
  500. * mppc68k.bat modified to undefine i386 and support_mmx
  501. (which are defaults for i386)
  502. Revision 1.36 1998/06/05 17:49:54 peter
  503. * cleanup of cgai386
  504. Revision 1.35 1998/06/05 16:13:32 pierre
  505. * fix for real and string consts inside inlined procs
  506. Revision 1.34 1998/06/05 14:37:27 pierre
  507. * fixes for inline for operators
  508. * inline procedure more correctly restricted
  509. Revision 1.33 1998/06/04 23:51:37 peter
  510. * m68k compiles
  511. + .def file creation moved to gendef.pas so it could also be used
  512. for win32
  513. Revision 1.32 1998/06/04 09:55:35 pierre
  514. * demangled name of procsym reworked to become independant of the mangling scheme
  515. Revision 1.31 1998/06/03 22:48:52 peter
  516. + wordbool,longbool
  517. * rename bis,von -> high,low
  518. * moved some systemunit loading/creating to psystem.pas
  519. Revision 1.30 1998/06/02 17:03:00 pierre
  520. * with node corrected for objects
  521. * small bugs for SUPPORT_MMX fixed
  522. Revision 1.29 1998/06/01 16:50:18 peter
  523. + boolean -> ord conversion
  524. * fixed ord -> boolean conversion
  525. Revision 1.28 1998/05/28 17:26:47 peter
  526. * fixed -R switch, it didn't work after my previous akt/init patch
  527. * fixed bugs 110,130,136
  528. Revision 1.27 1998/05/25 17:11:38 pierre
  529. * firstpasscount bug fixed
  530. now all is already set correctly the first time
  531. under EXTDEBUG try -gp to skip all other firstpasses
  532. it works !!
  533. * small bug fixes
  534. - for smallsets with -dTESTSMALLSET
  535. - some warnings removed (by correcting code !)
  536. Revision 1.26 1998/05/23 01:21:03 peter
  537. + aktasmmode, aktoptprocessor, aktoutputformat
  538. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  539. + $LIBNAME to set the library name where the unit will be put in
  540. * splitted cgi386 a bit (codeseg to large for bp7)
  541. * nasm, tasm works again. nasm moved to ag386nsm.pas
  542. Revision 1.25 1998/05/21 19:33:31 peter
  543. + better procedure directive handling and only one table
  544. Revision 1.24 1998/05/20 09:42:33 pierre
  545. + UseTokenInfo now default
  546. * unit in interface uses and implementation uses gives error now
  547. * only one error for unknown symbol (uses lastsymknown boolean)
  548. the problem came from the label code !
  549. + first inlined procedures and function work
  550. (warning there might be allowed cases were the result is still wrong !!)
  551. * UseBrower updated gives a global list of all position of all used symbols
  552. with switch -gb
  553. Revision 1.23 1998/05/12 10:46:58 peter
  554. * moved printstatus to verb_def
  555. + V_Normal which is between V_Error and V_Warning and doesn't have a
  556. prefix like error: warning: and is included in V_Default
  557. * fixed some messages
  558. * first time parameter scan is only for -v and -T
  559. - removed old style messages
  560. Revision 1.22 1998/05/07 00:17:00 peter
  561. * smartlinking for sets
  562. + consts labels are now concated/generated in hcodegen
  563. * moved some cpu code to cga and some none cpu depended code from cga
  564. to tree and hcodegen and cleanup of hcodegen
  565. * assembling .. output reduced for smartlinking ;)
  566. Revision 1.21 1998/05/06 08:38:36 pierre
  567. * better position info with UseTokenInfo
  568. UseTokenInfo greatly simplified
  569. + added check for changed tree after first time firstpass
  570. (if we could remove all the cases were it happen
  571. we could skip all firstpass if firstpasscount > 1)
  572. Only with ExtDebug
  573. Revision 1.20 1998/05/01 16:38:44 florian
  574. * handling of private and protected fixed
  575. + change_keywords_to_tp implemented to remove
  576. keywords which aren't supported by tp
  577. * break and continue are now symbols of the system unit
  578. + widestring, longstring and ansistring type released
  579. Revision 1.19 1998/04/30 15:59:39 pierre
  580. * GDB works again better :
  581. correct type info in one pass
  582. + UseTokenInfo for better source position
  583. * fixed one remaining bug in scanner for line counts
  584. * several little fixes
  585. Revision 1.18 1998/04/29 10:33:48 pierre
  586. + added some code for ansistring (not complete nor working yet)
  587. * corrected operator overloading
  588. * corrected nasm output
  589. + started inline procedures
  590. + added starstarn : use ** for exponentiation (^ gave problems)
  591. + started UseTokenInfo cond to get accurate positions
  592. Revision 1.17 1998/04/27 23:10:27 peter
  593. + new scanner
  594. * $makelib -> if smartlink
  595. * small filename fixes pmodule.setfilename
  596. * moved import from files.pas -> import.pas
  597. Revision 1.16 1998/04/23 21:52:08 florian
  598. * fixes of Jonas applied
  599. Revision 1.15 1998/04/22 21:06:49 florian
  600. * last fixes before the release:
  601. - veryyyy slow firstcall fixed
  602. Revision 1.14 1998/04/21 10:16:47 peter
  603. * patches from strasbourg
  604. * objects is not used anymore in the fpc compiled version
  605. Revision 1.13 1998/04/14 23:27:02 florian
  606. + exclude/include with constant second parameter added
  607. Revision 1.12 1998/04/13 21:15:41 florian
  608. * error handling of pass_1 and cgi386 fixed
  609. * the following bugs fixed: 0117, 0118, 0119 and 0129, 0122 was already
  610. fixed, verified
  611. Revision 1.11 1998/04/13 08:42:51 florian
  612. * call by reference and call by value open arrays fixed
  613. Revision 1.10 1998/04/12 22:39:43 florian
  614. * problem with read access to properties solved
  615. * correct handling of hidding methods via virtual (COM)
  616. * correct result type of constructor calls (COM), the resulttype
  617. depends now on the type of the class reference
  618. Revision 1.9 1998/04/10 21:36:55 florian
  619. + some stuff to support method pointers (procedure of object) added
  620. (declaration, parameter handling)
  621. Revision 1.8 1998/04/09 22:16:33 florian
  622. * problem with previous REGALLOC solved
  623. * improved property support
  624. Revision 1.7 1998/04/09 14:28:05 jonas
  625. + basic k6 and 6x86 optimizing support (-O7 and -O8)
  626. Revision 1.6 1998/04/08 11:34:20 peter
  627. * nasm works (linux only tested)
  628. Revision 1.5 1998/04/07 22:45:04 florian
  629. * bug0092, bug0115 and bug0121 fixed
  630. + packed object/class/array
  631. Revision 1.4 1998/04/07 13:19:42 pierre
  632. * bugfixes for reset_gdb_info
  633. in MEM parsing for go32v2
  634. better external symbol creation
  635. support for rhgdb.exe (lowercase file names)
  636. }