pdecvar.pas 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Parses variable declarations. Used for var statement and record
  5. definitions
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit pdecvar;
  20. {$i fpcdefs.inc}
  21. interface
  22. procedure read_var_decs(is_record,is_object,is_threadvar:boolean);
  23. implementation
  24. uses
  25. { common }
  26. cutils,cclasses,
  27. { global }
  28. globtype,globals,tokens,verbose,
  29. systems,
  30. { symtable }
  31. symconst,symbase,symtype,symdef,symsym,symtable,defbase,fmodule,paramgr,
  32. { pass 1 }
  33. node,
  34. nmat,nadd,ncal,nset,ncnv,ninl,ncon,nld,nflw,
  35. { parser }
  36. scanner,
  37. pbase,pexpr,ptype,ptconst,pdecsub,
  38. { link }
  39. import
  40. {$ifdef Delphi}
  41. ,dmisc
  42. ,sysutils
  43. {$endif}
  44. ;
  45. const
  46. variantrecordlevel : longint = 0;
  47. procedure read_var_decs(is_record,is_object,is_threadvar:boolean);
  48. { reads the filed of a record into a }
  49. { symtablestack, if record=false }
  50. { variants are forbidden, so this procedure }
  51. { can be used to read object fields }
  52. { if absolute is true, ABSOLUTE and file }
  53. { types are allowed }
  54. { => the procedure is also used to read }
  55. { a sequence of variable declaration }
  56. procedure insert_syms(sc : tsinglelist;tt : ttype;is_threadvar : boolean);
  57. { inserts the symbols of sc in st with def as definition or sym as ttypesym, sc is disposed }
  58. var
  59. vs,vs2 : tvarsym;
  60. begin
  61. vs:=tvarsym(sc.first);
  62. while assigned(vs) do
  63. begin
  64. vs.vartype:=tt;
  65. if (sp_static in current_object_option) then
  66. include(vs.symoptions,sp_static);
  67. if is_threadvar then
  68. include(vs.varoptions,vo_is_thread_var);
  69. { static data fields are inserted in the globalsymtable }
  70. if (symtablestack.symtabletype=objectsymtable) and
  71. (sp_static in current_object_option) then
  72. begin
  73. vs2:=tvarsym.create('$'+lower(symtablestack.name^)+'_'+vs.name,tt);
  74. symtablestack.defowner.owner.insert(vs2);
  75. symtablestack.defowner.owner.insertvardata(vs2);
  76. end
  77. else
  78. begin
  79. { external data is not possible here }
  80. symtablestack.insertvardata(vs);
  81. end;
  82. vs:=tvarsym(vs.listnext);
  83. end;
  84. end;
  85. var
  86. sc : tsinglelist;
  87. old_block_type : tblock_type;
  88. declarepos,storetokenpos : tfileposinfo;
  89. oldsymtablestack : tsymtable;
  90. symdone : boolean;
  91. { to handle absolute }
  92. abssym : tabsolutesym;
  93. { c var }
  94. newtype : ttypesym;
  95. is_dll,
  96. is_gpc_name,is_cdecl,
  97. extern_var,export_var : boolean;
  98. old_current_object_option : tsymoptions;
  99. hs,sorg,C_name,dll_name : string;
  100. tt,casetype : ttype;
  101. { Delphi initialized vars }
  102. tconstsym : ttypedconstsym;
  103. { maxsize contains the max. size of a variant }
  104. { startvarrec contains the start of the variant part of a record }
  105. usedalign,
  106. maxsize,minalignment,maxalignment,startvarrecalign,startvarrecsize : longint;
  107. pt : tnode;
  108. vs : tvarsym;
  109. srsym : tsym;
  110. srsymtable : tsymtable;
  111. unionsymtable : tsymtable;
  112. offset : longint;
  113. uniondef : trecorddef;
  114. unionsym : tvarsym;
  115. uniontype : ttype;
  116. dummysymoptions : tsymoptions;
  117. begin
  118. old_current_object_option:=current_object_option;
  119. { all variables are public if not in a object declaration }
  120. if not is_object then
  121. current_object_option:=[sp_public];
  122. old_block_type:=block_type;
  123. block_type:=bt_type;
  124. is_gpc_name:=false;
  125. { Force an expected ID error message }
  126. if not (token in [_ID,_CASE,_END]) then
  127. consume(_ID);
  128. { read vars }
  129. sc:=tsinglelist.create;
  130. while (token=_ID) and
  131. not(is_object and (idtoken in [_PUBLIC,_PRIVATE,_PUBLISHED,_PROTECTED])) do
  132. begin
  133. sorg:=orgpattern;
  134. sc.reset;
  135. repeat
  136. vs:=tvarsym.create(orgpattern,generrortype);
  137. symtablestack.insert(vs);
  138. sc.insert(vs);
  139. consume(_ID);
  140. until not try_to_consume(_COMMA);
  141. consume(_COLON);
  142. if (m_gpc in aktmodeswitches) and
  143. not(is_record or is_object or is_threadvar) and
  144. (token=_ID) and (orgpattern='__asmname__') then
  145. begin
  146. consume(_ID);
  147. C_name:=get_stringconst;
  148. Is_gpc_name:=true;
  149. end;
  150. { this is needed for Delphi mode at least
  151. but should be OK for all modes !! (PM) }
  152. ignore_equal:=true;
  153. if is_record then
  154. begin
  155. { for records, don't search the recordsymtable for
  156. the symbols of the types }
  157. oldsymtablestack:=symtablestack;
  158. symtablestack:=symtablestack.next;
  159. read_type(tt,'');
  160. symtablestack:=oldsymtablestack;
  161. end
  162. else
  163. read_type(tt,'');
  164. { types that use init/final are not allowed in variant parts, but
  165. classes are allowed }
  166. if (variantrecordlevel>0) and
  167. (tt.def.needs_inittable and not is_class(tt.def)) then
  168. Message(parser_e_cant_use_inittable_here);
  169. ignore_equal:=false;
  170. symdone:=false;
  171. if is_gpc_name then
  172. begin
  173. vs:=tvarsym(sc.first);
  174. if assigned(vs.listnext) then
  175. Message(parser_e_absolute_only_one_var);
  176. vs.vartype:=tt;
  177. include(vs.varoptions,vo_is_C_var);
  178. vs.set_mangledname(target_info.Cprefix+sorg);
  179. include(vs.varoptions,vo_is_external);
  180. symdone:=true;
  181. end;
  182. { check for absolute }
  183. if not symdone and
  184. (idtoken=_ABSOLUTE) and not(is_record or is_object or is_threadvar) then
  185. begin
  186. consume(_ABSOLUTE);
  187. { only allowed for one var }
  188. vs:=tvarsym(sc.first);
  189. if assigned(vs.listnext) then
  190. Message(parser_e_absolute_only_one_var);
  191. { parse the rest }
  192. pt:=expr;
  193. if (pt.nodetype=stringconstn) or
  194. (is_constcharnode(pt)) then
  195. begin
  196. abssym:=tabsolutesym.create(vs.realname,tt);
  197. abssym.fileinfo:=vs.fileinfo;
  198. if pt.nodetype=stringconstn then
  199. hs:=strpas(tstringconstnode(pt).value_str)
  200. else
  201. hs:=chr(tordconstnode(pt).value);
  202. consume(token);
  203. abssym.abstyp:=toasm;
  204. abssym.asmname:=stringdup(hs);
  205. { replace the varsym }
  206. symtablestack.replace(vs,abssym);
  207. vs.free;
  208. end
  209. { variable }
  210. else if (pt.nodetype=loadn) then
  211. begin
  212. { we should check the result type of srsym }
  213. if not (tloadnode(pt).symtableentry.typ in [varsym,typedconstsym,funcretsym]) then
  214. Message(parser_e_absolute_only_to_var_or_const);
  215. abssym:=tabsolutesym.create(vs.realname,tt);
  216. abssym.fileinfo:=vs.fileinfo;
  217. abssym.abstyp:=tovar;
  218. abssym.ref:=tstoredsym(tloadnode(pt).symtableentry);
  219. symtablestack.replace(vs,abssym);
  220. vs.free;
  221. { the variable cannot be put into a register
  222. if the size definition is not the same.
  223. }
  224. if tloadnode(pt).symtableentry.typ = varsym then
  225. begin
  226. if abssym.vartype.def <>
  227. tvarsym(tloadnode(pt).symtableentry).vartype.def then
  228. tvarsym(tloadnode(pt).symtableentry).varoptions:=
  229. tvarsym(tloadnode(pt).symtableentry).varoptions-[vo_regable,vo_fpuregable]
  230. end;
  231. end
  232. { funcret }
  233. else if (pt.nodetype=funcretn) then
  234. begin
  235. abssym:=tabsolutesym.create(vs.realname,tt);
  236. abssym.fileinfo:=vs.fileinfo;
  237. abssym.abstyp:=tovar;
  238. abssym.ref:=tstoredsym(tfuncretnode(pt).funcretsym);
  239. symtablestack.replace(vs,abssym);
  240. vs.free;
  241. end
  242. { address }
  243. else if is_constintnode(pt) and
  244. ((target_info.system=system_i386_go32v2) or
  245. (m_objfpc in aktmodeswitches) or
  246. (m_delphi in aktmodeswitches)) then
  247. begin
  248. abssym:=tabsolutesym.create(vs.realname,tt);
  249. abssym.fileinfo:=vs.fileinfo;
  250. abssym.abstyp:=toaddr;
  251. abssym.absseg:=false;
  252. abssym.address:=tordconstnode(pt).value;
  253. if (target_info.system=system_i386_go32v2) and
  254. try_to_consume(_COLON) then
  255. begin
  256. pt.free;
  257. pt:=expr;
  258. if is_constintnode(pt) then
  259. begin
  260. abssym.address:=abssym.address shl 4+tordconstnode(pt).value;
  261. abssym.absseg:=true;
  262. end
  263. else
  264. Message(type_e_ordinal_expr_expected);
  265. end;
  266. symtablestack.replace(vs,abssym);
  267. vs.free;
  268. end
  269. else
  270. Message(parser_e_absolute_only_to_var_or_const);
  271. pt.free;
  272. symdone:=true;
  273. end;
  274. { Handling of Delphi typed const = initialized vars ! }
  275. { When should this be rejected ?
  276. - in parasymtable
  277. - in record or object
  278. - ... (PM) }
  279. if (token=_EQUAL) and
  280. not(m_tp7 in aktmodeswitches) and
  281. not(symtablestack.symtabletype in [parasymtable]) and
  282. not is_record and
  283. not is_object then
  284. begin
  285. vs:=tvarsym(sc.first);
  286. if assigned(vs.listnext) then
  287. Message(parser_e_initialized_only_one_var);
  288. tconstsym:=ttypedconstsym.createtype(vs.realname,tt,true);
  289. tconstsym.fileinfo:=vs.fileinfo;
  290. symtablestack.replace(vs,tconstsym);
  291. vs.free;
  292. symtablestack.insertconstdata(tconstsym);
  293. consume(_EQUAL);
  294. readtypedconst(tt,tconstsym,true);
  295. symdone:=true;
  296. end;
  297. { hint directive }
  298. {$ifdef fpc}
  299. {$warning hintdirective not stored in syms}
  300. {$endif}
  301. dummysymoptions:=[];
  302. try_consume_hintdirective(dummysymoptions);
  303. { for a record there doesn't need to be a ; before the END or ) }
  304. if not((is_record or is_object) and (token in [_END,_RKLAMMER])) then
  305. consume(_SEMICOLON);
  306. { procvar handling }
  307. if (tt.def.deftype=procvardef) and (tt.def.typesym=nil) then
  308. begin
  309. newtype:=ttypesym.create('unnamed',tt);
  310. parse_var_proc_directives(tsym(newtype));
  311. paramanager.create_param_loc_info(tabstractprocdef(tt.def));
  312. newtype.restype.def:=nil;
  313. tt.def.typesym:=nil;
  314. newtype.free;
  315. end;
  316. { Check for variable directives }
  317. if not symdone and (token=_ID) then
  318. begin
  319. { Check for C Variable declarations }
  320. if (m_cvar_support in aktmodeswitches) and
  321. not(is_record or is_object or is_threadvar) and
  322. (idtoken in [_EXPORT,_EXTERNAL,_PUBLIC,_CVAR]) then
  323. begin
  324. { only allowed for one var }
  325. vs:=tvarsym(sc.first);
  326. if assigned(vs.listnext) then
  327. Message(parser_e_absolute_only_one_var);
  328. { set type of the var }
  329. vs.vartype:=tt;
  330. { defaults }
  331. is_dll:=false;
  332. is_cdecl:=false;
  333. extern_var:=false;
  334. export_var:=false;
  335. C_name:=sorg;
  336. { cdecl }
  337. if idtoken=_CVAR then
  338. begin
  339. consume(_CVAR);
  340. consume(_SEMICOLON);
  341. is_cdecl:=true;
  342. C_name:=target_info.Cprefix+sorg;
  343. end;
  344. { external }
  345. if idtoken=_EXTERNAL then
  346. begin
  347. consume(_EXTERNAL);
  348. extern_var:=true;
  349. end;
  350. { export }
  351. if idtoken in [_EXPORT,_PUBLIC] then
  352. begin
  353. consume(_ID);
  354. if extern_var or
  355. (symtablestack.symtabletype in [parasymtable,localsymtable]) then
  356. Message(parser_e_not_external_and_export)
  357. else
  358. export_var:=true;
  359. end;
  360. { external and export need a name after when no cdecl is used }
  361. if not is_cdecl then
  362. begin
  363. { dll name ? }
  364. if (extern_var) and (idtoken<>_NAME) then
  365. begin
  366. is_dll:=true;
  367. dll_name:=get_stringconst;
  368. end;
  369. consume(_NAME);
  370. C_name:=get_stringconst;
  371. end;
  372. { consume the ; when export or external is used }
  373. if extern_var or export_var then
  374. consume(_SEMICOLON);
  375. { set some vars options }
  376. if is_dll then
  377. include(vs.varoptions,vo_is_dll_var)
  378. else
  379. include(vs.varoptions,vo_is_C_var);
  380. vs.set_mangledname(C_Name);
  381. if export_var then
  382. begin
  383. inc(vs.refs);
  384. include(vs.varoptions,vo_is_exported);
  385. end;
  386. if extern_var then
  387. include(vs.varoptions,vo_is_external);
  388. { insert in the datasegment when it is not external }
  389. if not extern_var then
  390. symtablestack.insertvardata(vs);
  391. { now we can insert it in the import lib if its a dll, or
  392. add it to the externals }
  393. if extern_var then
  394. begin
  395. if is_dll then
  396. begin
  397. if not(current_module.uses_imports) then
  398. begin
  399. current_module.uses_imports:=true;
  400. importlib.preparelib(current_module.modulename^);
  401. end;
  402. importlib.importvariable(vs,C_name,dll_name);
  403. end
  404. else
  405. if target_info.DllScanSupported then
  406. current_module.Externals.insert(tExternalsItem.create(vs.mangledname));
  407. end;
  408. symdone:=true;
  409. end
  410. else
  411. if (is_object) and (cs_static_keyword in aktmoduleswitches) and (idtoken=_STATIC) then
  412. begin
  413. include(current_object_option,sp_static);
  414. insert_syms(sc,tt,false);
  415. exclude(current_object_option,sp_static);
  416. consume(_STATIC);
  417. consume(_SEMICOLON);
  418. symdone:=true;
  419. end;
  420. end;
  421. { insert it in the symtable, if not done yet }
  422. if not symdone then
  423. begin
  424. { save object option, because we can turn of the sp_published }
  425. if (sp_published in current_object_option) and
  426. not(is_class(tt.def)) then
  427. begin
  428. Message(parser_e_cant_publish_that);
  429. exclude(current_object_option,sp_published);
  430. end
  431. else
  432. if (sp_published in current_object_option) and
  433. not(oo_can_have_published in tobjectdef(tt.def).objectoptions) then
  434. begin
  435. Message(parser_e_only_publishable_classes_can__be_published);
  436. exclude(current_object_option,sp_published);
  437. end;
  438. insert_syms(sc,tt,is_threadvar);
  439. current_object_option:=old_current_object_option;
  440. end;
  441. end;
  442. { Check for Case }
  443. if is_record and (token=_CASE) then
  444. begin
  445. maxsize:=0;
  446. maxalignment:=0;
  447. consume(_CASE);
  448. sorg:=orgpattern;
  449. hs:=pattern;
  450. searchsym(hs,srsym,srsymtable);
  451. { may be only a type: }
  452. if assigned(srsym) and (srsym.typ in [typesym,unitsym]) then
  453. begin
  454. { for records, don't search the recordsymtable for
  455. the symbols of the types }
  456. oldsymtablestack:=symtablestack;
  457. symtablestack:=symtablestack.next;
  458. read_type(casetype,'');
  459. symtablestack:=oldsymtablestack;
  460. end
  461. else
  462. begin
  463. consume(_ID);
  464. consume(_COLON);
  465. { for records, don't search the recordsymtable for
  466. the symbols of the types }
  467. oldsymtablestack:=symtablestack;
  468. symtablestack:=symtablestack.next;
  469. read_type(casetype,'');
  470. symtablestack:=oldsymtablestack;
  471. vs:=tvarsym.create(sorg,casetype);
  472. symtablestack.insert(vs);
  473. symtablestack.insertvardata(vs);
  474. end;
  475. if not(is_ordinal(casetype.def)) or is_64bitint(casetype.def) then
  476. Message(type_e_ordinal_expr_expected);
  477. consume(_OF);
  478. UnionSymtable:=trecordsymtable.create;
  479. Unionsymtable.next:=symtablestack;
  480. registerdef:=false;
  481. UnionDef:=trecorddef.create(unionsymtable);
  482. uniondef.isunion:=true;
  483. if assigned(symtablestack.defowner) then
  484. Uniondef.owner:=symtablestack.defowner.owner;
  485. registerdef:=true;
  486. symtablestack:=UnionSymtable;
  487. startvarrecsize:=symtablestack.datasize;
  488. startvarrecalign:=symtablestack.dataalignment;
  489. repeat
  490. repeat
  491. pt:=comp_expr(true);
  492. if not(pt.nodetype=ordconstn) then
  493. Message(cg_e_illegal_expression);
  494. pt.free;
  495. if token=_COMMA then
  496. consume(_COMMA)
  497. else
  498. break;
  499. until false;
  500. consume(_COLON);
  501. { read the vars }
  502. consume(_LKLAMMER);
  503. inc(variantrecordlevel);
  504. if token<>_RKLAMMER then
  505. read_var_decs(true,false,false);
  506. dec(variantrecordlevel);
  507. consume(_RKLAMMER);
  508. { calculates maximal variant size }
  509. maxsize:=max(maxsize,symtablestack.datasize);
  510. maxalignment:=max(maxalignment,symtablestack.dataalignment);
  511. { the items of the next variant are overlayed }
  512. symtablestack.datasize:=startvarrecsize;
  513. symtablestack.dataalignment:=startvarrecalign;
  514. if (token<>_END) and (token<>_RKLAMMER) then
  515. consume(_SEMICOLON)
  516. else
  517. break;
  518. until (token=_END) or (token=_RKLAMMER);
  519. { at last set the record size to that of the biggest variant }
  520. symtablestack.datasize:=maxsize;
  521. symtablestack.dataalignment:=maxalignment;
  522. uniontype.def:=uniondef;
  523. uniontype.sym:=nil;
  524. UnionSym:=tvarsym.create('case',uniontype);
  525. symtablestack:=symtablestack.next;
  526. { we do NOT call symtablestack.insert
  527. on purpose PM }
  528. if aktalignment.recordalignmax=-1 then
  529. begin
  530. {$ifdef i386}
  531. if maxalignment>2 then
  532. minalignment:=4
  533. else if maxalignment>1 then
  534. minalignment:=2
  535. else
  536. minalignment:=1;
  537. {$else}
  538. {$ifdef m68k}
  539. minalignment:=2;
  540. {$endif}
  541. minalignment:=1;
  542. {$endif}
  543. end
  544. else
  545. minalignment:=maxalignment;
  546. usedalign:=used_align(maxalignment,minalignment,maxalignment);
  547. offset:=align(symtablestack.datasize,usedalign);
  548. symtablestack.datasize:=offset+unionsymtable.datasize;
  549. if maxalignment>symtablestack.dataalignment then
  550. symtablestack.dataalignment:=maxalignment;
  551. trecordsymtable(Unionsymtable).Insert_in(symtablestack,offset);
  552. Unionsym.owner:=nil;
  553. unionsym.free;
  554. uniondef.owner:=nil;
  555. uniondef.free;
  556. end;
  557. block_type:=old_block_type;
  558. current_object_option:=old_current_object_option;
  559. { free the list }
  560. sc.free;
  561. end;
  562. end.
  563. {
  564. $Log$
  565. Revision 1.39 2002-11-15 16:29:31 peter
  566. * made tasmsymbol.refs private (merged)
  567. Revision 1.38 2002/11/15 01:58:53 peter
  568. * merged changes from 1.0.7 up to 04-11
  569. - -V option for generating bug report tracing
  570. - more tracing for option parsing
  571. - errors for cdecl and high()
  572. - win32 import stabs
  573. - win32 records<=8 are returned in eax:edx (turned off by default)
  574. - heaptrc update
  575. - more info for temp management in .s file with EXTDEBUG
  576. Revision 1.37 2002/10/05 15:18:43 carl
  577. * fix heap leaks
  578. Revision 1.36 2002/10/05 12:43:26 carl
  579. * fixes for Delphi 6 compilation
  580. (warning : Some features do not work under Delphi)
  581. Revision 1.35 2002/10/04 20:53:05 carl
  582. * bugfix of crash
  583. Revision 1.34 2002/10/03 21:22:01 carl
  584. * don't make the vars regable if they are absolute and their definitions
  585. are not the same.
  586. Revision 1.33 2002/09/16 18:08:45 peter
  587. * fix setting of sp_static
  588. Revision 1.32 2002/09/09 17:34:15 peter
  589. * tdicationary.replace added to replace and item in a dictionary. This
  590. is only allowed for the same name
  591. * varsyms are inserted in symtable before the types are parsed. This
  592. fixes the long standing "var longint : longint" bug
  593. - consume_idlist and idstringlist removed. The loops are inserted
  594. at the callers place and uses the symtable for duplicate id checking
  595. Revision 1.31 2002/08/25 19:25:20 peter
  596. * sym.insert_in_data removed
  597. * symtable.insertvardata/insertconstdata added
  598. * removed insert_in_data call from symtable.insert, it needs to be
  599. called separatly. This allows to deref the address calculation
  600. * procedures now calculate the parast addresses after the procedure
  601. directives are parsed. This fixes the cdecl parast problem
  602. * push_addr_param has an extra argument that specifies if cdecl is used
  603. or not
  604. Revision 1.30 2002/07/29 21:23:44 florian
  605. * more fixes for the ppc
  606. + wrappers for the tcnvnode.first_* stuff introduced
  607. Revision 1.29 2002/07/26 21:15:40 florian
  608. * rewrote the system handling
  609. Revision 1.28 2002/07/20 11:57:55 florian
  610. * types.pas renamed to defbase.pas because D6 contains a types
  611. unit so this would conflicts if D6 programms are compiled
  612. + Willamette/SSE2 instructions to assembler added
  613. Revision 1.27 2002/06/10 13:41:26 jonas
  614. * fixed bug 1985
  615. Revision 1.26 2002/05/18 13:34:12 peter
  616. * readded missing revisions
  617. Revision 1.25 2002/05/16 19:46:43 carl
  618. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  619. + try to fix temp allocation (still in ifdef)
  620. + generic constructor calls
  621. + start of tassembler / tmodulebase class cleanup
  622. Revision 1.23 2002/04/21 18:57:24 peter
  623. * fixed memleaks when file can't be opened
  624. }