Commit Graph

55641 Commits

Author SHA1 Message Date
pierre
8d165d7e98 Revert wrong part in commit 42580: reinstate 'override FPC=' for cycle targets
git-svn-id: trunk@42585 -
(cherry picked from commit c74007b580)
2023-05-25 17:36:26 +02:00
florian
b3baa35179 * handle -Ca (as proposed by Michael Ring) and -Cf in the first option pass as well
git-svn-id: trunk@48668 -
(cherry picked from commit 50bc387688)
2023-04-16 18:26:18 +02:00
Pierre Muller
a1040cf1b2 Treat -Cb / -Cb- options in first pass (to be able to use FPC_BIG_ENDIAN inside .fpc.cfg config file)
(cherry picked from commit 892220d6fe)
2023-04-16 18:03:50 +02:00
marcoonthegit
9b97e5743e Merge branch 'fixes_3_2' of gitlab.com:freepascal.org/fpc/source into fixes_3_2 2023-04-16 17:40:22 +02:00
marcoonthegit
2563a7a072 * Add ptr types for fixed(u)int, fixes #40205
(cherry picked from commit 33071fd179)
2023-04-16 17:39:35 +02:00
Pierre Muller
2a3efea7ba Avoid read past buffer end for empty source when checking for utf-8 signature
(cherry picked from commit aaf356ba9f)
2023-04-16 17:35:31 +02:00
marcoonthegit
d6587b00f5 Merge branch 'fixes_3_2' of gitlab.com:freepascal.org/fpc/source into fixes_3_2 2023-04-16 17:33:08 +02:00
marcoonthegit
40906ec49d * fix #40242 by inverting some more x and y loops
(cherry picked from commit 322e8ca7e3)
2023-04-16 17:32:47 +02:00
marcoonthegit
c944b0446e * switch loops in TFPCustomCanvas.Erase closes #40246
(cherry picked from commit 5e47b4a7b9)
2023-04-16 17:32:20 +02:00
florian
3498d78aad * make eabihf/eabi changeable at compilation time
git-svn-id: trunk@44706 -
(cherry picked from commit 9d7261a60b)
2023-04-06 22:02:58 +02:00
florian
15194c6ee9 * correctly compile constant multiplications by 6 for 80386 (fix needed only for 3.2.x), resolves #40230 2023-04-02 22:52:10 +02:00
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