rgcpu.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the i386 specific class for the register
  5. allocator
  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 rgcpu;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. cpubase,
  24. cpuinfo,
  25. aasmbase,aasmtai,aasmcpu,
  26. cclasses,globtype,cgbase,cginfo,rgobj;
  27. type
  28. trgcpu = class(trgobj)
  29. fpuvaroffset : byte;
  30. { to keep the same allocation order as with the old routines }
  31. function getregisterint(list:Taasmoutput;size:Tcgsize):Tregister;override;
  32. procedure ungetregisterint(list:Taasmoutput;r:Tregister); override;
  33. function getexplicitregisterint(list:Taasmoutput;r:Tnewregister):Tregister;override;
  34. function getregisterfpu(list: taasmoutput) : tregister; override;
  35. procedure ungetregisterfpu(list: taasmoutput; r : tregister); override;
  36. procedure ungetreference(list: taasmoutput; const ref : treference); override;
  37. {# Returns a subset register of the register r with the specified size.
  38. WARNING: There is no clearing of the upper parts of the register,
  39. if a 8-bit / 16-bit register is converted to a 32-bit register.
  40. It is up to the code generator to correctly zero fill the register
  41. }
  42. function makeregsize(reg: tregister; size: tcgsize): tregister; override;
  43. { pushes and restores registers }
  44. procedure pushusedintregisters(list:Taasmoutput;
  45. var pushed:Tpushedsavedint;
  46. const s:Tsupregset);
  47. procedure pushusedotherregisters(list:Taasmoutput;
  48. var pushed:Tpushedsaved;
  49. const s:Tregisterset);
  50. procedure popusedintregisters(list:Taasmoutput;
  51. const pushed:Tpushedsavedint);
  52. procedure popusedotherregisters(list:Taasmoutput;
  53. const pushed:Tpushedsaved);
  54. procedure saveusedintregisters(list:Taasmoutput;
  55. var saved:Tpushedsavedint;
  56. const s:Tsupregset);override;
  57. procedure saveusedotherregisters(list:Taasmoutput;
  58. var saved:Tpushedsaved;
  59. const s:Tregisterset);override;
  60. procedure restoreusedintregisters(list:Taasmoutput;
  61. const saved:Tpushedsavedint);override;
  62. procedure restoreusedotherregisters(list:Taasmoutput;
  63. const saved:Tpushedsaved);override;
  64. procedure resetusableregisters;override;
  65. { corrects the fpu stack register by ofs }
  66. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  67. end;
  68. implementation
  69. uses
  70. systems,
  71. globals,verbose,
  72. tgobj;
  73. {************************************************************************}
  74. { routine helpers }
  75. {************************************************************************}
  76. const
  77. reg2reg32 : array[firstreg..lastreg] of Toldregister = (R_NO,
  78. R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI,
  79. R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI,
  80. R_EAX,R_ECX,R_EDX,R_EBX,R_NO,R_NO,R_NO,R_NO,
  81. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  82. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  83. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  84. R_NO,R_NO,R_NO,R_NO,
  85. R_NO,R_NO,R_NO,R_NO,R_NO,
  86. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  87. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  88. );
  89. reg2reg16 : array[firstreg..lastreg] of Toldregister = (R_NO,
  90. R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI,
  91. R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI,
  92. R_AX,R_CX,R_DX,R_BX,R_NO,R_NO,R_NO,R_NO,
  93. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  94. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  95. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  96. R_NO,R_NO,R_NO,R_NO,
  97. R_NO,R_NO,R_NO,R_NO,R_NO,
  98. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  99. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  100. );
  101. reg2reg8 : array[firstreg..lastreg] of Toldregister = (R_NO,
  102. R_AL,R_CL,R_DL,R_BL,R_NO,R_NO,R_NO,R_NO,
  103. R_AL,R_CL,R_DL,R_BL,R_NO,R_NO,R_NO,R_NO,
  104. R_AL,R_CL,R_DL,R_BL,R_NO,R_NO,R_NO,R_NO,
  105. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  106. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  107. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  108. R_NO,R_NO,R_NO,R_NO,
  109. R_NO,R_NO,R_NO,R_NO,R_NO,
  110. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  111. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  112. );
  113. { convert a register to a specfied register size }
  114. function changeregsize(r:tregister;size:topsize):tregister;
  115. var
  116. reg : tregister;
  117. begin
  118. case size of
  119. S_B :
  120. reg.enum:=reg2reg8[r.enum];
  121. S_W :
  122. reg.enum:=reg2reg16[r.enum];
  123. S_L :
  124. reg.enum:=reg2reg32[r.enum];
  125. else
  126. internalerror(200204101);
  127. end;
  128. if reg.enum=R_NO then
  129. internalerror(200204102);
  130. changeregsize:=reg;
  131. end;
  132. {************************************************************************}
  133. { trgcpu }
  134. {************************************************************************}
  135. function trgcpu.getregisterint(list:Taasmoutput;size:Tcgsize):Tregister;
  136. var subreg:Tsubregister;
  137. begin
  138. case size of
  139. OS_8,OS_S8:
  140. subreg:=R_SUBL;
  141. OS_16,OS_S16:
  142. subreg:=R_SUBW;
  143. OS_32,OS_S32:
  144. subreg:=R_SUBD;
  145. OS_64,OS_S64:
  146. subreg:=R_SUBQ;
  147. else
  148. internalerror(200301102);
  149. end;
  150. if countunusedregsint=0 then
  151. internalerror(10);
  152. getregisterint.enum:=R_INTREGISTER;
  153. {$ifdef TEMPREGDEBUG}
  154. if curptree^.usableregsint-countunusedregsint>curptree^.registers32 then
  155. internalerror(10);
  156. {$endif TEMPREGDEBUG}
  157. {$ifdef EXTTEMPREGDEBUG}
  158. if curptree^.usableregs-countunusedregistersint>curptree^^.reallyusedregs then
  159. curptree^.reallyusedregs:=curptree^^.usableregs-countunusedregistersint;
  160. {$endif EXTTEMPREGDEBUG}
  161. dec(countunusedregsint);
  162. if RS_EAX in unusedregsint then
  163. begin
  164. exclude(unusedregsint,RS_EAX);
  165. include(usedintinproc,RS_EAX);
  166. getregisterint.number:=RS_EAX shl 8 or subreg;
  167. {$ifdef TEMPREGDEBUG}
  168. reg_user[R_EAX]:=curptree^;
  169. {$endif TEMPREGDEBUG}
  170. exprasmlist.concat(tai_regalloc.alloc(getregisterint));
  171. end
  172. else if RS_EDX in unusedregsint then
  173. begin
  174. exclude(unusedregsint,RS_EDX);
  175. include(usedintinproc,RS_EDX);
  176. getregisterint.number:=RS_EDX shl 8 or subreg;
  177. {$ifdef TEMPREGDEBUG}
  178. reg_user[R_EDX]:=curptree^;
  179. {$endif TEMPREGDEBUG}
  180. exprasmlist.concat(tai_regalloc.alloc(getregisterint));
  181. end
  182. else if RS_EBX in unusedregsint then
  183. begin
  184. exclude(unusedregsint,RS_EBX);
  185. include(usedintinproc,RS_EBX);
  186. getregisterint.number:=RS_EBX shl 8 or subreg;
  187. {$ifdef TEMPREGDEBUG}
  188. reg_user[R_EBX]:=curptree^;
  189. {$endif TEMPREGDEBUG}
  190. exprasmlist.concat(tai_regalloc.alloc(getregisterint));
  191. end
  192. else if RS_ECX in unusedregsint then
  193. begin
  194. exclude(unusedregsint,RS_ECX);
  195. include(usedintinproc,RS_ECX);
  196. getregisterint.number:=RS_ECX shl 8 or subreg;
  197. {$ifdef TEMPREGDEBUG}
  198. reg_user[R_ECX]:=curptree^;
  199. {$endif TEMPREGDEBUG}
  200. exprasmlist.concat(tai_regalloc.alloc(getregisterint));
  201. end
  202. else internalerror(10);
  203. {$ifdef TEMPREGDEBUG}
  204. testregisters;
  205. {$endif TEMPREGDEBUG}
  206. end;
  207. procedure trgcpu.ungetregisterint(list: taasmoutput; r : tregister);
  208. var supreg:Tsuperregister;
  209. begin
  210. if r.enum=R_NO then
  211. exit;
  212. if r.enum<>R_INTREGISTER then
  213. internalerror(200301234);
  214. supreg:=r.number shr 8;
  215. if (supreg = RS_EDI) or
  216. ((not assigned(procinfo._class)) and (supreg = RS_ESI)) then
  217. begin
  218. list.concat(tai_regalloc.DeAlloc(r));
  219. exit;
  220. end;
  221. if not(supreg in [RS_EAX,RS_EBX,RS_ECX,RS_EDX]) then
  222. exit;
  223. inherited ungetregisterint(list,r);
  224. end;
  225. function trgcpu.getexplicitregisterint(list:Taasmoutput;r:Tnewregister):Tregister;
  226. var r2:Tregister;
  227. begin
  228. if (r shr 8) in [RS_ESI,RS_EDI] then
  229. begin
  230. r2.enum:=R_INTREGISTER;
  231. r2.number:=r;
  232. list.concat(Tai_regalloc.alloc(r2));
  233. getexplicitregisterint:=r2;
  234. exit;
  235. end;
  236. result:=inherited getexplicitregisterint(list,r);
  237. end;
  238. function trgcpu.getregisterfpu(list: taasmoutput) : tregister;
  239. begin
  240. { note: don't return R_ST0, see comments above implementation of }
  241. { a_loadfpu_* methods in cgcpu (JM) }
  242. result.enum := R_ST;
  243. end;
  244. procedure trgcpu.ungetregisterfpu(list : taasmoutput; r : tregister);
  245. begin
  246. { nothing to do, fpu stack management is handled by the load/ }
  247. { store operations in cgcpu (JM) }
  248. end;
  249. procedure trgcpu.ungetreference(list: taasmoutput; const ref : treference);
  250. begin
  251. ungetregisterint(list,ref.base);
  252. ungetregisterint(list,ref.index);
  253. end;
  254. procedure trgcpu.pushusedintregisters(list:Taasmoutput;
  255. var pushed:Tpushedsavedint;
  256. const s:Tsupregset);
  257. var r:Tsuperregister;
  258. r2:Tregister;
  259. begin
  260. usedintinproc:=usedintinproc+s;
  261. for r:=RS_EAX to RS_EDX do
  262. begin
  263. r2.enum:=R_INTREGISTER;
  264. r2.number:=r shl 8 or R_SUBWHOLE;
  265. pushed[r].pushed:=false;
  266. { if the register is used by the calling subroutine }
  267. if not(r in is_reg_var_int) and (r in s) and
  268. { and is present in use }
  269. not(r in unusedregsint) then
  270. begin
  271. { then save it }
  272. list.concat(Taicpu.Op_reg(A_PUSH,S_L,r2));
  273. include(unusedregsint,r);
  274. inc(countunusedregsint);
  275. pushed[r].pushed:=true;
  276. end;
  277. end;
  278. {$ifdef TEMPREGDEBUG}
  279. testregisters;
  280. {$endif TEMPREGDEBUG}
  281. end;
  282. {$ifdef SUPPORT_MMX}
  283. procedure trgcpu.pushusedotherregisters(list:Taasmoutput;
  284. var pushed:Tpushedsaved;
  285. const s:Tregisterset);
  286. var r:Toldregister;
  287. r2:Tregister;
  288. hr:Treference;
  289. begin
  290. usedinproc:=usedinproc+s;
  291. for r:=R_MM0 to R_MM6 do
  292. begin
  293. pushed[r].pushed:=false;
  294. { if the register is used by the calling subroutine }
  295. if not is_reg_var[r] and
  296. (r in s) and
  297. { and is present in use }
  298. not(r in unusedregsmm) then
  299. begin
  300. r2.enum:=R_ESP;
  301. list.concat(Taicpu.Op_const_reg(A_SUB,S_L,8,r2));
  302. reference_reset_base(hr,r2,0);
  303. r2.enum:=r;
  304. list.concat(Taicpu.Op_reg_ref(A_MOVQ,S_NO,r2,hr));
  305. include(unusedregsmm,r);
  306. inc(countunusedregsmm);
  307. pushed[r].pushed:=true;
  308. end;
  309. end;
  310. {$ifdef TEMPREGDEBUG}
  311. testregisters;
  312. {$endif TEMPREGDEBUG}
  313. end;
  314. {$endif SUPPORT_MMX}
  315. procedure trgcpu.popusedintregisters(list:Taasmoutput;
  316. const pushed:Tpushedsavedint);
  317. var r:Tsuperregister;
  318. r2:Tregister;
  319. begin
  320. { restore in reverse order: }
  321. for r:=RS_EDX downto RS_EAX do
  322. if pushed[r].pushed then
  323. begin
  324. r2.enum:=R_INTREGISTER;
  325. r2.number:=r shl 8 or R_SUBWHOLE;
  326. list.concat(Taicpu.op_reg(A_POP,S_L,r2));
  327. if not (r in unusedregsint) then
  328. { internalerror(10)
  329. in cg386cal we always restore regs
  330. that appear as used
  331. due to a unused tmep storage PM }
  332. else
  333. dec(countunusedregsint);
  334. exclude(unusedregsint,r);
  335. end;
  336. {$ifdef TEMPREGDEBUG}
  337. testregisters;
  338. {$endif TEMPREGDEBUG}
  339. end;
  340. {$ifdef SUPPORT_MMX}
  341. procedure trgcpu.popusedotherregisters(list:Taasmoutput;
  342. const pushed:Tpushedsaved);
  343. var r:Toldregister;
  344. r2,r3:Tregister;
  345. hr:Treference;
  346. begin
  347. { restore in reverse order: }
  348. for r:=R_MM6 downto R_MM0 do
  349. if pushed[r].pushed then
  350. begin
  351. r2.enum:=R_ESP;
  352. reference_reset_base(hr,r2,0);
  353. r3.enum:=r;
  354. list.concat(Taicpu.op_ref_reg(A_MOVQ,S_NO,hr,r3));
  355. list.concat(Taicpu.op_const_reg(A_ADD,S_L,8,r2));
  356. if not (r in unusedregsmm) then
  357. { internalerror(10)
  358. in cg386cal we always restore regs
  359. that appear as used
  360. due to a unused tmep storage PM }
  361. else
  362. dec(countunusedregsmm);
  363. exclude(unusedregsmm,r);
  364. end;
  365. {$ifdef TEMPREGDEBUG}
  366. testregisters;
  367. {$endif TEMPREGDEBUG}
  368. end;
  369. {$endif SUPPORT_MMX}
  370. procedure trgcpu.saveusedintregisters(list:Taasmoutput;
  371. var saved:Tpushedsavedint;
  372. const s:Tsupregset);
  373. begin
  374. if (aktoptprocessor in [class386,classP5]) or
  375. (CS_LittleSize in aktglobalswitches) then
  376. pushusedintregisters(list,saved,s)
  377. else
  378. inherited saveusedintregisters(list,saved,s);
  379. end;
  380. procedure trgcpu.saveusedotherregisters(list:Taasmoutput;var saved:Tpushedsaved;
  381. const s:tregisterset);
  382. begin
  383. if (aktoptprocessor in [class386,classP5]) or
  384. (CS_LittleSize in aktglobalswitches) then
  385. pushusedotherregisters(list,saved,s)
  386. else
  387. inherited saveusedotherregisters(list,saved,s);
  388. end;
  389. procedure trgcpu.restoreusedintregisters(list:Taasmoutput;
  390. const saved:tpushedsavedint);
  391. begin
  392. if (aktoptprocessor in [class386,classP5]) or
  393. (CS_LittleSize in aktglobalswitches) then
  394. popusedintregisters(list,saved)
  395. else
  396. inherited restoreusedintregisters(list,saved);
  397. end;
  398. procedure trgcpu.restoreusedotherregisters(list:Taasmoutput;
  399. const saved:tpushedsaved);
  400. begin
  401. if (aktoptprocessor in [class386,classP5]) or
  402. (CS_LittleSize in aktglobalswitches) then
  403. popusedotherregisters(list,saved)
  404. else
  405. inherited restoreusedotherregisters(list,saved);
  406. end;
  407. procedure trgcpu.resetusableregisters;
  408. begin
  409. inherited resetusableregisters;
  410. fpuvaroffset := 0;
  411. end;
  412. function trgcpu.correct_fpuregister(r : tregister;ofs : byte) : tregister;
  413. begin
  414. correct_fpuregister.enum:=Toldregister(longint(r.enum)+ofs);
  415. end;
  416. function trgcpu.makeregsize(reg: tregister; size: tcgsize): tregister;
  417. var
  418. _result : topsize;
  419. begin
  420. case size of
  421. OS_32,OS_S32:
  422. begin
  423. _result := S_L;
  424. end;
  425. OS_8,OS_S8:
  426. begin
  427. _result := S_B;
  428. end;
  429. OS_16,OS_S16:
  430. begin
  431. _result := S_W;
  432. end;
  433. else
  434. internalerror(2001092312);
  435. end;
  436. makeregsize := changeregsize(reg,_result);
  437. end;
  438. initialization
  439. rg := trgcpu.create;
  440. end.
  441. {
  442. $Log$
  443. Revision 1.12 2003-02-19 22:00:16 daniel
  444. * Code generator converted to new register notation
  445. - Horribily outdated todo.txt removed
  446. Revision 1.11 2003/01/08 18:43:57 daniel
  447. * Tregister changed into a record
  448. Revision 1.10 2002/10/05 12:43:29 carl
  449. * fixes for Delphi 6 compilation
  450. (warning : Some features do not work under Delphi)
  451. Revision 1.9 2002/08/17 09:23:48 florian
  452. * first part of procinfo rewrite
  453. Revision 1.8 2002/07/01 18:46:34 peter
  454. * internal linker
  455. * reorganized aasm layer
  456. Revision 1.7 2002/05/16 19:46:52 carl
  457. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  458. + try to fix temp allocation (still in ifdef)
  459. + generic constructor calls
  460. + start of tassembler / tmodulebase class cleanup
  461. Revision 1.6 2002/05/12 16:53:18 peter
  462. * moved entry and exitcode to ncgutil and cgobj
  463. * foreach gets extra argument for passing local data to the
  464. iterator function
  465. * -CR checks also class typecasts at runtime by changing them
  466. into as
  467. * fixed compiler to cycle with the -CR option
  468. * fixed stabs with elf writer, finally the global variables can
  469. be watched
  470. * removed a lot of routines from cga unit and replaced them by
  471. calls to cgobj
  472. * u32bit-s32bit updates for and,or,xor nodes. When one element is
  473. u32bit then the other is typecasted also to u32bit without giving
  474. a rangecheck warning/error.
  475. * fixed pascal calling method with reversing also the high tree in
  476. the parast, detected by tcalcst3 test
  477. Revision 1.5 2002/04/21 15:43:32 carl
  478. * changeregsize -> rg.makeregsize
  479. * changeregsize moved from cpubase to here
  480. Revision 1.4 2002/04/15 19:44:22 peter
  481. * fixed stackcheck that would be called recursively when a stack
  482. error was found
  483. * generic changeregsize(reg,size) for i386 register resizing
  484. * removed some more routines from cga unit
  485. * fixed returnvalue handling
  486. * fixed default stacksize of linux and go32v2, 8kb was a bit small :-)
  487. Revision 1.3 2002/04/04 19:06:13 peter
  488. * removed unused units
  489. * use tlocation.size in cg.a_*loc*() routines
  490. Revision 1.2 2002/04/02 17:11:39 peter
  491. * tlocation,treference update
  492. * LOC_CONSTANT added for better constant handling
  493. * secondadd splitted in multiple routines
  494. * location_force_reg added for loading a location to a register
  495. of a specified size
  496. * secondassignment parses now first the right and then the left node
  497. (this is compatible with Kylix). This saves a lot of push/pop especially
  498. with string operations
  499. * adapted some routines to use the new cg methods
  500. Revision 1.1 2002/03/31 20:26:40 jonas
  501. + a_loadfpu_* and a_loadmm_* methods in tcg
  502. * register allocation is now handled by a class and is mostly processor
  503. independent (+rgobj.pas and i386/rgcpu.pas)
  504. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  505. * some small improvements and fixes to the optimizer
  506. * some register allocation fixes
  507. * some fpuvaroffset fixes in the unary minus node
  508. * push/popusedregisters is now called rg.save/restoreusedregisters and
  509. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  510. also better optimizable)
  511. * fixed and optimized register saving/restoring for new/dispose nodes
  512. * LOC_FPU locations now also require their "register" field to be set to
  513. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  514. - list field removed of the tnode class because it's not used currently
  515. and can cause hard-to-find bugs
  516. }