florian
4e32172df0
* fixed and improved generic ArcTan2 implementation by Paolo Valle, resolves #39861
...
(cherry picked from commit f18d6f1c85
)
2023-06-19 08:57:34 +00:00
marcoonthegit
705e7429d3
* Add AMPM to string, patch from closes #39973
...
(cherry picked from commit f9a76aaa56
)
2023-06-18 16:16:32 +02:00
marcoonthegit
3aa9e1dc62
* free doc before calling a readxmlfile procedure routine with OUT parameter. Fixes #40126
...
(cherry picked from commit 8c888d9744
)
2023-06-18 16:13:24 +02:00
marcoonthegit
66bfb69e96
* Tpoint.Angle initial version using arctan2
...
(cherry picked from commit 5fb88cef00
)
2023-06-18 16:12:27 +02:00
marcoonthegit
12c586f22e
* fix for issue #40006
...
set jwadhcpcsdk packing to 8 for win64.
(cherry picked from commit 3b4c396edd
)
2023-06-18 16:02:14 +02:00
Pierre Muller
0c53c25dbf
Set iconv_is_in_libc macro for DragonFly OS
...
(cherry picked from commit a342b74f66
)
2023-06-09 12:54:51 +02:00
Pierre Muller
2c884b8e49
Set macro iconv_is_in_libc for FreeBSD OS
...
(cherry picked from commit 01ad5f2c28
)
2023-06-09 12:54:36 +02:00
Károly Balogh
ad0f8099d5
netbsd: updated to link against the right setlocale function. the renaming from __setlocale_mb_len_max_32 to __setlocale50 occured in NetBSD include/locale.h in rev 1.17, which was in 2010, and shipped in NetBSD 6 in 2012.
...
git-svn-id: trunk@43118 -
(cherry picked from commit 7f0675d937
)
2023-06-09 12:54:17 +02:00
Pierre Muller
2a33e47277
Add test for mips code generation bug
...
(cherry picked from commit e1b3c03daf
)
2023-06-09 07:53:30 +01:00
Pierre Muller
837df925c5
Short version of the mips code genration bug
...
(cherry picked from commit dce70b3b70
)
2023-06-09 07:53:29 +01:00
florian
56a99d2512
+ sanity checks in mips and sparc register allocator
...
(cherry picked from commit 03f4685455
)
2023-06-09 07:53:29 +01:00
Pierre Muller
36c7b7b655
Improve test for unaligned access
...
(cherry picked from commit 11a390117c
)
2023-05-25 21:37:47 +00:00
pierre
91aad00398
Fix for bug report 38549 about wrong code generation
...
for mips/mipsel and riscv32/riscv64 CPUs for
set operators '<=' and '>='.
New tests for this bug report.
tw38549.pp, main source, also included
by tw38549a.pp, tw38549b.pp, tw38459c.pp and tw38459d.pp
with explicit {$packset X}, with X=1,2,4, or 8 added.
git-svn-id: trunk@48874 -
(cherry picked from commit 01a351f804
)
2023-05-25 21:37:47 +00:00
Pierre Muller
caf964ac31
Fix storing of unaligned 64-bit to memory
...
(cherry picked from commit dc04a8a677
)
2023-05-25 21:37:47 +00:00
Pierre Muller
59ad47503b
Avoid float_raise call in FPC_SOFT_FPUX80 code
...
(cherry picked from commit 5cedecbe25
)
2023-05-25 21:37:47 +00:00
pierre
0b5af8a53f
Extend ait_ua_elf_const2str to all aitconst_XXX to fix mips/mipsel RTTI generation
...
git-svn-id: trunk@45719 -
(cherry picked from commit f71415a2de
)
2023-05-25 21:37:47 +00:00
Pierre Muller
7b2f6871ff
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.
(cherry picked from commit d217a459aa
)
2023-05-25 21:37:47 +00:00
Pierre Muller
2640e77307
Fix a_load64_reg_ref and a_load64_ref_reg mips methods
...
(cherry picked from commit d18ff64ed7
)
2023-05-25 21:37:47 +00:00
Pierre Muller
2aa3270ca0
Handle unaligned references in 64-bit a_load_ref_reg and a_load_reg_ref methods
...
(cherry picked from commit c96bb0f416
)
2023-05-25 21:37:47 +00:00
florian
07f3b23c78
* 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-05-25 21:37:47 +00:00
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