fpcdefs.inc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {$ifdef FPC}
  2. {$ifdef DELPHI}
  3. {$mode delphi}
  4. {$asmmode intel}
  5. {$else}
  6. {$mode objfpc}
  7. {$H-}
  8. {$goto on}
  9. {$inline on}
  10. { This reduces the memory requirements a lot }
  11. {$PACKENUM 1}
  12. {$ifndef VER1_0}
  13. { We don't use exceptions, so turn off the implicit
  14. exceptions in the constructors }
  15. {$IMPLICITEXCEPTIONS OFF}
  16. { Inline small functions }
  17. {$define USEINLINE}
  18. {$else}
  19. { Optimizer is broken when compiling with optimizations using 1.0.x }
  20. {$ifndef USEOPT}
  21. {$define NOOPT}
  22. {$endif}
  23. {$endif VER1_0}
  24. {$define FPCPROCVAR}
  25. {$ifdef I386}
  26. {$define USEEXCEPT}
  27. {$endif}
  28. {$endif}
  29. {$endif}
  30. {$ifdef DELPHI}
  31. {$H-}
  32. {$J+}
  33. {$Z1}
  34. {$undef FPCPROCVAR}
  35. {$endif}
  36. { assume a processor with flags }
  37. {$define cpuflags}
  38. {$ifdef i386}
  39. {$ifdef delphi}
  40. {$define oldset}
  41. {$endif}
  42. {$define x86}
  43. {$define cpuextended}
  44. {$endif i386}
  45. {$ifdef x86_64}
  46. {$define x86}
  47. {$define cpu64bit}
  48. {$define cpuextended}
  49. {$define cpufloat128}
  50. {$endif x86_64}
  51. {$ifdef alpha}
  52. {$define cpu64bit}
  53. {$undef cpuflags}
  54. {$define noopt}
  55. {$define oldset}
  56. {$endif alpha}
  57. {$ifdef sparc}
  58. {$define noopt}
  59. {$define oldset}
  60. {$endif sparc}
  61. {$ifdef powerpc}
  62. {$define noopt}
  63. {$define oldset}
  64. {$endif powerpc}
  65. {$ifdef arm}
  66. {$define cpuneedsdiv32helper}
  67. {$define noopt}
  68. {$define oldset}
  69. {$endif arm}
  70. {$ifdef m68k}
  71. {$define cpufpemu}
  72. {$define noopt}
  73. {$define oldset}
  74. {$endif m68k}
  75. {
  76. $Log$
  77. Revision 1.30 2003-12-14 22:41:46 peter
  78. * USEOPT to override NOOPT for 1.0.x
  79. Revision 1.29 2003/12/14 20:20:14 peter
  80. * disable optimizer again for 1.0.x
  81. Revision 1.28 2003/12/14 14:18:59 peter
  82. * optimizer works again with 1.0.x
  83. * fixed wrong loop in FindRegWithConst
  84. Revision 1.27 2003/11/22 13:11:10 jonas
  85. - disable the optimizer if compiling with 1.0, because it has a code
  86. generator (not optimizer) bug that causes crashes in the 1.1
  87. optimizer
  88. Revision 1.26 2003/10/31 15:51:11 peter
  89. * USEINLINE directive added (not enabled yet)
  90. Revision 1.25 2003/09/06 16:47:24 florian
  91. + support of NaN and Inf in the compiler as values of real constants
  92. Revision 1.24 2003/09/03 15:55:00 peter
  93. * NEWRA branch merged
  94. Revision 1.23 2003/09/03 11:18:36 florian
  95. * fixed arm concatcopy
  96. + arm support in the common compiler sources added
  97. * moved some generic cg code around
  98. + tfputype added
  99. * ...
  100. Revision 1.22.2.2 2003/08/31 21:07:44 daniel
  101. * callparatemp ripped
  102. Revision 1.22.2.1 2003/08/27 20:11:29 peter
  103. * newra default
  104. Revision 1.22 2003/08/11 21:18:20 peter
  105. * start of sparc support for newra
  106. Revision 1.21 2003/07/21 11:52:57 florian
  107. * very basic stuff for the arm
  108. Revision 1.20 2003/05/24 21:12:57 florian
  109. * if something doesn't work with callparatemp, the define callparatemp
  110. should be used because other processors with reigster calling conventions
  111. depend on this as well
  112. Revision 1.19 2003/05/09 17:47:02 peter
  113. * self moved to hidden parameter
  114. * removed hdisposen,hnewn,selfn
  115. Revision 1.18 2003/04/30 09:42:42 florian
  116. + first changes to make self a hidden parameter
  117. Revision 1.17 2003/04/24 22:29:57 florian
  118. * fixed a lot of PowerPC related stuff
  119. Revision 1.16 2003/04/23 13:47:41 peter
  120. * optimizer is x86
  121. Revision 1.15 2003/04/23 12:35:34 florian
  122. * fixed several issues with powerpc
  123. + applied a patch from Jonas for nested function calls (PowerPC only)
  124. * ...
  125. Revision 1.14 2002/12/06 16:56:57 peter
  126. * only compile cs_fp_emulation support when cpufpuemu is defined
  127. * define cpufpuemu for m68k only
  128. Revision 1.13 2002/10/16 19:01:43 peter
  129. + $IMPLICITEXCEPTIONS switch to turn on/off generation of the
  130. implicit exception frames for procedures with initialized variables
  131. and for constructors. The default is on for compatibility
  132. Revision 1.12 2002/10/05 12:43:24 carl
  133. * fixes for Delphi 6 compilation
  134. (warning : Some features do not work under Delphi)
  135. Revision 1.11 2002/09/30 07:00:45 florian
  136. * fixes to common code to get the alpha compiler compiled applied
  137. Revision 1.10 2002/09/29 23:19:05 florian
  138. + added define 64bit
  139. Revision 1.9 2002/09/07 15:25:02 peter
  140. * old logs removed and tabs fixed
  141. Revision 1.8 2002/08/30 13:42:29 mazen
  142. - undefining win32 when SPARC defined removed, no more needed.
  143. Revision 1.6 2002/08/19 18:17:48 carl
  144. + optimize64_op_const_reg implemented (optimizes 64-bit constant opcodes)
  145. * more fixes to m68k for 64-bit operations
  146. Revision 1.5 2002/08/15 15:11:53 carl
  147. * oldset define is now correct for all cpu's except i386
  148. * correct compilation problems because of the above
  149. Revision 1.4 2002/07/23 12:34:29 daniel
  150. * Readded old set code. To use it define 'oldset'. Activated by default
  151. for ppc.
  152. Revision 1.3 2002/07/04 18:56:50 florian
  153. + log added
  154. }