cpupara.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. PowerPC specific calling conventions
  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. { PowerPC specific calling conventions are handled by this unit
  19. }
  20. unit cpupara;
  21. {$i fpcdefs.inc}
  22. interface
  23. uses
  24. globtype,
  25. cclasses,
  26. aasmtai,
  27. cpubase,cpuinfo,
  28. symconst,symbase,symtype,symdef,paramgr,cgbase;
  29. type
  30. tppcparamanager = class(tparamanager)
  31. function get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;override;
  32. function get_volatile_registers_fpu(calloption : tproccalloption):tcpuregisterset;override;
  33. function push_addr_param(varspez:tvarspez;def : tdef;calloption : tproccalloption) : boolean;override;
  34. function getintparaloc(calloption : tproccalloption; nr : longint) : tparalocation;override;
  35. function create_paraloc_info(p : tabstractprocdef; side: tcallercallee):longint;override;
  36. function create_varargs_paraloc_info(p : tabstractprocdef; varargspara:tvarargspara):longint;override;
  37. private
  38. procedure init_values(var curintreg, curfloatreg, curmmreg: tsuperregister; var cur_stack_offset: aword);
  39. function create_paraloc_info_intern(p : tabstractprocdef; side: tcallercallee; firstpara: tparaitem;
  40. var curintreg, curfloatreg, curmmreg: tsuperregister; var cur_stack_offset: aword):longint;
  41. end;
  42. implementation
  43. uses
  44. verbose,systems,
  45. procinfo,
  46. rgobj,
  47. defutil,symsym,cpupi;
  48. function tppcparamanager.get_volatile_registers_int(calloption : tproccalloption):tcpuregisterset;
  49. begin
  50. result := [RS_R3..RS_R12];
  51. end;
  52. function tppcparamanager.get_volatile_registers_fpu(calloption : tproccalloption):tcpuregisterset;
  53. begin
  54. case target_info.abi of
  55. abi_powerpc_aix:
  56. result := [RS_F0..RS_F13];
  57. abi_powerpc_sysv:
  58. {$warning: the 64bit sysv abi also uses RS_F0..RS_F13 like the aix abi above }
  59. result := [RS_F0..RS_F8];
  60. else
  61. internalerror(2003091401);
  62. end;
  63. end;
  64. function tppcparamanager.getintparaloc(calloption : tproccalloption; nr : longint) : tparalocation;
  65. begin
  66. fillchar(result,sizeof(tparalocation),0);
  67. if nr<1 then
  68. internalerror(2002070801)
  69. else if nr<=8 then
  70. begin
  71. result.loc:=LOC_REGISTER;
  72. result.register:=newreg(R_INTREGISTER,RS_R2+nr,R_SUBWHOLE);
  73. end
  74. else
  75. begin
  76. result.loc:=LOC_REFERENCE;
  77. result.reference.index:=NR_STACK_POINTER_REG;
  78. result.reference.offset:=(nr-8)*4;
  79. end;
  80. result.size := OS_INT;
  81. end;
  82. function getparaloc(p : tdef) : tcgloc;
  83. begin
  84. { Later, the LOC_REFERENCE is in most cases changed into LOC_REGISTER
  85. if push_addr_param for the def is true
  86. }
  87. case p.deftype of
  88. orddef:
  89. getparaloc:=LOC_REGISTER;
  90. floatdef:
  91. getparaloc:=LOC_FPUREGISTER;
  92. enumdef:
  93. getparaloc:=LOC_REGISTER;
  94. pointerdef:
  95. getparaloc:=LOC_REGISTER;
  96. formaldef:
  97. getparaloc:=LOC_REGISTER;
  98. classrefdef:
  99. getparaloc:=LOC_REGISTER;
  100. recorddef:
  101. getparaloc:=LOC_REFERENCE;
  102. objectdef:
  103. if is_object(p) then
  104. getparaloc:=LOC_REFERENCE
  105. else
  106. getparaloc:=LOC_REGISTER;
  107. stringdef:
  108. if is_shortstring(p) or is_longstring(p) then
  109. getparaloc:=LOC_REFERENCE
  110. else
  111. getparaloc:=LOC_REGISTER;
  112. procvardef:
  113. if (po_methodpointer in tprocvardef(p).procoptions) then
  114. getparaloc:=LOC_REFERENCE
  115. else
  116. getparaloc:=LOC_REGISTER;
  117. filedef:
  118. getparaloc:=LOC_REGISTER;
  119. arraydef:
  120. getparaloc:=LOC_REFERENCE;
  121. setdef:
  122. if is_smallset(p) then
  123. getparaloc:=LOC_REGISTER
  124. else
  125. getparaloc:=LOC_REFERENCE;
  126. variantdef:
  127. getparaloc:=LOC_REFERENCE;
  128. { avoid problems with errornous definitions }
  129. errordef:
  130. getparaloc:=LOC_REGISTER;
  131. else
  132. internalerror(2002071001);
  133. end;
  134. end;
  135. function tppcparamanager.push_addr_param(varspez:tvarspez;def : tdef;calloption : tproccalloption) : boolean;
  136. begin
  137. { var,out always require address }
  138. if varspez in [vs_var,vs_out] then
  139. begin
  140. result:=true;
  141. exit;
  142. end;
  143. case def.deftype of
  144. recorddef:
  145. result:=true;
  146. arraydef:
  147. result:=(tarraydef(def).highrange>=tarraydef(def).lowrange) or
  148. is_open_array(def) or
  149. is_array_of_const(def) or
  150. is_array_constructor(def);
  151. setdef :
  152. result:=(tsetdef(def).settype<>smallset);
  153. stringdef :
  154. result:=tstringdef(def).string_typ in [st_shortstring,st_longstring];
  155. procvardef :
  156. result:=po_methodpointer in tprocvardef(def).procoptions;
  157. else
  158. result:=inherited push_addr_param(varspez,def,calloption);
  159. end;
  160. end;
  161. procedure tppcparamanager.init_values(var curintreg, curfloatreg, curmmreg: tsuperregister; var cur_stack_offset: aword);
  162. begin
  163. case target_info.abi of
  164. abi_powerpc_aix:
  165. cur_stack_offset:=24;
  166. abi_powerpc_sysv:
  167. cur_stack_offset:=8;
  168. else
  169. internalerror(2003051901);
  170. end;
  171. curintreg:=RS_R3;
  172. curfloatreg:=RS_F1;
  173. curmmreg:=RS_M1;
  174. end;
  175. function tppcparamanager.create_paraloc_info(p : tabstractprocdef; side: tcallercallee):longint;
  176. var
  177. paraloc : tparalocation;
  178. cur_stack_offset: aword;
  179. curintreg, curfloatreg, curmmreg: tsuperregister;
  180. begin
  181. init_values(curintreg,curfloatreg,curmmreg,cur_stack_offset);
  182. result := create_paraloc_info_intern(p,side,tparaitem(p.para.first),curintreg,curfloatreg,curmmreg,cur_stack_offset);
  183. { Function return }
  184. fillchar(paraloc,sizeof(tparalocation),0);
  185. paraloc.alignment:= std_param_align;
  186. paraloc.size:=def_cgsize(p.rettype.def);
  187. { Return in FPU register? }
  188. if p.rettype.def.deftype=floatdef then
  189. begin
  190. paraloc.loc:=LOC_FPUREGISTER;
  191. paraloc.register:=NR_FPU_RESULT_REG;
  192. end
  193. else
  194. { Return in register? }
  195. if not ret_in_param(p.rettype.def,p.proccalloption) then
  196. begin
  197. paraloc.loc:=LOC_REGISTER;
  198. {$ifndef cpu64bit}
  199. if paraloc.size in [OS_64,OS_S64] then
  200. begin
  201. paraloc.register64.reglo:=NR_FUNCTION_RETURN64_LOW_REG;
  202. paraloc.register64.reghi:=NR_FUNCTION_RETURN64_HIGH_REG;
  203. end
  204. else
  205. {$endif cpu64bit}
  206. paraloc.register:=NR_FUNCTION_RETURN_REG;
  207. end
  208. else
  209. begin
  210. paraloc.loc:=LOC_REFERENCE;
  211. end;
  212. p.funcret_paraloc[side]:=paraloc;
  213. end;
  214. function tppcparamanager.create_paraloc_info_intern(p : tabstractprocdef; side: tcallercallee; firstpara: tparaitem;
  215. var curintreg, curfloatreg, curmmreg: tsuperregister; var cur_stack_offset: aword):longint;
  216. var
  217. stack_offset: aword;
  218. nextintreg,nextfloatreg,nextmmreg : tsuperregister;
  219. paradef : tdef;
  220. paraloc : tparalocation;
  221. hp : tparaitem;
  222. loc : tcgloc;
  223. is_64bit: boolean;
  224. procedure assignintreg;
  225. begin
  226. if nextintreg<=ord(NR_R10) then
  227. begin
  228. paraloc.loc:=LOC_REGISTER;
  229. paraloc.register:=newreg(R_INTREGISTER,nextintreg,R_SUBNONE);
  230. inc(nextintreg);
  231. if target_info.abi=abi_powerpc_aix then
  232. inc(stack_offset,4);
  233. end
  234. else
  235. begin
  236. paraloc.loc:=LOC_REFERENCE;
  237. paraloc.reference.index:=NR_STACK_POINTER_REG;
  238. paraloc.reference.offset:=stack_offset;
  239. inc(stack_offset,4);
  240. end;
  241. end;
  242. begin
  243. result:=0;
  244. nextintreg := curintreg;
  245. nextfloatreg := curfloatreg;
  246. nextmmreg := curmmreg;
  247. stack_offset := cur_stack_offset;
  248. hp:=firstpara;
  249. while assigned(hp) do
  250. begin
  251. { currently only support C-style array of const }
  252. if (p.proccalloption in [pocall_cdecl,pocall_cppdecl]) and
  253. is_array_of_const(hp.paratype.def) then
  254. begin
  255. { hack: the paraloc must be valid, but is not actually used }
  256. hp.paraloc[side].loc := LOC_REGISTER;
  257. hp.paraloc[side].register := NR_R0;
  258. hp.paraloc[side].size := OS_ADDR;
  259. break;
  260. end;
  261. if (hp.paratyp in [vs_var,vs_out]) then
  262. begin
  263. paradef := voidpointertype.def;
  264. loc := LOC_REGISTER;
  265. end
  266. else
  267. begin
  268. paradef := hp.paratype.def;
  269. loc:=getparaloc(paradef);
  270. end;
  271. { make sure all alignment bytes are 0 as well }
  272. fillchar(paraloc,sizeof(paraloc),0);
  273. paraloc.alignment:= std_param_align;
  274. case loc of
  275. LOC_REGISTER:
  276. begin
  277. paraloc.size := def_cgsize(paradef);
  278. { for things like formaldef }
  279. if paraloc.size = OS_NO then
  280. paraloc.size := OS_ADDR;
  281. is_64bit := paraloc.size in [OS_64,OS_S64];
  282. if nextintreg<=(RS_R10-ord(is_64bit)) then
  283. begin
  284. paraloc.loc:=LOC_REGISTER;
  285. if is_64bit then
  286. begin
  287. if odd(nextintreg-RS_R3) and (target_info.abi=abi_powerpc_sysv) Then
  288. inc(nextintreg);
  289. paraloc.registerhigh:=newreg(R_INTREGISTER,nextintreg,R_SUBNONE);
  290. inc(nextintreg);
  291. if target_info.abi=abi_powerpc_aix then
  292. inc(stack_offset,4);
  293. end;
  294. paraloc.registerlow:=newreg(R_INTREGISTER,nextintreg,R_SUBNONE);
  295. inc(nextintreg);
  296. if target_info.abi=abi_powerpc_aix then
  297. inc(stack_offset,4);
  298. end
  299. else
  300. begin
  301. nextintreg:=RS_R11;
  302. paraloc.loc:=LOC_REFERENCE;
  303. paraloc.reference.index:=NR_STACK_POINTER_REG;
  304. paraloc.reference.offset:=stack_offset;
  305. if not is_64bit then
  306. inc(stack_offset,4)
  307. else
  308. inc(stack_offset,8);
  309. end;
  310. end;
  311. LOC_FPUREGISTER:
  312. begin
  313. paraloc.size:=def_cgsize(paradef);
  314. if nextfloatreg<=RS_F10 then
  315. begin
  316. paraloc.loc:=LOC_FPUREGISTER;
  317. paraloc.register:=newreg(R_FPUREGISTER,nextfloatreg,R_SUBWHOLE);
  318. inc(nextfloatreg);
  319. if target_info.abi=abi_powerpc_aix then
  320. inc(stack_offset,8);
  321. end
  322. else
  323. begin
  324. {!!!!!!!}
  325. paraloc.size:=def_cgsize(paradef);
  326. internalerror(2002071004);
  327. end;
  328. end;
  329. LOC_REFERENCE:
  330. begin
  331. paraloc.size:=OS_ADDR;
  332. if push_addr_param(hp.paratyp,paradef,p.proccalloption) or
  333. is_open_array(paradef) or
  334. is_array_of_const(paradef) then
  335. assignintreg
  336. else
  337. begin
  338. paraloc.loc:=LOC_REFERENCE;
  339. paraloc.reference.index:=NR_STACK_POINTER_REG;
  340. paraloc.reference.offset:=stack_offset;
  341. inc(stack_offset,hp.paratype.def.size);
  342. end;
  343. end;
  344. else
  345. internalerror(2002071002);
  346. end;
  347. {
  348. this is filled in in ncgutil
  349. if side = calleeside then
  350. begin
  351. if (paraloc.loc = LOC_REFERENCE) then
  352. begin
  353. if (current_procinfo.procdef <> p) then
  354. internalerror(2003112201);
  355. inc(paraloc.reference.offset,current_procinfo.calc_stackframe_size);
  356. end;
  357. end;
  358. }
  359. hp.paraloc[side]:=paraloc;
  360. hp:=tparaitem(hp.next);
  361. end;
  362. curintreg:=nextintreg;
  363. curfloatreg:=nextfloatreg;
  364. curmmreg:=nextmmreg;
  365. cur_stack_offset:=stack_offset;
  366. end;
  367. function tppcparamanager.create_varargs_paraloc_info(p : tabstractprocdef; varargspara:tvarargspara):longint;
  368. var
  369. cur_stack_offset: aword;
  370. parasize, l: longint;
  371. curintreg, firstfloatreg, curfloatreg, curmmreg: tsuperregister;
  372. hp: tparaitem;
  373. paraloc: tparalocation;
  374. begin
  375. init_values(curintreg,curfloatreg,curmmreg,cur_stack_offset);
  376. firstfloatreg:=curfloatreg;
  377. result := create_paraloc_info_intern(p,callerside,tparaitem(p.para.first),curintreg,curfloatreg,curmmreg,cur_stack_offset);
  378. if (p.proccalloption in [pocall_cdecl,pocall_cppdecl]) then
  379. { just continue loading the parameters in the registers }
  380. result := create_paraloc_info_intern(p,callerside,tparaitem(varargspara.first),curintreg,curfloatreg,curmmreg,cur_stack_offset)
  381. else
  382. begin
  383. hp := tparaitem(varargspara.first);
  384. parasize := cur_stack_offset;
  385. while assigned(hp) do
  386. begin
  387. paraloc.size:=def_cgsize(hp.paratype.def);
  388. paraloc.loc:=LOC_REFERENCE;
  389. paraloc.alignment:=4;
  390. paraloc.reference.index:=NR_STACK_POINTER_REG;
  391. l:=push_size(hp.paratyp,hp.paratype.def,p.proccalloption);
  392. paraloc.reference.offset:=parasize;
  393. parasize:=parasize+l;
  394. hp.paraloc[callerside]:=paraloc;
  395. hp:=tparaitem(hp.next);
  396. end;
  397. result := parasize;
  398. end;
  399. if curfloatreg<>firstfloatreg then
  400. include(varargspara.varargsinfo,va_uses_float_reg);
  401. end;
  402. begin
  403. paramanager:=tppcparamanager.create;
  404. end.
  405. {
  406. $Log$
  407. Revision 1.57 2004-01-17 15:55:11 jonas
  408. * fixed allocation of parameters passed by reference for powerpc in
  409. callee
  410. Revision 1.56 2004/01/15 14:01:18 florian
  411. + x86 instruction tables for x86-64 extended
  412. Revision 1.55 2003/12/28 22:09:12 florian
  413. + setting of bit 6 of cr for c var args on ppc implemented
  414. Revision 1.54 2003/12/28 15:33:06 jonas
  415. * hopefully fixed varargs (both Pascal- and C-style)
  416. Revision 1.53 2003/12/16 21:49:47 florian
  417. * fixed ppc compilation
  418. Revision 1.52 2003/12/07 22:35:05 florian
  419. + dummy tppcparamanager.create_varargs_paraloc_info added
  420. Revision 1.51 2003/11/29 16:27:19 jonas
  421. * fixed several ppc assembler reader related problems
  422. * local vars in assembler procedures now start at offset 4
  423. * fixed second_int_to_bool (apparently an integer can be in LOC_JUMP??)
  424. Revision 1.50 2003/10/17 14:52:07 peter
  425. * fixed ppc build
  426. Revision 1.49 2003/10/08 21:15:27 olle
  427. * changed to symbolic const for alignment
  428. Revision 1.47 2003/10/01 20:34:49 peter
  429. * procinfo unit contains tprocinfo
  430. * cginfo renamed to cgbase
  431. * moved cgmessage to verbose
  432. * fixed ppc and sparc compiles
  433. Revision 1.46 2003/09/14 21:56:41 jonas
  434. + implemented volatile register queries
  435. Revision 1.45 2003/09/14 16:37:20 jonas
  436. * fixed some ppc problems
  437. Revision 1.44 2003/09/03 21:04:14 peter
  438. * some fixes for ppc
  439. Revision 1.43 2003/09/03 19:35:24 peter
  440. * powerpc compiles again
  441. Revision 1.42 2003/08/11 21:18:20 peter
  442. * start of sparc support for newra
  443. Revision 1.41 2003/07/05 20:11:41 jonas
  444. * create_paraloc_info() is now called separately for the caller and
  445. callee info
  446. * fixed ppc cycle
  447. Revision 1.40 2003/07/02 22:18:04 peter
  448. * paraloc splitted in callerparaloc,calleeparaloc
  449. * sparc calling convention updates
  450. Revision 1.39 2003/06/17 17:27:08 jonas
  451. - removed allocparaloc/freeparaloc, generic ones are ok now
  452. Revision 1.38 2003/06/17 16:34:44 jonas
  453. * lots of newra fixes (need getfuncretparaloc implementation for i386)!
  454. * renamed all_intregisters to volatile_intregisters and made it
  455. processor dependent
  456. Revision 1.37 2003/06/09 14:54:26 jonas
  457. * (de)allocation of registers for parameters is now performed properly
  458. (and checked on the ppc)
  459. - removed obsolete allocation of all parameter registers at the start
  460. of a procedure (and deallocation at the end)
  461. Revision 1.36 2003/06/08 10:52:01 jonas
  462. * zero paraloc tregisters, so that the alignment bytes are 0 (otherwise
  463. the crc of the ppu files can change between interface and
  464. implementation)
  465. Revision 1.35 2003/06/07 18:57:04 jonas
  466. + added freeintparaloc
  467. * ppc get/freeintparaloc now check whether the parameter regs are
  468. properly allocated/deallocated (and get an extra list para)
  469. * ppc a_call_* now internalerrors if pi_do_call is not yet set
  470. * fixed lot of missing pi_do_call's
  471. Revision 1.34 2003/05/30 23:45:49 marco
  472. * register skipping (aligning) for int64 parameters, sys V abi only.
  473. Revision 1.33 2003/05/30 22:54:19 marco
  474. * getfuncretparaloc now uses r3 for highdword and r4 for lo. Doesn't work tho
  475. Revision 1.32 2003/05/30 22:35:03 marco
  476. * committed fix that swaps int64 parameters hi and lo.
  477. Revision 1.31 2003/05/24 11:48:40 jonas
  478. * added some missing paralocation size settings
  479. Revision 1.30 2003/05/19 12:15:28 florian
  480. * fixed calling sequence for subroutines using the aix abi
  481. Revision 1.29 2003/05/12 20:14:47 florian
  482. * fixed parameter passing by value of large sets, strings and method pointers
  483. Revision 1.28 2003/05/11 23:19:32 florian
  484. * fixed passing of small const arrays and const records, they are always passed by reference
  485. Revision 1.27 2003/04/26 11:30:59 florian
  486. * fixed the powerpc to work with the new function result handling
  487. Revision 1.26 2003/04/23 12:35:35 florian
  488. * fixed several issues with powerpc
  489. + applied a patch from Jonas for nested function calls (PowerPC only)
  490. * ...
  491. Revision 1.25 2003/04/17 18:52:35 jonas
  492. * process para's from first to last instead of the other way round
  493. Revision 1.24 2003/04/16 07:55:07 jonas
  494. * fixed paralocation for integer var/out parameters
  495. Revision 1.23 2003/03/11 21:46:24 jonas
  496. * lots of new regallocator fixes, both in generic and ppc-specific code
  497. (ppc compiler still can't compile the linux system unit though)
  498. Revision 1.22 2003/01/09 22:00:53 florian
  499. * fixed some PowerPC issues
  500. Revision 1.21 2003/01/09 20:41:10 florian
  501. * fixed broken PowerPC compiler
  502. Revision 1.20 2003/01/09 11:22:14 olle
  503. * made powerpc compiler compile after Daniels Tregister modification
  504. Revision 1.19 2003/01/08 18:43:58 daniel
  505. * Tregister changed into a record
  506. Revision 1.18 2002/12/15 19:22:01 florian
  507. * fixed some crashes and a rte 201
  508. Revision 1.17 2002/11/25 17:43:27 peter
  509. * splitted defbase in defutil,symutil,defcmp
  510. * merged isconvertable and is_equal into compare_defs(_ext)
  511. * made operator search faster by walking the list only once
  512. Revision 1.16 2002/11/18 17:32:01 peter
  513. * pass proccalloption to ret_in_xxx and push_xxx functions
  514. Revision 1.15 2002/10/02 13:33:36 jonas
  515. + set, variant support in getfuncretparaloc
  516. Revision 1.14 2002/09/28 21:27:16 florian
  517. + getparaloc supports now sets and variants
  518. Revision 1.13 2002/09/10 21:28:05 jonas
  519. * int64 paras are now handled correctly (until the registers are used up
  520. anyway :)
  521. * the return location is now initialized correctly
  522. * fixed bug where ret_in_reg() was called for the procdefinition instead
  523. of for the result of the procedure
  524. Revision 1.12 2002/09/09 09:11:37 florian
  525. - removed passes_parameters_in_reg
  526. Revision 1.11 2002/09/07 17:54:59 florian
  527. * first part of PowerPC fixes
  528. Revision 1.10 2002/09/01 21:04:49 florian
  529. * several powerpc related stuff fixed
  530. Revision 1.9 2002/08/31 12:43:31 florian
  531. * ppc compilation fixed
  532. Revision 1.8 2002/08/18 10:42:38 florian
  533. * remaining assembler writer bugs fixed, the errors in the
  534. system unit are inline assembler problems
  535. Revision 1.7 2002/08/17 22:09:47 florian
  536. * result type handling in tcgcal.pass_2 overhauled
  537. * better tnode.dowrite
  538. * some ppc stuff fixed
  539. Revision 1.6 2002/08/13 21:40:58 florian
  540. * more fixes for ppc calling conventions
  541. Revision 1.5 2002/07/30 20:50:44 florian
  542. * the code generator knows now if parameters are in registers
  543. Revision 1.4 2002/07/28 20:45:22 florian
  544. + added direct assembler reader for PowerPC
  545. Revision 1.3 2002/07/26 22:22:10 florian
  546. * several PowerPC related fixes to get forward with system unit compilation
  547. Revision 1.2 2002/07/11 14:41:34 florian
  548. * start of the new generic parameter handling
  549. Revision 1.1 2002/07/07 09:44:32 florian
  550. * powerpc target fixed, very simple units can be compiled
  551. }