Commit Graph

67210 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
c68b9d8386 * Remove unused KnownArchitectures tryout 2023-11-08 23:39:12 +01:00
Michael VAN CANNEYT
3b5be9cc3b * Handle ARCH_TARGET/ARCH_SOURCE 2023-11-08 23:39:12 +01:00
Michael VAN CANNEYT
76177a7de8 * Remove unused KnownArchitectures tryout 2023-11-08 23:39:12 +01:00
Michaël Van Canneyt
4b5d3848b6 * Initialize result string 2023-11-08 23:39:12 +01:00
mattias
f2d659b6ea fcl-pdf: fixed dump hexstring 2023-11-08 23:39:12 +01:00
mattias
567db35635 fcl-pdf: less hints 2023-11-08 23:39:12 +01:00
mattias
a1526a4fc4 fcl-pdf: less hints 2023-11-08 23:39:12 +01:00
Michaël Van Canneyt
e96653b8bd * Additional fix 2023-11-08 23:39:12 +01:00
Michaël Van Canneyt
38ec66e867 * Fix for i386 breakage after merge request !433 2023-11-08 23:39:12 +01:00
Jinyang He
6f9c217fb6 Set STACK_MARGIN_MAX to four times of pagesize on LoongArch64
It fixed a test named tstack. Actually, Linux user get the stacktop is
incorrect in current. The value of stack pointer when enter the procedure
is thought as it is in the highest stack page. But if the parameters is
enough large, lager than 16k, most of arch will also fail this test.
Since the LoongArch default pagesize is 16k, it fail often because
stack-layout-randomization causes the stackpointer underflow to next page.
I had tried fixed it in rtl/linux/[arch]/si_*. But because the codes is
unworthy and hardly the parameters is enough large, just expand
STACK_MARGIN_MAX for simplicity.
2023-11-08 23:39:12 +01:00
Jinyang He
76fd7a9383 Use prlimit64 in FpSetRLimit and FpSetRLimit 2023-11-08 23:39:11 +01:00
Jinyang He
6a2045567f fix store stacklength but not its addr in info 2023-11-08 23:39:11 +01:00
Jinyang He
8a236528e7 fix when FPC_USE_LIBC is disabled not call PASCALMAIN 2023-11-08 23:39:11 +01:00
Jinyang He
be7d51c13c Fix the init state of LoongArch FPU exception bit 2023-11-08 23:39:11 +01:00
Jinyang He
25910f2d4c Support use statx syscall in fpstat and fpfstat 2023-11-08 23:39:11 +01:00
Jinyang He
213efb4ce8 set default result in TPCUWriter.IsExternalEl 2023-11-08 23:39:11 +01:00
florian
a225cae851 * search for i386-linux-gcc also by trying i686-linux- as prefix as
apparently for newer gcc -m32 does not return the proper libgcc path anymore
2023-11-08 23:39:11 +01:00
Nikolay Nikolov
35810c1e64 - rm commented out debug writeln left over from previous commit 2023-11-08 23:39:11 +01:00
Nikolay Nikolov
20a1f0f49a + disallow using sizeof() and bitsizeof() on WebAssembly reference types 2023-11-08 23:39:08 +01:00
Nikolay Nikolov
e3f0f30e8f + added comment for the new error message 2023-11-08 23:36:41 +01:00
Nikolay Nikolov
37c4ec8681 + disallow WebAssembly reference types in records, objects and classes 2023-11-08 23:36:39 +01:00
Michaël Van Canneyt
2b29f9a6d3 * Alphacolors, enhanced patch from Mattias 2023-11-08 23:36:03 +01:00
Michael VAN CANNEYT
a2e440bbdf * Check that system unit is actually loaded before using it to search for system symbols
(cherry picked from commit 9e5ee68887)
2023-11-08 23:36:01 +01:00
Michael VAN CANNEYT
85741e53ce * Do not crash when module pointer is nil
(cherry picked from commit e6f71b6acc)
2023-11-08 23:35:34 +01:00
Michaël Van Canneyt
23d63421ae * Make compression struct accessible to descendants. Fixes issue #40327 2023-11-08 23:35:34 +01:00
Michael VAN CANNEYT
d865f7b4e5 * Refactor, so the combination CPU-OS-SubTarget is a record. Allows for extension if need be 2023-11-08 23:35:34 +01:00
Michael VAN CANNEYT
9fc8bc5210 * Lazarus project file
* Remove unused KnownArchitectures tryout
* Add SUB_TARGET
2023-11-08 23:35:34 +01:00
Michaël Van Canneyt
53b4acbcca * Implement -t options for fpc executable
* Remove some debugging statements
* Refactor processorname -> suffix name for clarity of flow
* Refactor initialization of binary and processor name for clarity of flow
* Rename variables for clarity
* subroutine to simplify command-line handling
* Limited subtarget config file parsing to detect -V
* Specifying multiple -V should not give an error but warn, as for -T or -t
2023-11-08 23:35:34 +01:00
Michael VAN CANNEYT
1c96f1007b * Implement -t and -x options
* Fix spurious warning of already specified -t
* If no subtarget file found, error out instead of hint/warn
* Globals needs subtarget for macro substitution
2023-11-08 23:35:27 +01:00
Nikolay Nikolov
a3956b14cb * bump CurrentPPULongVersion 2023-11-08 23:34:57 +01:00
Nikolay Nikolov
919a4fdbd2 + comments for the new error messages 2023-11-08 23:34:57 +01:00
Sven/Sarah Barth
7037635825 * fix #40221: don't allow a conversion from an anonymous function to a procvar type if compare_defs_ext already rejected them
+ added tests
2023-11-08 23:34:57 +01:00
Sven/Sarah Barth
cd0ab5bc12 + previous commit also fixes #40143, #40144, #40145, #40308 and #40315, so add the tests for them 2023-11-08 23:34:56 +01:00
Sven/Sarah Barth
6df32864c9 * revert 430bcac389 as with the change that the functions to insert hidden parameters are idempotent this is no longer required and also wrong as uses of the deleted symbols aside from Self and the framepointer would be left dangling 2023-11-08 23:34:56 +01:00
Sven/Sarah Barth
cbccdf03aa * ensure that the functions that insert the hidden parameters (function result, open array high parameters, etc.) are idempotent 2023-11-08 23:34:56 +01:00
Pierre Muller
923fab8e40 Set default abi for riscv 32/64 embedded 2023-11-08 23:34:56 +01:00
mattias
251788a71d fcl-pdf: fixed example pdfdump 2023-11-08 23:34:56 +01:00
Rika Ichinose
b66813f60c Shorter x86_64.inc:inc/declocked. 2023-11-08 23:34:56 +01:00
Rika Ichinose
25ee3b7eb4 Shorter i386.inc:fpc_AnsiStr_Decr_Ref. 2023-11-08 23:34:56 +01:00
marcoonthegit
02c18014bf * Switched from waitformultiple objects to -handles for xp/w7 compat, closes 40297 2023-11-08 23:34:56 +01:00
Michaël Van Canneyt
97f98cfc0e * PDF internal link objects, example adapted to show possibility. Fixes issue #40318 2023-11-08 23:34:56 +01:00
Pierre Muller
f3de104e16 Fix fullcycle compilation error due to -Sew option
Add 'else' branch to 'case' keyword construct
  for the setting of ABI in riscv32 assembler call.
  Do the same for riscv64 assembler call.
2023-11-08 23:34:56 +01:00
Pierre Muller
a8ca170649 Set defualt riscv32 linux abi to abi_riscv_ipl32 2023-11-08 23:34:56 +01:00
Pierre Muller
184b40de3e Set defualt riscv32 linux abi to abi_riscv_ipl32 2023-11-08 23:34:56 +01:00
Pierre Muller
3638303f0e Rename variable called section to _section to avoid parsing error for morphos OS 2023-11-08 23:34:55 +01:00
Pierre Muller
49a05c992e Handle the specific NaN pattern of mips floating-point unit 2023-11-08 23:34:55 +01:00
Nikolay Nikolov
4b29633cd7 + added mutable globals to the target switches section 2023-11-08 23:34:55 +01:00
Nikolay Nikolov
c42e8c5fff + added promising _start and _initialize exports 2023-11-08 23:34:55 +01:00
Nikolay Nikolov
512ccaf953 * fixed erroneously duplicated code from previous commit 2023-11-08 23:34:55 +01:00
Nikolay Nikolov
b63c3306d9 + print a proper error message if a suspending external is used on a non-WebAssembly platform 2023-11-08 23:34:52 +01:00