2
0

nppccal.pas 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. Implements the PowerPC specific part of call nodes
  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 bymethodpointer
  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 nppccal;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. symdef,node,ncal,ncgcal;
  23. type
  24. tppccallnode = class(tcgcallnode)
  25. end;
  26. implementation
  27. uses
  28. globtype,systems,
  29. cutils,verbose,globals,
  30. symconst,symbase,symsym,symtable,defutil,paramgr,
  31. {$ifdef GDB}
  32. {$ifdef delphi}
  33. sysutils,
  34. {$else}
  35. strings,
  36. {$endif}
  37. gdb,
  38. {$endif GDB}
  39. cgbase,pass_2,
  40. cpuinfo,cpubase,aasmbase,aasmtai,aasmcpu,
  41. nmem,nld,ncnv,
  42. ncgutil,cgobj,tgobj,regvars,rgobj,rgcpu,
  43. cg64f32,cgcpu,cpupi,procinfo;
  44. begin
  45. ccallnode:=tppccallnode;
  46. end.
  47. {
  48. $Log$
  49. Revision 1.22 2003-10-01 20:34:49 peter
  50. * procinfo unit contains tprocinfo
  51. * cginfo renamed to cgbase
  52. * moved cgmessage to verbose
  53. * fixed ppc and sparc compiles
  54. Revision 1.21 2003/09/03 19:35:24 peter
  55. * powerpc compiles again
  56. Revision 1.20 2003/07/08 21:24:59 peter
  57. * sparc fixes
  58. Revision 1.19 2003/07/06 20:25:03 jonas
  59. * fixed ppc compiler
  60. Revision 1.18 2003/06/13 21:19:32 peter
  61. * current_procdef removed, use current_procinfo.procdef instead
  62. Revision 1.17 2003/06/04 11:58:58 jonas
  63. * calculate localsize also in g_return_from_proc since it's now called
  64. before g_stackframe_entry (still have to fix macos)
  65. * compilation fixes (cycle doesn't work yet though)
  66. Revision 1.16 2003/05/25 14:32:42 jonas
  67. * fixed register numbering bug
  68. Revision 1.15 2003/05/24 11:47:27 jonas
  69. * fixed framepointer storage: it's now always stored at r1+12, which is
  70. a place in the link area reserved for compiler use.
  71. Revision 1.14 2003/05/23 18:51:26 jonas
  72. * fixed support for nested procedures and more parameters than those
  73. which fit in registers (untested/probably not working: calling a
  74. nested procedure from a deeper nested procedure)
  75. Revision 1.13 2003/05/18 15:15:59 florian
  76. + added abi field to tsysteminfo
  77. Revision 1.12 2003/05/16 23:15:51 jonas
  78. * workaround for nested procedures until Peter fixes it properly :)
  79. Revision 1.11 2003/05/16 20:00:39 jonas
  80. * powerpc nested procedure fixes, should work completely now if all
  81. local variables of the parent procedure are declared before the
  82. nested procedures are declared
  83. Revision 1.10 2003/04/27 11:21:36 peter
  84. * aktprocdef renamed to current_procinfo.procdef
  85. * procinfo renamed to current_procinfo
  86. * procinfo will now be stored in current_module so it can be
  87. cleaned up properly
  88. * gen_main_procsym changed to create_main_proc and release_main_proc
  89. to also generate a tprocinfo structure
  90. * fixed unit implicit initfinal
  91. Revision 1.9 2003/04/27 10:41:47 florian
  92. * fixed nested procedures to get them working as before
  93. Revision 1.8 2003/04/27 07:48:05 peter
  94. * updated for removed lexlevel
  95. Revision 1.7 2003/04/24 11:24:00 florian
  96. * fixed several issues with nested procedures
  97. Revision 1.6 2003/04/23 12:35:35 florian
  98. * fixed several issues with powerpc
  99. + applied a patch from Jonas for nested function calls (PowerPC only)
  100. * ...
  101. Revision 1.5 2003/04/04 15:38:56 peter
  102. * moved generic code from n386cal to ncgcal, i386 now also
  103. uses the generic ncgcal
  104. Revision 1.4 2002/12/05 14:28:12 florian
  105. * some variant <-> dyn. array stuff
  106. Revision 1.3 2002/11/25 17:43:28 peter
  107. * splitted defbase in defutil,symutil,defcmp
  108. * merged isconvertable and is_equal into compare_defs(_ext)
  109. * made operator search faster by walking the list only once
  110. Revision 1.2 2002/08/17 09:23:49 florian
  111. * first part of procinfo rewrite
  112. Revision 1.1 2002/08/13 21:40:59 florian
  113. * more fixes for ppc calling conventions
  114. }