ccrause
aadb53e72c
Only perform OpCp2Op optimization when the first Op is ANDI and comparison is against 0.
...
(cherry picked from commit f83a8f0f8f
)
2023-03-10 23:27:48 +01:00
Marcus Sackrow
0c5256300a
AThreads: ThreadInfo for the main thread move to a global var to prevent problems with heap manager
2023-02-20 10:19:18 +01:00
Marcus Sackrow
ac93ad48e3
Amiga: System CloseList() and CleanupThreadProcChain() are called after the memory manager is already shut down changed to native os memory allocation
2023-02-20 10:18:38 +01:00
Jonas Maebe
cd83438cb0
Darwin: fix make cycle
...
unix.fpexecv takes a rawbytestring as first parameter, so inside the child
it was converting the pchar back to an ansistring and also converting it
to the OS file system code page. Since Darwin uses vfork/execv in
SysUtils.Executeprocess, this could result in (exception)stack corruption
and for some reason only since d1b2fe16
it actually caused issues.
Use execve instead, which takes a pchar as first argument and doesn't
do any further conversions
(cherry picked from commit 305d34a8f6
)
2023-01-22 23:08:28 +01:00
marcoonthegit
05480071e2
Merge branch 'fixes_3_2' of gitlab.com:freepascal.org/fpc/source into fixes_3_2
2022-12-30 20:44:46 +01:00
marcoonthegit
c52cc0dcc7
* getlongpath as per https://forum.lazarus.freepascal.org/index.php/topic,60972.0/topicseen.html
...
(cherry picked from commit cfc77315ca
)
2022-12-30 20:44:29 +01:00
florian
67e8c304c1
* allow iso gotos within a procedure
...
git-svn-id: trunk@46396 -
(cherry picked from commit 61d44bba17
)
2022-12-04 12:19:53 +01:00
florian
b6ccf16c9d
* 0 is a valid label in iso mode, resolves #37428
...
git-svn-id: trunk@46362 -
(cherry picked from commit 6dac888ae5
)
2022-12-04 11:43:48 +01:00
florian
46a316791c
* powerpc64-linux: libc_csu_* are not available anymore in newer glibc,
...
make them dummy calls, x86_64-linux does the same for years
(cherry picked from commit abee68df92
)
2022-11-20 11:20:55 +01:00
florian
b12bb768ca
* all references to libc_csu_ cleaned, should resolve #39295
...
(cherry picked from commit b00fe0e4e4
)
2022-11-20 11:20:44 +01:00
florian
26fb75ed77
* mips(el)-linux: provide __libc_csu_* as weak symbols
...
(cherry picked from commit 7ff6d78543
)
2022-11-20 11:20:04 +01:00
florian
4480f65e98
* powerpc-linux: provide also local __libc_csu_* routines
...
(cherry picked from commit 143c2ec232
)
2022-11-20 11:19:29 +01:00
florian
c949b97c42
* some more use of __libc_csu_* removed
...
(cherry picked from commit cb2704dfb2
)
2022-11-19 23:48:43 +01:00
Sven/Sarah Barth
2f8aac770c
* fix #39843 : apply patch by michalgw to fix the declarations of CryptStringToBinary(A/W)
...
(cherry picked from commit 81a7da51a5
)
2022-10-25 17:07:55 +02:00
Pierre Muller
53d7a0a603
Add system_powerpc_wii to supported_targets of powerpc generic GNU assembler
...
(cherry picked from commit f3179cb718
)
2022-10-24 10:35:02 -05:00
marcoonthegit
19218e7f09
* Some bio functions added, patch by RDA, closes #39854
...
(cherry picked from commit aa32bd344a
)
2022-10-16 15:44:32 +02:00
marcoonthegit
ea5ac5bbf0
* also add other threadpool functions
...
(cherry picked from commit 53d745962f
)
2022-10-16 14:52:56 +02:00
marcoonthegit
0f6deab1d9
* Use an own put for tfpginterfacedobjectlist as per bug #39846 .
...
Maybe not the most elegant, but solves the immediately
(cherry picked from commit f532cf1698
)
2022-10-16 14:14:11 +02:00
marcoonthegit
90050adcfe
* give pthread_start_routine a proper Delphi compat prototype.
...
* add Delphi alias for callback.
* add queueuserworkitem
* add name clause GetDateFormatEx
closes #39852
(cherry picked from commit fd179a61f9
)
2022-10-16 13:39:27 +02:00
marcoonthegit
298f443aa5
* wait up to 10ms extra till process really done to get rest of input, closes #39821
...
* avoid closing a popassinput handle.
(cherry picked from commit d347487be9
)
2022-10-16 12:40:38 +02:00
J. Gareth "Curious Kit" Moreton
2c75fb13b7
* i386: Corrections to IMUL -> LEA/LEA optimisastions (fixes_3_2 only)
2022-10-15 12:06:01 +00:00
florian
3a8d8551e7
+ test for #39955
...
(cherry picked from commit 65ff03f30a
)
2022-10-15 14:00:03 +02:00
Michaël Van Canneyt
438f21c0d6
* Patch from Luxa Olivetti to fix memleak, fix issue #39941
2022-10-09 12:27:51 +02:00
Pierre Muller
336d531687
Add /usr/lib64 and /lib64 to default library path list for sparc linux
...
(cherry picked from commit aca84a8128
)
2022-10-05 22:15:45 +02:00
florian
3509dac9f1
* removed wrong program name
...
(cherry picked from commit d8cd4d283d
)
2022-10-04 22:18:57 +02:00
florian
19c2e948b9
* nil =/<> dyn. array is a valid expression, so isbinaryoperatoroverloadable needs to take care of it, resolves #39933
...
(cherry picked from commit 2396b36c21
)
2022-10-04 22:18:35 +02:00
Karoly Balogh
28865ab4f8
regenerated msg includes after the latest merges
2022-09-29 13:14:06 +02:00
Thorsten Otto
0c43bb74a5
atari: pass tos exe flags also to ld
2022-09-29 12:47:18 +02:00
Thorsten Otto
113af73cb8
Fix linker commandline for m68k-atari
2022-09-29 12:46:59 +02:00
Karoly Balogh
7afc1d4b3d
+ m68k-atari: fixed bogus TOS program flags passed to VLink. added -WF argument to allow the user to specify their own flags if needed
2022-09-29 12:36:52 +02:00
Károly Balogh
2ce3a8a167
* backported vlink map file generation to other targets using vlink: Amiga, Atari
...
git-svn-id: trunk@47560 -
2022-09-29 12:34:28 +02:00
Károly Balogh
2f04564773
m68k: always use ELF objects with vasm for improved cross-compatibility with other tools and compilers
...
git-svn-id: trunk@49210 -
2022-09-29 12:08:04 +02:00
Károly Balogh
65bbb09f4b
m68k/vasm: remove bits of Linux support. this combination has never really been tested or supported, and got broken recently. m68k-elf-linux has good enough GNU binutils anyway
...
git-svn-id: trunk@42597 -
2022-09-29 11:26:37 +02:00
Károly Balogh
51b9cb1856
m68k: fixed parsing of constants to absolute addresses
...
git-svn-id: trunk@47419 -
2022-09-29 10:31:16 +02:00
Károly Balogh
538b8e8e71
m68k: fixed parsing of absolute addresses in the assembler reader
...
git-svn-id: trunk@47418 -
2022-09-29 10:30:09 +02:00
Károly Balogh
fc78671215
* remove obsolete comment from rautils/ConcatConstant, issue reported/initial patch by Marcel Kilgus in QLForum.co.uk
...
git-svn-id: trunk@47549 -
2022-09-29 10:29:42 +02:00
Károly Balogh
011e863ce5
m68k: fix DB/DW/DD handling in inline assembler, update BuildConstant() method to current standards. issue reported/initial patch by Marcel Kilgus in QLForum.co.uk
...
git-svn-id: trunk@47548 -
2022-09-29 10:29:03 +02:00
marcoonthegit
47e90d7dda
* another fix for bug #39758 , this time the end of the string
...
(cherry picked from commit 2df9dd9c14
)
2022-09-24 12:37:24 +02:00
marcoonthegit
745e109411
* guard agains empty arrays in a few tArrayHelper binsearch methods
...
fixes bug #39761
(cherry picked from commit 4710281936
)
2022-09-24 11:33:49 +02:00
marcoonthegit
dbf1d63fff
* move char index checks up. fixes bug #39758
...
(cherry picked from commit 5b90eaf2dd
)
2022-09-24 11:33:27 +02:00
ccrause
ea5c84dca8
Fix for issue 39603, cherry-picked commits 6f749cf4
, 98483496
, cc7d67d0
and f562a8d9
.
2022-09-16 18:57:25 +02:00
mattias
57b7720a85
fpdoc: fixed ElementType, issue 39887
...
(cherry picked from commit e9c278b9f1
)
2022-09-13 19:40:06 +02:00
marcoonthegit
c0be192ac5
* merge in different openbsd langinfo.h with some ifdefs.
...
* alternate solution that generates less new files at the expense of a few ifdefs. bug #29317
(cherry picked from commit 3eb800fac6
)
2022-09-01 15:57:39 +02:00
Sven/Sarah Barth
8b90df2ce2
* an objectdef also requires an init for its members if a member (or a member of one of the parents) has a complex initialization
...
+ added test
(cherry picked from commit 27c1bb3bea
)
2022-08-26 16:12:29 +02:00
Sven/Sarah Barth
7c731fc3e6
* fix #39869 : correctly check whether the recorded token stream still needs to be parsed (the replay depth of the scanner needs to be *larger* than what it was before starting the playback)
...
+ added test
(cherry picked from commit 61debb1559
)
2022-08-26 16:10:43 +02:00
marcoonthegit
3a399845e4
* fixed ambiguity between pipe(2) with two params and pipe(3) with one that broke -dFPC_USE_LIBC
...
(cherry picked from commit f341baeaa7
)
2022-08-22 17:45:40 +02:00
florian
9b2ba834a6
* properly calcualte aligncount as proposed by Jeppe, should resolve #33323
...
git-svn-id: trunk@40449 -
(cherry picked from commit 90557f2e62
)
2022-08-18 14:49:04 +00:00
florian
58bcbe8188
* use g_concatcopy_unaligned on MIPS if needed
...
(cherry picked from commit 9c72ab651d
)
2022-08-16 22:00:53 +02:00
Florian Klämpfl
3f15b21e6c
* cosmetics
...
(cherry picked from commit 9348f58e70
)
2022-08-16 22:00:48 +02:00
Pierre Muller
79ebedde8e
Fix compilation from 32-bit CPU by avoiding use of aint variable in for loop
...
(cherry picked from commit c2ffd51c63
)
2022-08-16 22:00:42 +02:00