Commit Graph

13910 Commits

Author SHA1 Message Date
svenbarth
ef099b2075 * import library function with a name that does not conflict with the functions exported in the interface
git-svn-id: trunk@45986 -
2020-08-02 10:25:02 +00:00
svenbarth
08949c86bf + readd Randomize with parameter
git-svn-id: trunk@45985 -
2020-08-02 10:24:57 +00:00
svenbarth
107a2e4e85 - remove local Random() implementations that weren't exported anyway (LongInt <> Integer inside the System unit)
git-svn-id: trunk@45981 -
2020-08-01 17:26:39 +00:00
svenbarth
48cc5250f9 * fpc_geteipasebx and fpc_geteipasecx are used as procedures, not functions, so declare them as such
git-svn-id: trunk@45980 -
2020-08-01 17:26:34 +00:00
svenbarth
04cbf32b1b * rename local import of fpc_geteipasebx
git-svn-id: trunk@45979 -
2020-08-01 17:26:29 +00:00
pierre
546a679f4e Add -SfPROCESSES for arm cpu, to be able to compile fcl-base package as for xtensa
git-svn-id: trunk@45968 -
2020-07-30 14:22:05 +00:00
pierre
93fc5abe8b Use same parameters as in fileutilh.inc for the handle variant of FileSetDate overloaded function
git-svn-id: trunk@45967 -
2020-07-30 14:08:22 +00:00
florian
769a8fa248 + patch by fanjinke: Hygon support for the mmx unit, resolves #37391
git-svn-id: trunk@45848 -
2020-07-24 20:53:54 +00:00
yury
6edbc9ed7e * tinyheap: Early check for very big requested mem sizes in order to prevent overflows and properly report the out of memory error.
git-svn-id: trunk@45844 -
2020-07-24 16:02:13 +00:00
pierre
2e6bba76bf Define __USE_LARGEFILE64 for sparc-linux, and adapt filed ffree type to that macro
git-svn-id: trunk@45837 -
2020-07-23 21:03:19 +00:00
pierre
1d5c714ff2 Fix error in assembly startup code for sparc linux
git-svn-id: trunk@45836 -
2020-07-23 20:59:03 +00:00
florian
e26e824700 + more helper routine to check for CPU features added
git-svn-id: trunk@45835 -
2020-07-23 20:57:45 +00:00
pierre
9f60f5093d F_GetLk/SetLk have different values for sparc/sparc64
git-svn-id: trunk@45829 -
2020-07-22 23:15:03 +00:00
florian
c01db96df4 + functions to check for Popcnt support
git-svn-id: trunk@45827 -
2020-07-22 20:47:11 +00:00
pierre
adf064cbb4 New: rtl/inc/genmathh.inc source file, to provide a unique position
for the interface definition of float64 and float32 records,
  available to all systems if FPUNONE is not defined.

  rtl/inc/genmath.inc: Remove float64/float32, as they are now in rtl/inc/genmathh.inc
  rtl/inc/softfpu.pp: Use provided definitions of float32 and float64
  if available (by checking presence of FPC_SYSTEM_HAS_floatXX macro)

  rtl/inc/systemh.inc: include genmathh.inc if FPUNONE is not defined.
  rtl/java/jsystemh_types.inc: Likewise.

git-svn-id: trunk@45821 -
2020-07-21 14:24:14 +00:00
florian
d6d92e3666 * revert part of r44879: flock must use kernel_off_t: off_t breaks e.g. i386
git-svn-id: trunk@45810 -
2020-07-19 19:54:22 +00:00
michael
b7bd9f3325 * Add TerminatedSet (delphi compatibility, bug ID #37388)
git-svn-id: trunk@45805 -
2020-07-18 22:35:36 +00:00
Károly Balogh
09f0a3dd63 powerpc: also drop DCBZ usage on AmigaOS4, as it runs on hardware with other than the assumed cacheline size
git-svn-id: trunk@45802 -
2020-07-17 21:28:49 +00:00
florian
a57f3ba396 * patch by Sergey Larin to handle Native(U)Int conversions from/to variants, resolves #37339
git-svn-id: trunk@45797 -
2020-07-16 20:44:30 +00:00
marco
9cae1830e2 * Remove typedness of feinvalidhandle constant to straight constant with typecast in rvalue. mantis #37358
Reasons for original construct unclear and probably historic, added by oro in 2006 as  feinvalidhandle : Thandle =-1 and then modified by Jonas for unsigned thandle types in 2007 to   feinvalidhandle : Thandle =thandle(-1).

git-svn-id: trunk@45790 -
2020-07-15 10:31:25 +00:00
florian
7337515137 + patch by Christo Crause: ESP8266 controller unit for freertos, resolves #37336
git-svn-id: trunk@45784 -
2020-07-14 20:34:58 +00:00
pierre
8cf26b7a0f Fix conversion between TFPURoundMode and bits of get_fsr according to SPARC-V8 specifications
git-svn-id: trunk@45781 -
2020-07-13 14:40:09 +00:00
pierre
7020490f81 Put floating point type as first variant of floatXX definitions, to ensure correct alignment
git-svn-id: trunk@45780 -
2020-07-13 14:13:13 +00:00
pierre
834dbf5f80 Also use union with double field to ensure correct alignment for float64 type from genmath.inc source
git-svn-id: trunk@45779 -
2020-07-13 13:18:32 +00:00
florian
ac5407268c * regenerated
git-svn-id: trunk@45778 -
2020-07-12 20:46:54 +00:00
Jonas Maebe
fb23834367 * regenerated Makefiles again
git-svn-id: trunk@45766 -
2020-07-11 09:51:28 +00:00
Jonas Maebe
350d2d92f9 * regenerated Makesfiles
git-svn-id: trunk@45762 -
2020-07-10 22:08:30 +00:00
Jonas Maebe
e7d1a77f9a * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS
* rename the m68k/PowerPC-MacOS targets to m68k/PowerPC-MacOSClassic
  * repurpose the AArch64/Darwin target for AArch64/macOS
   o make AArch64-Darwin default target for a hosted AArch64-Darwin compiler

git-svn-id: trunk@45758 -
2020-07-10 21:52:24 +00:00
pierre
59379ab02b Add softfpu feature for z80 cpu
git-svn-id: trunk@45747 -
2020-07-09 09:54:46 +00:00
pierre
60c187e169 Make sure that we do not read passed the end of OPTSTRING variable
git-svn-id: trunk@45736 -
2020-07-06 20:56:14 +00:00
Károly Balogh
cab80d1218 amiga-likes: add headers for timer.device/GetSysTime()
git-svn-id: trunk@45712 -
2020-06-28 22:23:36 +00:00
Károly Balogh
df42716665 m68k-amiga: added four new exec legacy support functions, these exec calls will be used in some DOS and AThreads rework
git-svn-id: trunk@45711 -
2020-06-28 22:05:05 +00:00
florian
d22e24937a + Xtensa: patch by Christo Crause: support subarch lx106 in freertos Makefile, part of #37242
git-svn-id: trunk@45691 -
2020-06-24 20:30:28 +00:00
marco
41406d161c * fix for mantis #37233 crash in getopts.getlongopts with empty shortopts argument
git-svn-id: trunk@45683 -
2020-06-23 09:01:37 +00:00
nickysn
1ae70c6825 * switch to interrupt mode 2 and install a custom maskable interrupt handler in
the ZX Spectrum startup code, because the ROM handler requires the IY register
  to always have a specific value, but the FPC code generator uses the IY
  register for various purposes, which causes random crashes and glitches when
  the timer interrupt occurs.

git-svn-id: trunk@45677 -
2020-06-22 14:00:33 +00:00
florian
bc1b7960ec * patch by Bi0T1N: fix result type of InterlockedCompareExchange64 for QWord, resolves #37186
git-svn-id: trunk@45647 -
2020-06-13 19:14:20 +00:00
svenbarth
4ec76072b4 * ensure that the BSS section for MSX-DOS is correctly initialized to 0
git-svn-id: trunk@45642 -
2020-06-13 09:36:18 +00:00
florian
58eca57feb * patch by Christo Crause: embedded heap manager: free small blocks, resolves #37204
git-svn-id: trunk@45641 -
2020-06-12 20:50:45 +00:00
florian
dbd14206c9 * compilation on targets without fpu fixed
git-svn-id: trunk@45638 -
2020-06-11 17:30:12 +00:00
florian
20f6514d97 * fix compilation for non 64 Bit targets
git-svn-id: trunk@45636 -
2020-06-10 21:05:18 +00:00
florian
50c48349d5 * check properly for i/o errors in the iso read helpers, resolves #37154
* CheckRead checks if reading caused an I/O error and returns false in this case

git-svn-id: trunk@45635 -
2020-06-10 20:47:58 +00:00
florian
6698f6c56b * patch by Christo Crause: FreeRTOS: heap manager doesn't free small blocks, resolves #37195
git-svn-id: trunk@45633 -
2020-06-10 18:53:06 +00:00
nickysn
de08108b27 + clear the .bss section on startup in the ZX Spectrum RTL
git-svn-id: trunk@45624 -
2020-06-07 23:28:03 +00:00
nickysn
4a78b7e073 * fixed stack initialization in the ZX Spectrum startup code
git-svn-id: trunk@45623 -
2020-06-07 23:22:57 +00:00
svenbarth
eb6f503bad * fix O_LARGEFILE for Aarch64, RISC-V 32-bit and RISC-V 64-bit
git-svn-id: trunk@45613 -
2020-06-07 19:09:08 +00:00
svenbarth
95f94bebba * forgot to commit the generated Makefile
git-svn-id: trunk@45609 -
2020-06-07 12:25:15 +00:00
svenbarth
ac5093274d + add support for port object on Z80 using the new IN/OUT intrinsics
git-svn-id: trunk@45608 -
2020-06-07 12:25:10 +00:00
svenbarth
c793f42271 + add intrinsics for Z80 port IN/OUT
git-svn-id: trunk@45607 -
2020-06-07 12:24:59 +00:00
svenbarth
b3ddd4e786 * regenerate Makefiles
git-svn-id: trunk@45601 -
2020-06-06 17:18:48 +00:00
svenbarth
ac8552afc2 + add initial RTL for MSX DOS. Simple programs are already working, but there are apparantly some code generation problems that lead to I/O as well as parameters not working correctly
git-svn-id: trunk@45600 -
2020-06-06 17:16:45 +00:00