mattias
eb17e6fd2d
fcl-web: fixed crash in websocket server on windows when closing when already disconnected
2022-10-13 00:56:07 +02:00
Jonas Maebe
b150480c60
Darwin: don't try to print size statistics if the binary wasn't linked
2022-10-12 22:58:19 +02:00
Jonas Maebe
a835d8b533
rgobj: reduce compilation time of programs with long movelists
...
Reduces compilation time of webtbs/tw2242 for AArch64 with -O2 from
15 minutes to 10 seconds on my system.
from 15 minutes to 10 seconds
2022-10-12 22:58:18 +02:00
Jonas Maebe
e2ade64a1e
cgbase: make first parameter of supregset_reset "out"
2022-10-12 22:58:18 +02:00
Pierre Muller
d217a459aa
Fix bug report #39952 .
...
* compiler/aggas.pas: Avoid use of .long for 64bit constant
for targets that automatically insert alignments.
+ tests/webtbs/tw39952.pp: New test from bug report 39952.
2022-10-12 21:28:16 +01:00
florian
f0c0d8a033
+ test for #22809 which is meanwhile resolved
2022-10-12 21:56:30 +02:00
florian
989895c82f
* patch by Bart B: FormatFloat correctly outputs NaN now, resolves #32868
...
+ test
2022-10-11 22:11:33 +02:00
Sven/Sarah Barth
bb51ac77dd
* the right side of a concatenation of multiple ShortString values can directly pass any String[x] to the utility routine, because only the Length() is used, not High() and nothing is modified (also typed pointers must not be used for them); this allows for better code generation for strings with a maximum length < 255
2022-10-11 07:40:13 +02:00
mattias
3e181d7640
pastojs: fixed clone array of tobject, pas2js issue 39238
2022-10-11 00:41:24 +02:00
florian
1b6982107f
* TDebugInfoDwarf3.appenddef_object should not write an extra finish_entry for objects and C++ classes
2022-10-10 22:46:25 +02:00
florian
3e5f6d3228
* use AllocRegbetween in TARMAsmOptimizer.RemoveSuperfluousMove, resolves #39921
2022-10-09 21:32:22 +02:00
Sven/Sarah Barth
02aac653d2
* optimize shortstring concatenations if they're on the right side of an assignment to directly use the left side instead of a temporary
2022-10-09 13:56:52 +02:00
Sven/Sarah Barth
32261a0f6d
* fix copy/paste typo in comments
2022-10-09 13:56:52 +02:00
Michaël Van Canneyt
f2580efc15
* Fix memleak in case of error.
2022-10-09 12:42:57 +02:00
Jonas Maebe
d12bf094ab
cs_opt_consts: disable when non-local gotos are active
...
This optimisation can insert code after the call to fpc_setjmp, resulting in
it not getting executed after a longjmp. Fixes tmacnonlocalgoto on AArch64
with -O2 or higher.
2022-10-08 22:27:23 +02:00
florian
5b73fc4d0e
* marked parameters in ucomplex with const
2022-10-08 20:49:33 +02:00
Sven/Sarah Barth
188cac3bc6
* enable OpenStrings by default in mode Delphi
...
+ added test
2022-10-08 13:52:34 +02:00
Sven/Sarah Barth
920e1c8d19
* change PPU version as the change regarding $P/$OpenStrings affects the token buffers of generics (which contains the current settings)
2022-10-08 13:52:33 +02:00
Sven/Sarah Barth
6cbbf9c52a
* $P/$OpenStrings is supposed to be a local switch, so change that accordingly
...
+ added tests
2022-10-08 13:52:32 +02:00
florian
b934517871
* patch by Rika: Optimize some compiler/CFileUtl.pas functions for returning unchanged strings, resolves #39882
2022-10-07 22:32:59 +02:00
florian
9f293df425
* export DynArrayAssign, resolves #39897
2022-10-06 22:56:38 +02:00
florian
ad7cc0e69d
* handle <dyn.array>+[] (and swapped) correctly, resolves #39919
2022-10-05 22:48:21 +02:00
marcoonthegit
2291100bbd
* fix and test for bug #39884 solving daysbetween when zero date is crossed.
2022-10-05 20:46:18 +02:00
mattias
569f83e33d
fcl-web: TWSServerConnection.HandshakeResponseSent propagates result
2022-10-05 10:49:31 +02:00
florian
d8cd4d283d
* removed wrong program name
2022-10-04 22:02:59 +02:00
mattias
01c982ad70
fcl-passrc: omit hint for not used anonymous type
2022-10-04 20:55:49 +02:00
mattias
a2182cb7a5
fcl-passrc: omit hint for not used anonymous type
2022-10-04 20:42:02 +02:00
Michaël Van Canneyt
eb8c322a53
* Use aValue instead of Value. Fix issue #39938
2022-10-04 17:53:17 +02:00
Michaël Van Canneyt
e736011c37
* Fix from Bart for issue #39938
2022-10-04 11:14:05 +02:00
florian
f8848dd185
* fix for commit a91e5478
, mixed localalignmax and constalignmax
2022-10-03 22:03:55 +02:00
florian
a91e547832
* set the maximum alignment values for constants and variables to 64 on aarch64-linux
2022-10-03 14:40:57 +02:00
florian
2396b36c21
* nil =/<> dyn. array is a valid expression, so isbinaryoperatoroverloadable needs to take care of it, resolves #39933
2022-10-03 10:26:09 +02:00
florian
9a760db573
* nicer error message
2022-10-02 20:47:07 +02:00
florian
7dc2a61788
* comment for git fixed
2022-10-01 19:04:09 +02:00
2b63c02bc5
Incorrect function name imported from comctl32.dll
- for LoadIconWithScaleDown
function.
2022-10-01 14:17:49 +00:00
florian
0a9e1ede72
* improve test for Generics.Collections.TArrayHelper.QSort, resolves #39932
2022-10-01 15:37:52 +02:00
florian
51a3030b6a
+ test for heapsort fallback to Generics.Collections.TArrayHelper.Sort
2022-10-01 12:11:30 +02:00
Rika Ichinose
3fff2aca6d
Add heapsort fallback to Generics.Collections.TArrayHelper.Sort.
2022-10-01 09:34:28 +00:00
florian
9e9b38d0cf
* cfi for avr needs 32 bit pc begin and range
2022-09-29 23:06:03 +02:00
florian
1fc54dd8bb
* improve dwarf cfi on avr
2022-09-28 22:47:06 +02:00
Michaël Van Canneyt
8b3c9e0970
* Fix use of classname
2022-09-28 17:53:18 +02:00
florian
123f196d5d
* small correction to linker script
2022-09-27 22:10:56 +02:00
florian
88cf633b97
* use append_object_struct also for dwarf-3 when creating dwarf debug info for objects, resolves #39920
2022-09-26 21:28:39 +02:00
florian
9375257365
* look ahead for ShlOp2Op optimization
2022-09-25 20:43:57 +02:00
florian
1a66cde35b
* apply ShlOp2Shl optimization also to floating point operations
2022-09-24 22:48:41 +02:00
florian
444fe092da
* propertly check equality with the for-counter when propagating constants, resolves #39915
2022-09-24 20:39:43 +02:00
Henrique Gottardi Werlang
2bf377744a
Changed the interface creation to keep the generic name of an interface.
2022-09-23 23:14:17 +00:00
florian
dbbb91705f
* improved fix for #39912
2022-09-23 21:56:24 +02:00
Sven/Sarah Barth
b11366c95b
* when generating the call to the extracted function reference inside the nested routine we need to use the parameters of the nested function and not those of the newly created procdef (fixes some of the test case failures with -O2)
2022-09-23 15:50:19 +02:00
Sven/Sarah Barth
965bba5ab4
* cleanup captured symbols when moving them from the nested function to the new method
2022-09-23 14:44:42 +02:00