Commit Graph

68929 Commits

Author SHA1 Message Date
mattias
3423fa9a82 fcl-passrc: fixed compile with pas2js 2024-01-05 16:18:22 +01:00
mattias
450f250b2c fcl-json: fixed compile with pas2js 2024-01-05 16:18:12 +01:00
Michaël Van Canneyt
6040943918 * Make sure dummy tprocess compiles 2024-01-05 00:04:25 +01:00
Pierre Muller
7f05fee3b8 Fix failing targets for fcl-process by changing Execute into SysExecute inside src/*/process.inc files 2024-01-04 22:57:07 +01:00
Sven/Sarah Barth
c11772deca * ensure that the SysCall unit is also usable when FPC_USE_LIBC is defined 2024-01-04 22:26:15 +01:00
Nikolay Nikolov
543b341203 + write debug sections in the wasm internal exe writer 2024-01-04 16:00:00 +02:00
Jonas Maebe
f86a9bd5c0 Extended RTTI: fix use of wrong def for the methods table
Fixes LLVM compilation
2024-01-03 22:29:01 +01:00
Jonas Maebe
0104edce45 Extended RTTI: optimise fetching VMT index 2024-01-03 22:29:01 +01:00
Jonas Maebe
8147185907 LLVM: fix missing line debug info for some invokes in specialised functions
Required when the code can be inlined. Fixes compilation with debug info of
system.messaging.pp
2024-01-03 22:29:01 +01:00
Sven/Sarah Barth
9a1083c98e * for some reason my ppu.pas had a version of 18, instead of 20... so now the correct version m( 2024-01-03 22:03:03 +01:00
Sven/Sarah Barth
40cbda6e7e * increase PPU version due to Extended RTTI related changes 2024-01-03 21:57:09 +01:00
Michaël Van Canneyt
75f20c086a Merge branch 'extended_process' 2024-01-03 14:10:39 +01:00
Michaël Van Canneyt
2a281b6be6 * Guard against the case connection is nil when closing datasets 2024-01-03 14:08:24 +01:00
Michaël Van Canneyt
5f845aa8ff * Fix AV in some cases. reported by Pascal Riekenberg 2024-01-03 14:08:24 +01:00
Michaël Van Canneyt
f232009010 * Set subtarget define as soon as -t option is parsed 2024-01-03 14:08:24 +01:00
Sven/Sarah Barth
060f24600b + implement support for SPARC 64-bit in fpcres 2024-01-02 22:59:51 +01:00
Nikolay Nikolov
995309c209 + add the debug sections in the WASI internal linker script file 2024-01-02 20:33:55 +02:00
Nikolay Nikolov
3724e00169 + wasm object reader: allow other sections to be created before the first code section 2024-01-02 20:25:54 +02:00
Nikolay Nikolov
ff4744e0ed * ignore relocation sections for custom sections for now (will be done later), so that we can proceed with the debug info generation in a later phase 2024-01-02 20:19:51 +02:00
Nikolay Nikolov
9a983632f9 + read debug sections in the wasm internal object reader 2024-01-02 20:10:43 +02:00
Nikolay Nikolov
3c08ad4af5 + increased the default stack size of the WASI platform from 64 KB to 8 MB (like in i386-linux) 2024-01-02 18:38:22 +02:00
Nikolay Nikolov
5fe4ab49bc + fill the correct minimal number of memory pages required in the wasm internal linker 2024-01-02 17:58:01 +02:00
Pierre Muller
d83004dee1 Add emulation_opt settings for all four mips CPUs 2024-01-02 14:31:21 +01:00
Pierre Muller
7887f46700 Try to compute correct page size for wlib call 2024-01-02 14:17:23 +01:00
Pierre Muller
952f4bae17 Fix wrong explicit typecast of srsym variable (caught by -CR option) 2024-01-02 14:16:38 +01:00
Michaël Van Canneyt
a98462835e * Extended RTTI tests 2024-01-02 07:24:31 +01:00
Michaël Van Canneyt
a224f8ded7 * Extended RTTI Type info routines and data structures 2024-01-02 07:09:23 +01:00
Michaël Van Canneyt
50d72bb559 * Define RTTI visibilities 2024-01-02 07:09:23 +01:00
Ryan Joseph
b4ff9b71d3 * Dump extended RTTI info from PPU 2024-01-02 07:09:22 +01:00
Ryan Joseph
519a102379 * Write extended RTTI info 2024-01-02 07:09:22 +01:00
Ryan Joseph
d74d41c5d2 * Allow RTTI directive also before uses clauses 2024-01-02 07:09:22 +01:00
Ryan Joseph
2005e3c094 * Apply RTTI directive status to symbol 2024-01-02 07:09:22 +01:00
Ryan Joseph
fefa163a35 * Introduce RTTI options in symbol definition 2024-01-02 07:09:21 +01:00
Ryan Joseph
ecfff40f96 * Implement parsing of RTTI directive 2024-01-02 07:09:21 +01:00
Ryan Joseph
a31f37b5e5 + Implement support for parsing sets in preprocessor directives 2024-01-02 07:09:21 +01:00
Ryan Joseph
bc72021039 * Define RTTI directive parameters 2024-01-02 07:09:21 +01:00
Michaël Van Canneyt
702ec640ac * Fix variant record definition for CIF 2024-01-02 07:09:21 +01:00
Michaël Van Canneyt
5193f676bf * Add tests for variant arguments 2024-01-02 07:09:21 +01:00
Michaël Van Canneyt
5a78e82c8f * Add Tests.Rtti.Util to uses clause. Keeps lazarus happy :) 2024-01-02 07:09:20 +01:00
Michaël Van Canneyt
85524ff821 * Do not test variants with equal memory area: e.g. strings may point to different memory areas 2024-01-02 07:09:20 +01:00
Michaël Van Canneyt
b6a87450eb * test for variant TValue 2024-01-02 07:09:20 +01:00
Michaël Van Canneyt
c39e51485c * Avoid range error in comparisons 2024-01-02 07:09:20 +01:00
Sven/Sarah Barth
30bf8047aa * ensure that the field and method tables are always accessed with the default alignment 2024-01-02 07:09:20 +01:00
Sven/Sarah Barth
a4121d2201 * use SizeInt instead of PtrInt for the stack area size (this both matches the declaration in TypInfo as well as enough on 16-bit targets like i8086) 2024-01-02 07:09:19 +01:00
Sven/Sarah Barth
7eea850726 * TVmtFieldEntry.FieldOffset needs to be SizeUInt instead of PtrUInt, so that it works correctly on the various memory models of i8086 as well
+ added test
2024-01-02 07:09:19 +01:00
Sven/Sarah Barth
c74441323a + add descriptive comment regarding the TVmtField* types 2024-01-02 07:09:19 +01:00
Nikolay Nikolov
93d38629aa + added check for whether R_WASM_TABLE_INDEX_I32 relocations always point to a function symbol in the wasm internal object reader 2024-01-01 23:52:25 +02:00
Rika Ichinose
9d8b801e4c Improve i386 fpc_shortstr_to_shortstr(), fpc_shortstr_compare(), and add fpc_shortstr_compare_equal(). 2024-01-01 21:12:52 +00:00
Rika Ichinose
fca0ace070 Improve shortstring Pos() and generic fpc_shortstr_compare(). 2024-01-01 21:12:52 +00:00
Nikolay Nikolov
dd1565c667 * wasm internal exe writer: set mempos for code sections to the offset within
the code section. This does not affect the .wasm binary generation, only the
  linker map file.
2024-01-01 23:09:54 +02:00