fmodule.pas 23 KB

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