fmodule.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the first loading and searching of the modules
  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 fmodule;
  19. {$i fpcdefs.inc}
  20. {$ifdef go32v2}
  21. {$define shortasmprefix}
  22. {$endif}
  23. {$ifdef tos}
  24. {$define shortasmprefix}
  25. {$endif}
  26. {$ifdef OS2}
  27. { Allthough OS/2 supports long filenames I play it safe and
  28. use 8.3 filenames, because this allows the compiler to run
  29. on a FAT partition. (DM) }
  30. {$define shortasmprefix}
  31. {$endif}
  32. interface
  33. uses
  34. cutils,cclasses,
  35. globals,finput,
  36. symbase,aasmbase;
  37. type
  38. trecompile_reason = (rr_unknown,
  39. rr_noppu,rr_sourcenewer,rr_build,rr_crcchanged
  40. );
  41. TExternalsItem=class(TLinkedListItem)
  42. public
  43. found : longbool;
  44. data : pstring;
  45. constructor Create(const s:string);
  46. Destructor Destroy;override;
  47. end;
  48. tlinkcontaineritem=class(tlinkedlistitem)
  49. public
  50. data : pstring;
  51. needlink : cardinal;
  52. constructor Create(const s:string;m:cardinal);
  53. destructor Destroy;override;
  54. end;
  55. tlinkcontainer=class(tlinkedlist)
  56. procedure add(const s : string;m:cardinal);
  57. function get(var m:cardinal) : string;
  58. function getusemask(mask:cardinal) : string;
  59. function find(const s:string):boolean;
  60. end;
  61. tmodule = class;
  62. tused_unit = class;
  63. tunitmap = array[0..maxunits-1] of tmodule;
  64. punitmap = ^tunitmap;
  65. tmodule = class(tmodulebase)
  66. do_reload, { force reloading of the unit }
  67. do_compile, { need to compile the sources }
  68. sources_avail, { if all sources are reachable }
  69. is_unit,
  70. in_interface, { processing the implementation part? }
  71. in_global : boolean; { allow global settings }
  72. recompile_reason : trecompile_reason; { the reason why the unit should be recompiled }
  73. crc,
  74. interface_crc : cardinal;
  75. flags : cardinal; { the PPU flags }
  76. islibrary : boolean; { if it is a library (win32 dll) }
  77. map : punitmap; { mapping of all used units }
  78. unitcount : longint; { local unit counter }
  79. globalsymtable, { pointer to the global symtable of this unit }
  80. localsymtable : tsymtable;{ pointer to the local symtable of this unit }
  81. scanner : pointer; { scanner object used }
  82. procinfo : pointer; { current procedure being compiled }
  83. loaded_from : tmodule;
  84. uses_imports : boolean; { Set if the module imports from DLL's.}
  85. imports : tlinkedlist;
  86. _exports : tlinkedlist;
  87. externals : tlinkedlist; {Only for DLL scanners by using Unix-style $LINKLIB }
  88. resourcefiles : tstringlist;
  89. linkunitofiles,
  90. linkunitstaticlibs,
  91. linkunitsharedlibs,
  92. linkotherofiles, { objects,libs loaded from the source }
  93. linkothersharedlibs, { using $L or $LINKLIB or import lib (for linux) }
  94. linkotherstaticlibs : tlinkcontainer;
  95. used_units : tlinkedlist;
  96. dependent_units : tlinkedlist;
  97. localunitsearchpath, { local searchpaths }
  98. localobjectsearchpath,
  99. localincludesearchpath,
  100. locallibrarysearchpath : TSearchPathList;
  101. asmprefix : pstring; { prefix for the smartlink asmfiles }
  102. librarydata : tasmlibrarydata; { librarydata for this module }
  103. {create creates a new module which name is stored in 's'. LoadedFrom
  104. points to the module calling it. It is nil for the first compiled
  105. module. This allow inheritence of all path lists. MUST pay attention
  106. to that when creating link.res!!!!(mazen)}
  107. constructor create(LoadedFrom:TModule;const s:string;_is_unit:boolean);
  108. destructor destroy;override;
  109. procedure reset;virtual;
  110. procedure adddependency(callermodule:tmodule);
  111. procedure flagdependent(callermodule:tmodule);
  112. function addusedunit(hp:tmodule;inuses:boolean):tused_unit;
  113. procedure numberunits;
  114. procedure setmodulename(const s:string);
  115. end;
  116. tused_unit = class(tlinkedlistitem)
  117. unitid : longint;
  118. checksum,
  119. interface_checksum : cardinal;
  120. in_uses,
  121. in_interface,
  122. is_stab_written : boolean;
  123. u : tmodule;
  124. constructor create(_u : tmodule;intface,inuses:boolean);
  125. end;
  126. tdependent_unit = class(tlinkedlistitem)
  127. u : tmodule;
  128. constructor create(_u : tmodule);
  129. end;
  130. var
  131. main_module : tmodule; { Main module of the program }
  132. current_module : tmodule; { Current module which is compiled or loaded }
  133. compiled_module : tmodule; { Current module which is compiled }
  134. usedunits : tlinkedlist; { Used units for this program }
  135. loaded_units : tlinkedlist; { All loaded units }
  136. SmartLinkOFiles : TStringList; { List of .o files which are generated,
  137. used to delete them after linking }
  138. function get_source_file(moduleindex,fileindex : longint) : tinputfile;
  139. implementation
  140. uses
  141. {$ifdef delphi}
  142. dmisc,
  143. {$else}
  144. dos,
  145. {$endif}
  146. verbose,systems,
  147. scanner,
  148. cgbase;
  149. {*****************************************************************************
  150. Global Functions
  151. *****************************************************************************}
  152. function get_source_file(moduleindex,fileindex : longint) : tinputfile;
  153. var
  154. hp : tmodule;
  155. begin
  156. hp:=tmodule(loaded_units.first);
  157. while assigned(hp) and (hp.unit_index<>moduleindex) do
  158. hp:=tmodule(hp.next);
  159. if assigned(hp) then
  160. get_source_file:=hp.sourcefiles.get_file(fileindex)
  161. else
  162. get_source_file:=nil;
  163. end;
  164. {****************************************************************************
  165. TLinkContainerItem
  166. ****************************************************************************}
  167. constructor TLinkContainerItem.Create(const s:string;m:cardinal);
  168. begin
  169. inherited Create;
  170. data:=stringdup(s);
  171. needlink:=m;
  172. end;
  173. destructor TLinkContainerItem.Destroy;
  174. begin
  175. stringdispose(data);
  176. end;
  177. {****************************************************************************
  178. TLinkContainer
  179. ****************************************************************************}
  180. procedure TLinkContainer.add(const s : string;m:cardinal);
  181. begin
  182. inherited concat(TLinkContainerItem.Create(s,m));
  183. end;
  184. function TLinkContainer.get(var m:cardinal) : string;
  185. var
  186. p : tlinkcontaineritem;
  187. begin
  188. p:=tlinkcontaineritem(inherited getfirst);
  189. if p=nil then
  190. begin
  191. get:='';
  192. m:=0;
  193. end
  194. else
  195. begin
  196. get:=p.data^;
  197. m:=p.needlink;
  198. p.free;
  199. end;
  200. end;
  201. function TLinkContainer.getusemask(mask:cardinal) : string;
  202. var
  203. p : tlinkcontaineritem;
  204. found : boolean;
  205. begin
  206. found:=false;
  207. repeat
  208. p:=tlinkcontaineritem(inherited getfirst);
  209. if p=nil then
  210. begin
  211. getusemask:='';
  212. exit;
  213. end;
  214. getusemask:=p.data^;
  215. found:=(p.needlink and mask)<>0;
  216. p.free;
  217. until found;
  218. end;
  219. function TLinkContainer.find(const s:string):boolean;
  220. var
  221. newnode : tlinkcontaineritem;
  222. begin
  223. find:=false;
  224. newnode:=tlinkcontaineritem(First);
  225. while assigned(newnode) do
  226. begin
  227. if newnode.data^=s then
  228. begin
  229. find:=true;
  230. exit;
  231. end;
  232. newnode:=tlinkcontaineritem(newnode.next);
  233. end;
  234. end;
  235. {****************************************************************************
  236. TExternalsItem
  237. ****************************************************************************}
  238. constructor tExternalsItem.Create(const s:string);
  239. begin
  240. inherited Create;
  241. found:=false;
  242. data:=stringdup(s);
  243. end;
  244. destructor tExternalsItem.Destroy;
  245. begin
  246. stringdispose(data);
  247. inherited;
  248. end;
  249. {****************************************************************************
  250. TUSED_UNIT
  251. ****************************************************************************}
  252. constructor tused_unit.create(_u : tmodule;intface,inuses:boolean);
  253. begin
  254. u:=_u;
  255. in_interface:=intface;
  256. in_uses:=inuses;
  257. is_stab_written:=false;
  258. unitid:=0;
  259. if _u.state=ms_compiled then
  260. begin
  261. checksum:=u.crc;
  262. interface_checksum:=u.interface_crc;
  263. end
  264. else
  265. begin
  266. checksum:=0;
  267. interface_checksum:=0;
  268. end;
  269. end;
  270. {****************************************************************************
  271. TDENPENDENT_UNIT
  272. ****************************************************************************}
  273. constructor tdependent_unit.create(_u : tmodule);
  274. begin
  275. u:=_u;
  276. end;
  277. {****************************************************************************
  278. TMODULE
  279. ****************************************************************************}
  280. constructor tmodule.create(LoadedFrom:TModule;const s:string;_is_unit:boolean);
  281. var
  282. p : dirstr;
  283. n : namestr;
  284. e : extstr;
  285. begin
  286. FSplit(s,p,n,e);
  287. { Programs have the name 'Program' to don't conflict with dup id's }
  288. if _is_unit then
  289. inherited create(n)
  290. else
  291. inherited create('Program');
  292. mainsource:=stringdup(s);
  293. { Dos has the famous 8.3 limit :( }
  294. {$ifdef shortasmprefix}
  295. asmprefix:=stringdup(FixFileName('as'));
  296. {$else}
  297. asmprefix:=stringdup(FixFileName(n));
  298. {$endif}
  299. setfilename(p+n,true);
  300. localunitsearchpath:=TSearchPathList.Create;
  301. localobjectsearchpath:=TSearchPathList.Create;
  302. localincludesearchpath:=TSearchPathList.Create;
  303. locallibrarysearchpath:=TSearchPathList.Create;
  304. used_units:=TLinkedList.Create;
  305. dependent_units:=TLinkedList.Create;
  306. resourcefiles:=TStringList.Create;
  307. linkunitofiles:=TLinkContainer.Create;
  308. linkunitstaticlibs:=TLinkContainer.Create;
  309. linkunitsharedlibs:=TLinkContainer.Create;
  310. linkotherofiles:=TLinkContainer.Create;
  311. linkotherstaticlibs:=TLinkContainer.Create;
  312. linkothersharedlibs:=TLinkContainer.Create;
  313. crc:=0;
  314. interface_crc:=0;
  315. flags:=0;
  316. scanner:=nil;
  317. map:=nil;
  318. globalsymtable:=nil;
  319. localsymtable:=nil;
  320. loaded_from:=LoadedFrom;
  321. do_reload:=false;
  322. unitcount:=1;
  323. do_compile:=false;
  324. sources_avail:=true;
  325. recompile_reason:=rr_unknown;
  326. in_interface:=true;
  327. in_global:=true;
  328. is_unit:=_is_unit;
  329. islibrary:=false;
  330. uses_imports:=false;
  331. imports:=TLinkedList.Create;
  332. _exports:=TLinkedList.Create;
  333. externals:=TLinkedList.Create;
  334. librarydata:=tasmlibrarydata.create(realmodulename^);
  335. end;
  336. destructor tmodule.Destroy;
  337. var
  338. {$ifdef MEMDEBUG}
  339. d : tmemdebug;
  340. {$endif}
  341. hpi : tprocinfo;
  342. begin
  343. if assigned(map) then
  344. dispose(map);
  345. if assigned(imports) then
  346. imports.free;
  347. if assigned(_exports) then
  348. _exports.free;
  349. if assigned(externals) then
  350. externals.free;
  351. if assigned(scanner) then
  352. begin
  353. { also update current_scanner if it was pointing
  354. to this module }
  355. if current_scanner=tscannerfile(scanner) then
  356. current_scanner:=nil;
  357. tscannerfile(scanner).free;
  358. end;
  359. if assigned(procinfo) then
  360. begin
  361. if current_procinfo=tprocinfo(procinfo) then
  362. current_procinfo:=nil;
  363. { release procinfo tree }
  364. while assigned(procinfo) do
  365. begin
  366. hpi:=tprocinfo(procinfo).parent;
  367. tprocinfo(procinfo).free;
  368. procinfo:=hpi;
  369. end;
  370. end;
  371. used_units.free;
  372. dependent_units.free;
  373. resourcefiles.Free;
  374. linkunitofiles.Free;
  375. linkunitstaticlibs.Free;
  376. linkunitsharedlibs.Free;
  377. linkotherofiles.Free;
  378. linkotherstaticlibs.Free;
  379. linkothersharedlibs.Free;
  380. stringdispose(objfilename);
  381. stringdispose(newfilename);
  382. stringdispose(ppufilename);
  383. stringdispose(staticlibfilename);
  384. stringdispose(sharedlibfilename);
  385. stringdispose(exefilename);
  386. stringdispose(outputpath);
  387. stringdispose(path);
  388. stringdispose(realmodulename);
  389. stringdispose(mainsource);
  390. stringdispose(asmprefix);
  391. localunitsearchpath.Free;
  392. localobjectsearchpath.free;
  393. localincludesearchpath.free;
  394. locallibrarysearchpath.free;
  395. {$ifdef MEMDEBUG}
  396. d:=tmemdebug.create(modulename^+' - symtable');
  397. {$endif}
  398. if assigned(globalsymtable) then
  399. globalsymtable.free;
  400. if assigned(localsymtable) then
  401. localsymtable.free;
  402. {$ifdef MEMDEBUG}
  403. d.free;
  404. {$endif}
  405. {$ifdef MEMDEBUG}
  406. d:=tmemdebug.create(modulename^+' - librarydata');
  407. {$endif}
  408. librarydata.free;
  409. {$ifdef MEMDEBUG}
  410. d.free;
  411. {$endif}
  412. stringdispose(modulename);
  413. inherited Destroy;
  414. end;
  415. procedure tmodule.reset;
  416. var
  417. hpi : tprocinfo;
  418. begin
  419. if assigned(scanner) then
  420. begin
  421. { also update current_scanner if it was pointing
  422. to this module }
  423. if current_scanner=tscannerfile(scanner) then
  424. current_scanner:=nil;
  425. tscannerfile(scanner).free;
  426. scanner:=nil;
  427. end;
  428. if assigned(procinfo) then
  429. begin
  430. if current_procinfo=tprocinfo(procinfo) then
  431. current_procinfo:=nil;
  432. { release procinfo tree }
  433. while assigned(procinfo) do
  434. begin
  435. hpi:=tprocinfo(procinfo).parent;
  436. tprocinfo(procinfo).free;
  437. procinfo:=hpi;
  438. end;
  439. end;
  440. if assigned(globalsymtable) then
  441. begin
  442. globalsymtable.free;
  443. globalsymtable:=nil;
  444. end;
  445. if assigned(localsymtable) then
  446. begin
  447. localsymtable.free;
  448. localsymtable:=nil;
  449. end;
  450. if assigned(map) then
  451. begin
  452. dispose(map);
  453. map:=nil;
  454. end;
  455. sourcefiles.free;
  456. sourcefiles:=tinputfilemanager.create;
  457. librarydata.free;
  458. librarydata:=tasmlibrarydata.create(realmodulename^);
  459. imports.free;
  460. imports:=tlinkedlist.create;
  461. _exports.free;
  462. _exports:=tlinkedlist.create;
  463. externals.free;
  464. externals:=tlinkedlist.create;
  465. used_units.free;
  466. used_units:=TLinkedList.Create;
  467. dependent_units.free;
  468. dependent_units:=TLinkedList.Create;
  469. resourcefiles.Free;
  470. resourcefiles:=TStringList.Create;
  471. linkunitofiles.Free;
  472. linkunitofiles:=TLinkContainer.Create;
  473. linkunitstaticlibs.Free;
  474. linkunitstaticlibs:=TLinkContainer.Create;
  475. linkunitsharedlibs.Free;
  476. linkunitsharedlibs:=TLinkContainer.Create;
  477. linkotherofiles.Free;
  478. linkotherofiles:=TLinkContainer.Create;
  479. linkotherstaticlibs.Free;
  480. linkotherstaticlibs:=TLinkContainer.Create;
  481. linkothersharedlibs.Free;
  482. linkothersharedlibs:=TLinkContainer.Create;
  483. uses_imports:=false;
  484. do_compile:=false;
  485. in_interface:=true;
  486. in_global:=true;
  487. crc:=0;
  488. interface_crc:=0;
  489. flags:=0;
  490. unitcount:=1;
  491. recompile_reason:=rr_unknown;
  492. {
  493. The following fields should not
  494. be reset:
  495. mainsource
  496. loaded_from
  497. state
  498. sources_avail
  499. }
  500. end;
  501. procedure tmodule.adddependency(callermodule:tmodule);
  502. begin
  503. { This is not needed for programs }
  504. if not callermodule.is_unit then
  505. exit;
  506. Message2(unit_u_add_depend_to,callermodule.modulename^,modulename^);
  507. dependent_units.concat(tdependent_unit.create(callermodule));
  508. end;
  509. procedure tmodule.flagdependent(callermodule:tmodule);
  510. var
  511. pm : tdependent_unit;
  512. begin
  513. { flag all units that depend on this unit for reloading }
  514. pm:=tdependent_unit(current_module.dependent_units.first);
  515. while assigned(pm) do
  516. begin
  517. { We do not have to reload the unit that wants to load
  518. this unit }
  519. if pm.u=callermodule then
  520. Message1(unit_u_no_reload_is_caller,pm.u.modulename^)
  521. else
  522. if pm.u.state=ms_second_compile then
  523. Message1(unit_u_no_reload_in_second_compile,pm.u.modulename^)
  524. else
  525. begin
  526. pm.u.do_reload:=true;
  527. Message1(unit_u_flag_for_reload,pm.u.modulename^);
  528. end;
  529. pm:=tdependent_unit(pm.next);
  530. end;
  531. end;
  532. function tmodule.addusedunit(hp:tmodule;inuses:boolean):tused_unit;
  533. var
  534. pu : tused_unit;
  535. begin
  536. pu:=tused_unit.create(hp,in_interface,inuses);
  537. used_units.concat(pu);
  538. addusedunit:=pu;
  539. end;
  540. procedure tmodule.numberunits;
  541. var
  542. counter : word;
  543. hp : tused_unit;
  544. hp1 : tmodule;
  545. begin
  546. { Reset all numbers to -1 }
  547. hp1:=tmodule(loaded_units.first);
  548. while assigned(hp1) do
  549. begin
  550. if assigned(hp1.globalsymtable) then
  551. hp1.globalsymtable.unitid:=$ffff;
  552. hp1:=tmodule(hp1.next);
  553. end;
  554. { Our own symtable gets unitid 0, for a program there is
  555. no globalsymtable }
  556. if assigned(globalsymtable) then
  557. globalsymtable.unitid:=0;
  558. { number units }
  559. counter:=1;
  560. hp:=tused_unit(used_units.first);
  561. while assigned(hp) do
  562. begin
  563. tsymtable(hp.u.globalsymtable).unitid:=counter;
  564. inc(counter);
  565. hp:=tused_unit(hp.next);
  566. end;
  567. end;
  568. procedure tmodule.setmodulename(const s:string);
  569. begin
  570. stringdispose(modulename);
  571. stringdispose(realmodulename);
  572. modulename:=stringdup(upper(s));
  573. realmodulename:=stringdup(s);
  574. { also update asmlibrary names }
  575. librarydata.name:=modulename^;
  576. librarydata.realname:=realmodulename^;
  577. end;
  578. end.
  579. {
  580. $Log$
  581. Revision 1.35 2003-05-25 10:27:12 peter
  582. * moved Comment calls to messge file
  583. Revision 1.34 2003/05/23 14:27:35 peter
  584. * remove some unit dependencies
  585. * current_procinfo changes to store more info
  586. Revision 1.33 2003/04/27 11:21:32 peter
  587. * aktprocdef renamed to current_procdef
  588. * procinfo renamed to current_procinfo
  589. * procinfo will now be stored in current_module so it can be
  590. cleaned up properly
  591. * gen_main_procsym changed to create_main_proc and release_main_proc
  592. to also generate a tprocinfo structure
  593. * fixed unit implicit initfinal
  594. Revision 1.32 2002/12/29 14:57:50 peter
  595. * unit loading changed to first register units and load them
  596. afterwards. This is needed to support uses xxx in yyy correctly
  597. * unit dependency check fixed
  598. Revision 1.31 2002/12/07 14:27:07 carl
  599. * 3% memory optimization
  600. * changed some types
  601. + added type checking with different size for call node and for
  602. parameters
  603. Revision 1.30 2002/11/24 18:19:56 carl
  604. + tos also has short filenames
  605. Revision 1.29 2002/11/20 12:36:23 mazen
  606. * $UNITPATH directive is now working
  607. Revision 1.28 2002/09/05 19:29:42 peter
  608. * memdebug enhancements
  609. Revision 1.27 2002/08/16 15:31:08 peter
  610. * fixed possible crashes with current_scanner
  611. Revision 1.26 2002/08/12 16:46:04 peter
  612. * tscannerfile is now destroyed in tmodule.reset and current_scanner
  613. is updated accordingly. This removes all the loading and saving of
  614. the old scanner and the invalid flag marking
  615. Revision 1.25 2002/08/11 14:28:19 peter
  616. * TScannerFile.SetInvalid added that will also reset inputfile
  617. Revision 1.24 2002/08/11 13:24:11 peter
  618. * saving of asmsymbols in ppu supported
  619. * asmsymbollist global is removed and moved into a new class
  620. tasmlibrarydata that will hold the info of a .a file which
  621. corresponds with a single module. Added librarydata to tmodule
  622. to keep the library info stored for the module. In the future the
  623. objectfiles will also be stored to the tasmlibrarydata class
  624. * all getlabel/newasmsymbol and friends are moved to the new class
  625. Revision 1.23 2002/05/16 19:46:36 carl
  626. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  627. + try to fix temp allocation (still in ifdef)
  628. + generic constructor calls
  629. + start of tassembler / tmodulebase class cleanup
  630. Revision 1.22 2002/05/14 19:34:41 peter
  631. * removed old logs and updated copyright year
  632. Revision 1.21 2002/04/04 19:05:55 peter
  633. * removed unused units
  634. * use tlocation.size in cg.a_*loc*() routines
  635. Revision 1.20 2002/03/28 20:46:59 carl
  636. - remove go32v1 support
  637. }