Commit Graph

70370 Commits

Author SHA1 Message Date
Alligator-1
00d5351b55 partial revert 2024-08-26 20:20:57 +00:00
mattias
887826cd7c fcl-css: test scan -10.2e+2 2024-08-26 19:01:10 +02:00
Alligator-1
8c3829e698 nostackframe 2024-08-26 13:02:45 +00:00
mattias
37ad2c42ef fcl-css: fixed parsing attribute value hex color 2024-08-26 13:51:08 +02:00
Nikolay Nikolov
54d65ff75c * WebAssembly: fixed crash when attempting to generate a functype directive for
a generic function
2024-08-25 20:49:55 +03:00
Nikolay Nikolov
7ce2f95db0 - disallow enabling regvars for WebAssembly, because it's not supported, yet 2024-08-25 19:58:05 +03:00
Nikolay Nikolov
b6527c6c03 + WebAssembly: check for exceptions after call of fpc_rangeerror in branchful
exceptions mode. This fixes catching of ERangeError exceptions when using
  SysUtils and runtime errors are converted to exceptions.
2024-08-25 13:43:50 +03:00
Nikolay Nikolov
58a3f2ef64 * WebAssembly: changed the generated code in a_op_reg_reg_reg_checkoverflow to
avoid using a label
2024-08-25 13:23:45 +03:00
Rika Ichinose
d7352e7b66 Remove most of the VER3_0 conditionals. 2024-08-25 09:44:11 +00:00
Nikolay Nikolov
7a1c50ff87 * fix warning 2024-08-25 12:20:55 +03:00
Nikolay Nikolov
d2785117df * WebAssembly: fixed overflow checking for unsigned subtraction 2024-08-25 11:48:53 +03:00
Nikolay Nikolov
4f42553cb3 * fix bug in thlcgwasm.a_op_reg_reg_reg_checkoverflow when either src1 or src2
is the same as dst
2024-08-25 11:33:33 +03:00
florian
0735ac0d1f * throw an error in iso/extended pascal mode if enum types are passed to writeln, resolves #40896 2024-08-24 22:14:43 +02:00
marcoonthegit
4b4e40dbc9 * fixes #40893 using Otherfiles parameter to fpdoc with CHM backend. 2024-08-24 17:25:51 +02:00
mattias
0a6344270a fcl-css: comment 2024-08-24 16:43:42 +02:00
Michaël Van Canneyt
58560d333e * Keep old behaviour, but keep issue #40898 solved 2024-08-24 16:20:27 +02:00
Nikolay Nikolov
97ad8fafd8 * fix compilation error in test for OSes that have no HAS_MONITOR defined 2024-08-24 15:11:20 +03:00
Nikolay Nikolov
cad9cd22d3 * ignore the '-gl' parameter on WebAssembly, since it's impossible to implement
this feature on this target. WebAssembly is a Harvard architecture and allows
  no way for inspecting code addresses in stack traces from within the program
  itself. Maybe a future extension to the WebAssembly spec would allow that, but
  currently, it's not possible. The '-gl' option is ignored (producing only a
  warning, instead of a fatal error), because not having line info should not be
  fatal for most programs. It also reduces the number of test failures, since
  many tests compile with '-gl', but don't actually require the line info, it's
  just there for debugging purposes.
2024-08-24 14:31:31 +03:00
Nikolay Nikolov
184c612f78 + WebAssembly: allow specifying heapsize and maxheapsize larger than 2GiB
(WebAssembly has a 32-bit address space, so there's still a 4GiB limit)
2024-08-24 14:09:43 +03:00
Nikolay Nikolov
7fc6d5aaa1 + introduced method tscannerfile.readval64, similar to readval, but returns an int64 2024-08-24 13:58:49 +03:00
Nikolay Nikolov
71ada8453a + increase WebAssembly max memory limit for test tw11006.pp, because the test
runs out of memory with the default memory limit of 256 MiB
2024-08-24 13:19:08 +03:00
Nikolay Nikolov
d561390687 + increase WebAssembly max memory limit for test tmt1.pp, because the test runs
out of memory with the default memory limit of 256 MiB
2024-08-24 13:12:08 +03:00
mattias
f81d455094 fcl-css: fixed parsing --var 2024-08-24 11:16:01 +02:00
mattias
6128dcc735 fcl-css: resolver: var and custom attributes 2024-08-24 10:18:02 +02:00
mattias
ccbec9ee7d fcl-css: resolver: test warnings 2024-08-24 10:18:02 +02:00
Michaël Van Canneyt
1e6061845e * Make sure reference count is properly managed 2024-08-23 16:07:51 +02:00
Nikolay Nikolov
919f8f383d * fixed compilation error, introduced in a0ac317aae 2024-08-23 13:33:25 +03:00
Nikolay Nikolov
42d8a29156 + test runner: allow forcing thread tests by specifying the TEST_THREADS=1 environment option 2024-08-23 13:16:00 +03:00
Michaël Van Canneyt
ce04ce42ed * Objects passed in callback are ours to free 2024-08-23 11:33:42 +02:00
Nikolay Nikolov
a0ac317aae + WebAssembly threads: spinwait until ThreadHasFinished becomes true in
WasiWaitForThreadTerminate, before freeing the thread TLS and stack block, to
  avoid race condition with a thread that is finishing (i.e. the main threadproc
  is done), but still executing internal Pascal code inside
  FPCWasmThreadStartPascal.
2024-08-23 12:12:16 +03:00
Nikolay Nikolov
7fe6438d44 + WebAssembly threads: initialize TWasmThread.ThreadHasFinished to false in WasiBeginThread 2024-08-23 12:09:12 +03:00
Nikolay Nikolov
492e38069c + WebAssembly threads: introduced TWasmThread.ThreadHasFinished boolean 2024-08-23 12:07:21 +03:00
Nikolay Nikolov
6dfd2de188 + WebAssembly threads: call FreeStackAndTlsBlock in WasiWaitForThreadTerminate 2024-08-23 11:34:08 +03:00
Nikolay Nikolov
4abbd82135 * WebAssembly threads: made FreeStackAndTlsBlock set the StackBlock and
TlsPointers to nil
2024-08-23 11:32:15 +03:00
Nikolay Nikolov
c8b9eb3c5c * WebAssembly threads: moved the thread stack and TLS block free code to a new
procedure: FreeStackAndTlsBlock. No functional changes.
2024-08-23 11:24:02 +03:00
Nikolay Nikolov
1e630e8a17 + increase WebAssembly max memory limit for test theapthread.pp, because the
test runs out of memory with the default memory limit of 256 MiB
2024-08-22 20:08:35 +03:00
Nikolay Nikolov
df26a02d9d + WebAssembly threads: set FThreadReaped to true in TThread.WaitFor, to avoid
hang in TThread.SysDestroy after .WaitFor
2024-08-22 19:33:30 +03:00
Michaël Van Canneyt
edde858cfa * try to avoid incompatibility with lazarus (and possibly others) 2024-08-22 14:47:07 +02:00
Nikolay Nikolov
4112318e2f * WebAssembly internal linker: allow specifying the max memory size also for
binaries that don't use threads and shared memory. Unlike the shared memory
  case, in this case the max memory limit is optional.
2024-08-22 10:51:02 +03:00
Michaël Van Canneyt
8d5cf6ca5c * Alternative approach for AddObject, which does not break backwards compatibility. Fixes issue #40899 2024-08-22 08:33:38 +02:00
florian
2f0cd77d86 * remove outdated defines, resolves #40897 2024-08-21 23:08:33 +02:00
mattias
7ca0ddc70e fcl-css: resolver: all and origin 2024-08-21 19:20:35 +02:00
Nikolay Nikolov
017b41de89 * WebAssembly threads: RTLEvents rewritten to implement an auto reset event.
Previous implementation did a manual reset event. However, at least on Windows
  and Linux, an auto reset event is used.
2024-08-21 18:10:44 +03:00
Michaël Van Canneyt
d3c902e5a1 * Fix behaviour of AddObject when duplicates=dupIgnore. Patch by Artem Izmaylov. Fixes issue #40898 2024-08-21 17:06:30 +02:00
Michaël Van Canneyt
1210747f1d * Add overloads with offset and length for typed array constructor 2024-08-21 15:49:13 +02:00
Nikolay Nikolov
db1d903a11 * WebAssembly threads: use high(uint32) as MaxThreadSignal 2024-08-21 13:56:04 +03:00
florian
db05be80bd * typo 2024-08-20 23:07:53 +02:00
Michaël Van Canneyt
781560f3e0 * Forgot to add new file 2024-08-20 16:27:16 +02:00
Michaël Van Canneyt
ad34a8d574 * Correct compilation with namespaces 2024-08-20 16:17:31 +02:00
mattias
aaae62ea88 fcl-css: renamed css units 2024-08-20 07:53:49 +02:00