cpupara.pas 24 KB

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