fpcdefs.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {$ifdef FPC}
  2. {$mode objfpc}
  3. {$asmmode default}
  4. {$H-}
  5. {$goto on}
  6. {$inline on}
  7. { 1Mb stack }
  8. {$MEMORY 1000000}
  9. { This reduces the memory requirements a lot }
  10. {$PACKENUM 1}
  11. {$ifndef VER1_0}
  12. { We don't use exceptions, so turn off the implicit
  13. exceptions in the constructors }
  14. {$IMPLICITEXCEPTIONS OFF}
  15. { Inline small functions, but not when EXTDEBUG is used }
  16. {$ifndef EXTDEBUG}
  17. {$define USEINLINE}
  18. {$endif EXTDEBUG}
  19. {$else}
  20. { Optimizer is broken when compiling with optimizations using 1.0.x }
  21. {$ifndef USEOPT}
  22. {$define NOOPT}
  23. {$endif}
  24. { 1.0.x generates broken code for sysutils }
  25. {$ifndef FORCE_SYSUTILS}
  26. {$undef USE_SYSUTILS}
  27. {$endif}
  28. {$endif VER1_0}
  29. {$ifdef VER1_9_4}
  30. { 1.9.4 generates broken code for sysutils }
  31. {$ifndef FORCE_SYSUTILS}
  32. {$undef USE_SYSUTILS}
  33. {$endif}
  34. {$endif}
  35. {$define FPCPROCVAR}
  36. {$define USEEXCEPT}
  37. {$ifdef cpuarm}
  38. {$packrecords c}
  39. {$endif cpuarm}
  40. {$endif}
  41. {$ifdef i386}
  42. {$define x86}
  43. {$define cpuflags}
  44. {$define cpuextended}
  45. {$endif i386}
  46. {$ifdef x86_64}
  47. {$define x86}
  48. {$define cpuflags}
  49. {$define cpu64bit}
  50. {$define cpuextended}
  51. {$define cpufloat128}
  52. {$define noopt}
  53. {$define cputargethasfixedstack}
  54. {$endif x86_64}
  55. {$ifdef alpha}
  56. {$define cpu64bit}
  57. {$define noopt}
  58. {$endif alpha}
  59. {$ifdef sparc}
  60. {$define cpuflags}
  61. {$define noopt}
  62. {$define cputargethasfixedstack}
  63. {$define cpurequiresproperalignment}
  64. {$endif sparc}
  65. {$ifdef powerpc}
  66. {$define cpuflags}
  67. {$define noopt}
  68. {define oldregvars}
  69. {$endif powerpc}
  70. {$ifdef arm}
  71. {$define cpuflags}
  72. {$define cpuneedsdiv32helper}
  73. {$define cputargethasfixedstack}
  74. {$define noopt}
  75. {$define cpurequiresproperalignment}
  76. {$endif arm}
  77. {$ifdef m68k}
  78. {$define cpuflags}
  79. {$define cpufpemu}
  80. {$define noopt}
  81. {$endif m68k}
  82. {
  83. $Log$
  84. Revision 1.44 2004-10-14 18:29:22 peter
  85. * disable USE_SYSUTILS when compiled with 1.9.4 or 1.0.x
  86. Revision 1.43 2004/10/10 14:57:29 jonas
  87. - disabled oldregvars because it no longer compiles
  88. Revision 1.42 2004/10/04 21:23:15 florian
  89. * rtti alignment fixed
  90. Revision 1.41 2004/09/21 19:59:51 peter
  91. * x86_64 fixes
  92. * cleanup of fpcdefs.icn
  93. Revision 1.40 2004/09/21 17:25:12 peter
  94. * paraloc branch merged
  95. Revision 1.39.4.1 2004/08/31 20:43:06 peter
  96. * paraloc patch
  97. Revision 1.39 2004/08/15 13:30:18 florian
  98. * fixed alignment of variant records
  99. * more alignment problems fixed
  100. Revision 1.38 2004/06/20 08:55:29 florian
  101. * logs truncated
  102. Revision 1.37 2004/06/16 20:07:07 florian
  103. * dwarf branch merged
  104. Revision 1.36 2004/05/30 21:20:40 jonas
  105. * enable regvars by default for PPC
  106. Revision 1.35.2.4 2004/05/02 12:45:32 peter
  107. * enabled cpuhasfixedstack for x86-64 again
  108. * fixed size of temp allocation for parameters
  109. Revision 1.35.2.3 2004/05/02 01:02:24 peter
  110. * remove fixed stack for x86-64
  111. Revision 1.35.2.2 2004/04/29 23:30:28 peter
  112. * fix i386 compiler
  113. }