Commit Graph

13431 Commits

Author SHA1 Message Date
ondrej
84b6cee4f7 File datetime UTC support
git-svn-id: trunk@47210 -
(cherry picked from commit b51729dac5)
2023-12-12 22:21:06 +01:00
florian
3aadfc0802 * subroutines working with an OS dependend time stamp use an int64 now, so the 2038 problem
on unixes can be tackled

git-svn-id: trunk@44010 -
(cherry picked from commit 01302bc47d)
2023-12-12 22:19:17 +01:00
ondrej
1bebe1a7b4 LocalToEpoch, EpochToLocal: android compilation
git-svn-id: trunk@47292 -
(cherry picked from commit 6df9ad8e50)
2023-11-29 15:35:48 +01:00
ondrej
0a2e59c243 GetLocalTimeOffset: DateTime-aware overloads for Unix. Issue #35710
git-svn-id: trunk@47290 -
(cherry picked from commit 282aa0daa7)
2023-11-29 15:34:47 +01:00
ondrej
e62556e7f1 GetLocalTimeOffset - fix overload call
git-svn-id: trunk@47289 -
(cherry picked from commit e10ee5ccb4)
2023-11-29 15:34:37 +01:00
ondrej
ac08f01ec0 GetLocalTimeOffset: DateTime-aware overloads (Windows supported, Unix is a ToDo). Issue #35710
git-svn-id: trunk@47206 -
(cherry picked from commit 0d08b98d47)
2023-11-29 14:58:42 +01:00
Michael Van Canneyt
1b1f9fe2ce * Checks for directory and special directories
(cherry picked from commit 32884082e3)
2023-11-29 14:37:19 +01:00
Michaël Van Canneyt
8d6ec26138 * Fix by Mark Paley to add IfThen for StringList and TStringDynArray. Issue #39314
(cherry picked from commit 52c8ac0ca0)
2023-11-27 14:47:08 +01:00
Michaël Van Canneyt
280f507e22 * Patch from Bart. Fix for issue #39797
(cherry picked from commit b2ad1d3efd)
2023-11-27 11:21:24 +01:00
Michaël Van Canneyt
3a8b807c20 * Fix by Bart to fix conversion to temperature. Fix issue 39776
(cherry picked from commit 0cc00b355c)
2023-11-26 22:13:39 +01:00
Michaël Van Canneyt
0d7e93d87b * Some delphi compatibility methods/types for actions
(cherry picked from commit a88dd9197f)
2023-11-26 14:24:02 +01:00
marcoonthegit
bc5956a1cc * check for frac(dt) being slightly lower than a whole number. Patch by Werner P
Resolves #40140

(cherry picked from commit 8d0b822a27)
2023-11-26 13:59:13 +01:00
michael
5d7ba48f53 * Patch from Werner Pamler to fix count of digits in periods
git-svn-id: trunk@49299 -
(cherry picked from commit 5cde6facdb)
2023-11-26 13:58:31 +01:00
Ondrej Pokorny
0826cb24f0 DateTimeToString: do not write #0 separators
(cherry picked from commit a55794d80d)
2023-11-26 13:58:03 +01:00
florian
0b85860a1c + support leap seconds in TryEncodeTime, resolves #40121
(cherry picked from commit a9f9996dc8)
2023-11-26 13:57:03 +01:00
Károly Balogh
814e59a41a dati.inc: tabs 2 spaces and whitespaces formatting fix. no functional changes
git-svn-id: trunk@47808 -
(cherry picked from commit 4b3fee38a5)
2023-11-26 13:00:00 +01:00
marcoonthegit
ae79d29107 * add pointer variant fo createconsolescreenbuffer, move old VAR definition to redef for compat.
(cherry picked from commit b6999496a7)
2023-11-25 13:51:12 +01:00
marcoonthegit
0dd5c932a0 * added some winnls constants. Reworked locale_ and cal_ constants for easier maintenance.
(cherry picked from commit 6b7afc6b08)
2023-11-25 13:40:11 +01:00
marcoonthegit
26467dd400 * small cleanups in intersectrect,unionrect offsetrect and inflaterect; fixes #40436 2023-11-24 23:25:25 +01:00
marcoonthegit
27b3084e67 * fix win32,win64 parts, fixes #40439. All records to under pshpack4 in header. 2023-11-24 23:24:54 +01:00
marcoonthegit
f7e6489be5 * change types of method from integre to single for tpointf (probably copy-paste the interface error from integer TPoint ) 2023-11-24 23:18:36 +01:00
marcoonthegit
6a33f68fca * small cleanup, remove redundant result assignment and unused variable (from Lagprogramming on forum) 2023-11-24 23:02:11 +01:00
marcoonthegit
0c37a1483d * Patch by Rika to have a char specific TStringHelper.replace. Probably faster with low number of char matches. closes #39707
* also raise rangeerror for startindex<0 in previous committed join() patch.
2023-11-24 23:00:02 +01:00
marcoonthegit
45bad18019 * Patch from Alexey T. closes #39705
* don't use copy in helper.indexof(). Watch those 0 based indexes.
2023-11-24 22:58:44 +01:00
marcoonthegit
cb70f9c47d * applied patch from Alexey for closes #39704
* reviewed checks at start of function to match Delphi in rangecheck errors and other exits
 * test for the above.
2023-11-24 22:53:02 +01:00
florian
655352f0e9 * mmap2 expects that offset is divided by 4096
git-svn-id: trunk@44198 -
(cherry picked from commit 17158c3587)
2023-09-30 16:14:51 +02:00
svenbarth
63d933ad92 * fix for Mantis #38020: apply patch by Sergey Larin to use GetModuleHandle instead of LoadLibrary to retrieve GetTickCount64
git-svn-id: trunk@47274 -
(cherry picked from commit 71c30761dd)
2023-07-01 11:31:03 +02:00
michael
1e23652e48 * Fix issue ID #38900: union wrongly implemented
git-svn-id: trunk@49376 -
(cherry picked from commit 59d4aaf5ec)
2023-06-20 10:53:19 +02:00
marcoonthegit
bd1682f3e9 * some extra constants and added typing to setexecutionstate
(cherry picked from commit 2ac86ab662)
2023-06-19 18:15:36 +02:00
marcoonthegit
5a97fbbc27 * SetThreadExecutionState
(cherry picked from commit 4871ad4707)
2023-06-19 18:14:33 +02:00
marcoonthegit
fc9a5407c1 * change HDEVNOTIFY to lpvoid/pointer instead of thandle
(cherry picked from commit f0debbe649)
2023-06-19 16:11:10 +02:00
marcoonthegit
c876d508f1 * RegisterDeviceNotification
(cherry picked from commit 67eac52f07)
2023-06-19 16:11:10 +02:00
marcoonthegit
1ab189e253 * movefile_* consts expanded
(cherry picked from commit f4155dc710)
2023-06-19 16:11:09 +02:00
marcoonthegit
ca554ff2b0 * use predefined pointer types from system as much as possible. This avoids trouble between objpas.pinteger and windows.pinteger in generics. (if windows is only in implementation).
(cherry picked from commit e9352b4894)
2023-06-19 16:09:10 +02:00
florian
92fe577846 * fix error on win64 and concerns about pulling math into the windows unit by a local arctan2 copy
(cherry picked from commit 7bd5613954)
2023-06-19 11:08:50 +02:00
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
66bfb69e96 * Tpoint.Angle initial version using arctan2
(cherry picked from commit 5fb88cef00)
2023-06-18 16:12:27 +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
marcoonthegit
2563a7a072 * Add ptr types for fixed(u)int, fixes #40205
(cherry picked from commit 33071fd179)
2023-04-16 17:39:35 +02: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
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
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
Thorsten Otto
0c43bb74a5 atari: pass tos exe flags also to ld 2022-09-29 12:47:18 +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
dbf1d63fff * move char index checks up. fixes bug #39758
(cherry picked from commit 5b90eaf2dd)
2022-09-24 11:33:27 +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
Sven/Sarah Barth
affd8b02d9 * fix #39664: ensure that the 8- and 16-bit signed overloads of IntToHex return the correct number of digits
+ added test

(cherry picked from commit d32134dd1a)
2022-08-10 13:40:17 +02:00
Pierre Muller
db50354ac6 Fix compilation of m68k-linux rtl with -dFPC_USE_LIBC
(cherry picked from commit 870d612e15)
2022-07-12 20:36:30 +00:00
Pierre Muller
07e3224feb Avoid null array size field for aarch64-linux TUContext 2022-07-12 20:33:06 +00:00
Pierre Muller
f3ee4aa56e Fix compilation of sparc64-linux rtl with -dFPC_USE_LIBC 2022-07-12 20:32:55 +00:00
Pierre Muller
ab184895cc Fix compilation of sparc-linux rtl with -dFPC_USE_LIBC
(cherry picked from commit 1433c4f2f8)
2022-07-12 20:32:41 +00:00
Michaël Van Canneyt
9185095155 * Patches from Pascal Riekenberg, some small corrections
(cherry picked from commit 6f6a003414)
2022-06-29 21:53:53 +02:00
marcoonthegit
b76535ebe4 * TStringlist constructor with ownsobjects parameter, Delphi compatible + empty constructor to avoid compiler getting confused
(cherry picked from commit 2457016671)
2022-06-20 19:54:11 +02:00
marcoonthegit
2aa8da16c5 * add GetDateFormatEx, from bug #35118 by 440bx
(cherry picked from commit db9375d23f)
2022-06-20 12:18:04 +02:00
marcoonthegit
8c8178443d * add overload to getenvironmentvariable so that it is also found when windows is before sysutils in the uses list. bug #39448
(cherry picked from commit c203097ec2)
2022-06-20 12:17:21 +02:00
marcoonthegit
dda26e2c01 * typo fix in last commit.
(cherry picked from commit dcb3906741)
2022-06-20 11:08:42 +02:00
marcoonthegit
a97beb3fd5 * add IEquatable<T>, requested on forum.
(cherry picked from commit d38c881828)
2022-06-20 11:00:32 +02:00
marcoonthegit
4d9fbd2faf * fix bit setting macros in windows unit. Should fix bug #39272.
(bit setting only allowed setting bits to one, not zero, and not added).

(cherry picked from commit b42bc966ac)
2022-06-20 10:59:44 +02:00
marcoonthegit
d9bac3a47d * restore old behaviour for non freebsd for _syscall
(cherry picked from commit e384e36e84)
2022-06-19 17:20:13 +02:00
marcoonthegit
c75945a32b * add parameter (=0) to getdirentries, hopefully fixes occasional EFAULT loops.
probably the random value of the register caused problems, already in the patch from bug #37220

(cherry picked from commit adf1a0642f)
2022-06-19 15:24:47 +02:00
marcoonthegit
4f07bff6ac * commented statat for non freebsd, and fixed a typo.
(cherry picked from commit 43010ed471)
2022-06-19 13:37:52 +02:00
pierre
001a37aa97 Update dev_t, ino_t and nlink_t types to cunit64
git-svn-id: trunk@41968 -
(cherry picked from commit 429bd929e8)
2022-06-18 15:03:54 +02:00
Pierre Muller
02b969cc59 Fix freebsd rtl compilation failure after better type check of variant element inside record case clause
(cherry picked from commit 4b196ece47)
2022-06-18 15:03:31 +02:00
pierre
87961ec9ea FreeBSD fixes for stat and dirent records
git-svn-id: trunk@41967 -
(cherry picked from commit 5fb61dc386)
2022-06-18 14:58:56 +02:00
marcoonthegit
69eb400d54 * commit ACM's fpc.diff, resolves mantis #37220 and FreeBSD 12/13 syscall port
(cherry picked from commit 99e3789fa3)
2022-06-18 14:08:07 +02:00
marcoonthegit
bd4b14a28b * manually merged part of d8021a1102 that prohibits later merges 2022-06-18 14:06:43 +02:00
marcoonthegit
622472d891 * prt0 for x86_64
(cherry picked from commit 4118173e1d)
2022-06-18 13:47:06 +02:00
marcoonthegit
d604cadab0 * fix ident patch script and i386/cprt0.as
(cherry picked from commit 61f559ff56)
2022-06-18 13:46:30 +02:00
marcoonthegit
ae6945b120 * change note section to be more 12 conformant
(cherry picked from commit b201d0a752)
2022-06-18 13:45:24 +02:00
marcoonthegit
ce01ac7695 * FreeBSD version to 12 in trunk
(cherry picked from commit b36b610424)
2022-06-18 13:43:25 +02:00
florian
3dc09bbedd * provide __libc_csu_init and __libc_csu_fini as weak symbols
(cherry picked from commit 35a7490ae1)
2022-04-18 22:45:08 +02:00
florian
9bd665d069 * pic'fied startup code
(cherry picked from commit baa28faa19)
2022-04-18 22:44:57 +02:00
florian
6db696a782 * define __libc_csu_* symbols as weak symbols on aarch64-linux
(cherry picked from commit a20a7e3497)
2022-04-11 20:46:02 +02:00
Pierre Muller
52bda8fa7c Add _IO_stdin_used global
(cherry picked from commit ae3c0a2151)
2022-03-09 21:45:41 +01:00
svenbarth
dba65567f1 * use the sizes of the floatx80 and float128 structs for arrays having their size to avoid problems with padding on different platforms
git-svn-id: trunk@47198 -
(cherry picked from commit 16eb670e67)
2022-02-02 17:12:31 +01:00
Pierre Muller
700628d545 Add soft fpu units to buildrtl also for aros and morphos 2022-02-02 10:55:17 +01:00
Pierre Muller
33927a2deb Add missing soft fpu units to buildrtl 2022-02-02 10:44:59 +01:00
Pierre Muller
4789afb4b0 Regenerated Makefile's after cherry-pick adding soft fpu related units 2022-02-01 14:02:07 -07:00
svenbarth
10838d8c19 + add all softfpu units for various targets
git-svn-id: trunk@47187 -
(cherry picked from commit 707034b271)
2022-02-01 13:55:16 -07:00
Pierre Muller
48f68cbeed Add FillWord procedures and implement unicode StringOfChar for JVM cpu
(cherry picked from commit 74c97e8928)
2022-01-25 22:05:14 +00:00
marcoonthegit
c214b949d4 * implemented stringofchar unicodestring, bug #39483
(cherry picked from commit 4568c77f57)
2022-01-21 18:28:56 +01:00
florian
a589637b1d * patch by Christo Crause: more avr1 controllers and remove attiny28 from avr25 makefile list, resolves #36686
git-svn-id: trunk@44136 -
(cherry picked from commit 297d6e2c60)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:37 +02:00
florian
b77b0df3bd * AVR: attiny28 is an avr1 CPU
git-svn-id: trunk@44132 -
(cherry picked from commit dea63e3d61)
2021-10-24 12:40:37 +02:00
florian
c9fce8b742 * AVR: take care of CPUAVR_HAS_MOVW in assembler routines
git-svn-id: trunk@44131 -
(cherry picked from commit 925979c6e4)
2021-10-24 12:40:37 +02:00
florian
3cb2cff444 * patch by Christo Crause: more AVR controllers, resolves #36683
git-svn-id: trunk@44130 -
(cherry picked from commit 04ad607bb4)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:37 +02:00
florian
a124adb9a7 * patch by Christo Crause: add missing atmega-PB controllers, resolves #36667
git-svn-id: trunk@44128 -
(cherry picked from commit 5040e31f11)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:37 +02:00
florian
5e4de7277a * patch by Christo Craus to reorder the avr controllers for better overview, resolves #36662
git-svn-id: trunk@44124 -
(cherry picked from commit e033269deb)
2021-10-24 12:40:37 +02:00
florian
be4c56a05c * patch by Christo Crause: fix startup code for avrtiny subarch, resolves #36650
git-svn-id: trunk@44100 -
(cherry picked from commit 7d283f530e)
2021-10-24 12:40:37 +02:00
florian
61c6c04f71 + patch by Christo Crause: Support for attiny10x controllers, resolves #36645
git-svn-id: trunk@44081 -
(cherry picked from commit 00214406bc)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:37 +02:00
florian
ea2a93731d * patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616, part 3/3
git-svn-id: trunk@44038 -
(cherry picked from commit 9d91d680fb)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:37 +02:00
florian
fd5614576f * patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616, part 2/3
git-svn-id: trunk@44037 -
(cherry picked from commit 7892e3f7b7)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:37 +02:00
florian
3ee32648c0 * system unit can be build for subarch avrtiny
git-svn-id: trunk@44032 -
(cherry picked from commit 17c4834a4a)
2021-10-24 12:40:37 +02:00
florian
4f5b872098 * patch by Christo Crause: avrtiny26 controller is not subarch avr25 but avr2, resolves #36620
git-svn-id: trunk@44021 -
(cherry picked from commit d2a059bd02)
2021-10-24 12:40:37 +02:00
florian
0a66f8f1dd * patch by Christo Crause: Correct subarch for avrtiny series in compiler, resolves #36619
git-svn-id: trunk@44020 -
(cherry picked from commit 3ab8830b83)
2021-10-24 12:40:37 +02:00
florian
ce336a08c5 * omit first not, helps the reg. allocator to find a workable colouring, resolves #36611
git-svn-id: trunk@44005 -
(cherry picked from commit ae8d2dc69a)
2021-10-24 12:40:37 +02:00
florian
0add128d7b + AVR: initial support of the avrtiny architecture in the rtl
git-svn-id: trunk@43988 -
(cherry picked from commit 28391e04bc)
2021-10-24 12:40:37 +02:00
florian
150fac54cb * changes shift parameter of shift helpers into ALUUInt, as there is an "and" used anyways, this does not change semantics but reduces register pressure on 8 bit targets
git-svn-id: trunk@42200 -
(cherry picked from commit f92b8d1681)
2021-10-24 12:40:37 +02:00
florian
647c5889de * simplified fpc_mul_qword so it compiles again on avr, fixes #36236 but does not solve the root of the problem
git-svn-id: trunk@43342 -
(cherry picked from commit 3b1903b430)
2021-10-24 12:40:37 +02:00
Jeppe Johansen
821a83f735 * Fix exitcode handling for avrsim target. Patch by Christo Crause
git-svn-id: trunk@42940 -
(cherry picked from commit 05c4f45596)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
d14e3e96a7 - Fix bug in software overflow checking for longint's.
- AVR: Fix overflow checking for HW multiplications

git-svn-id: trunk@42531 -
(cherry picked from commit 1b698d319f)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
bca0d5774f - Adds a number of optimizations for 64bit integer operations on AVR. Patch from Christo Crause in issue #35691.
git-svn-id: trunk@42495 -
(cherry picked from commit 893507a5d6)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
8b02397b18 - Split division routines out into an include file.
- Reuse division routines for calculating both division and modulus.
- Add implementations of BsfByte and BsrByte that don't use a lookup table.

git-svn-id: trunk@42494 -
(cherry picked from commit 4b93eb64b3)

# Conflicts:
#	.gitattributes
2021-10-24 12:40:36 +02:00
Jeppe Johansen
2b92b97056 - Change syntax of sbiw operands to work around syntax in older binutils.
git-svn-id: trunk@42336 -
(cherry picked from commit 48a7c0989a)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
a886e77b5e - Fix compilation on architectures without absolute call/jump instructions.
git-svn-id: trunk@42164 -
(cherry picked from commit ee7bc1d516)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
8eb523e696 - Add assembler implementation of integer division, patch by Christo Crause. For now there's a division by zero check added.
- Fix setjmp/longjmp handling on 3 byte PC AVRs.

git-svn-id: trunk@42162 -
(cherry picked from commit dee0197890)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
ebe4d4cf13 Fixed stack checking for embedded target. Based on work by Christo Crause
git-svn-id: trunk@42157 -
(cherry picked from commit 2f501be2a0)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
915e48c675 Add assembler implementation of Move.
git-svn-id: trunk@42155 -
(cherry picked from commit 009c87156a)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
f5e34990ae - Adds intrinsics to save/restore SREG when disabling interrupts.
- Adds nostackframe to stack frame investigation stubs.

git-svn-id: trunk@41898 -
(cherry picked from commit 12879adc2f)
2021-10-24 12:40:36 +02:00
Jonas Maebe
667938c6c9 * add missing unixutils -> baseunix dependency
git-svn-id: trunk@47302 -
(cherry picked from commit 24e188f0d2)
2021-10-09 21:13:32 +00:00
Sven/Sarah Barth
48c54afabb * patch by Sergey Larin to handle Native(U)Int conversions from/to variants, resolves #37339
git-svn-id: trunk@45797 -
(cherry picked from commit a57f3ba396)
2021-10-01 17:43:23 +02:00
flyingsheep
b8b1aeb4e0 * Fix for issue #39379 by bart broersma
(cherry picked from commit 6c6cb13a5e)
2021-09-30 19:41:44 +00:00
florian
083b7da54e * @PLT is needed for calls to link it properly with pic code
git-svn-id: trunk@46209 -


(cherry picked from commit b60ac4c2db)
2021-09-29 16:20:47 +00:00
Jonas Maebe
9433467ec8 * Darwin support for printing line info for backtraces when using Dwarf,
based on patches by Colin Western, mantis #38483)
   o requires that the program/library is compiled with -Xg (or that
     dsymutil is run on it after compiling), and that the .dSYM bundle
     is in the same directory as the program/library
   o always use the "dl" unit in exeinfo for Darwin, as that's needed for
     dynamic library support, and this does not cause an extra dependency
     since on Darwin we always use libc
   o cleaned up the exeinfo unit for Darwin, and sped it up by using mmap
     instead of small reads
   o fixed unit dependencies for exeinfo, lineinfo and lnfodwarf in Darwin
     RTL Makefile
  * use the process address info from the original exe even when reading
    the debug information from an external file
  - removed outdated ifdef'd darwin code from dl.pp (no longer needed now
    that processaddress gets set correctly in exeinfo for that platform)

git-svn-id: trunk@49140 -
(cherry picked from commit 0eb9dd3879)
2021-09-04 15:09:22 +02:00
Jonas Maebe
7c75193865 * add missing unixtype dependencies
git-svn-id: trunk@46989 -
(cherry picked from commit de095258a7)
2021-09-04 10:27:30 +02:00
florian
61e9be551a * update dependencies of sysutils
git-svn-id: trunk@43315 -
(cherry picked from commit c7fb1b8db7)
2021-09-04 10:27:23 +02:00
florian
83219f5592 * fpsr and fpcr are 64 bit on aarch64
git-svn-id: trunk@49257 -
(cherry picked from commit 047d13e7e1)
2021-08-23 23:58:54 +02:00
florian
1f8c547561 * fix exception generation in ln(...), resolves #38832
(cherry picked from commit 1e1848da92)

# Conflicts:
#	.gitattributes
2021-08-23 23:57:33 +02:00
florian
6a64fcbb06 + more helper routine to check for CPU features added
git-svn-id: trunk@45835 -
(cherry picked from commit e26e824700)
2021-08-09 23:19:20 +02:00
marco
135467a029 --- Merging r49478 into '.':
U    rtl/objpas/classes/streams.inc
--- Recording mergeinfo for merge of r49478 into '.':
 U   .

# revisions: 49478
r49478 | marco | 2021-06-05 17:42:34 +0200 (Sat, 05 Jun 2021) | 2 lines
Changed paths:
   M /trunk/rtl/objpas/classes/streams.inc

 * fix from Sebastian Hellwig for writeunicodestring bytes number, mantis   0038963

git-svn-id: branches/fixes_3_2@49610 -
2021-07-15 15:36:48 +00:00
marco
cce08d837b --- Merging r49490 into '.':
U    packages/fcl-db/src/base/db.pas
U    packages/paszlib/src/zstream.pp
--- Recording mergeinfo for merge of r49490 into '.':
 U   .
--- Merging r49491 into '.':
G    packages/fcl-db/src/base/db.pas
--- Recording mergeinfo for merge of r49491 into '.':
 G   .
--- Merging r49492 into '.':
U    packages/paszlib/src/infblock.pas
U    packages/paszlib/src/infcodes.pas
U    packages/paszlib/src/inffast.pas
U    packages/paszlib/src/zbase.pas
U    packages/paszlib/src/zconf.inc
U    packages/paszlib/src/zdeflate.pas
--- Recording mergeinfo for merge of r49492 into '.':
 G   .
--- Merging r49565 into '.':
U    rtl/win/wininc/defines.inc
--- Recording mergeinfo for merge of r49565 into '.':
 G   .
--- Merging r49590 into '.':
U    packages/gtk2/src/gtkext/gtkstatusicon.inc
U    packages/gtk2/src/gtkext/gtkstatusiconh.inc
--- Recording mergeinfo for merge of r49590 into '.':
 G   .

# revisions: 49490,49491,49492,49565,49590
r49490 | marco | 2021-06-08 10:52:50 +0200 (Tue, 08 Jun 2021) | 2 lines
Changed paths:
   M /trunk/packages/fcl-db/src/base/db.pas
   M /trunk/packages/paszlib/src/zstream.pp

 * use local buffer for seek mantis #38930 patch by Hendi.
r49491 | marco | 2021-06-08 10:53:42 +0200 (Tue, 08 Jun 2021) | 2 lines
Changed paths:
   M /trunk/packages/fcl-db/src/base/db.pas

 * revert accidentally modified file.
r49492 | marco | 2021-06-08 10:58:21 +0200 (Tue, 08 Jun 2021) | 2 lines
Changed paths:
   M /trunk/packages/paszlib/src/infblock.pas
   M /trunk/packages/paszlib/src/infcodes.pas
   M /trunk/packages/paszlib/src/inffast.pas
   M /trunk/packages/paszlib/src/zbase.pas
   M /trunk/packages/paszlib/src/zconf.inc
   M /trunk/packages/paszlib/src/zdeflate.pas

 * commit second patch (from Hendi) from mantis #38930, make debug define compiling again
r49565 | marco | 2021-06-26 20:36:37 +0200 (Sat, 26 Jun 2021) | 1 line
Changed paths:
   M /trunk/rtl/win/wininc/defines.inc

 * redo psd constants, mantis #39022
r49590 | marco | 2021-07-10 14:07:55 +0200 (Sat, 10 Jul 2021) | 6 lines
Changed paths:
   M /trunk/packages/gtk2/src/gtkext/gtkstatusicon.inc
   M /trunk/packages/gtk2/src/gtkext/gtkstatusiconh.inc

 * add gtk_status_icon_set_tooltip_text as per Juha's patch, mantis #39199
 --This line, and those below, will be ignored--

M    gtk2/src/gtkext/gtkstatusicon.inc
M    gtk2/src/gtkext/gtkstatusiconh.inc

git-svn-id: branches/fixes_3_2@49607 -
2021-07-13 13:35:01 +00:00
marco
74aff88586 --- Merging r49045 into '.':
C    Makefile
C    Makefile.fpc
--- Recording mergeinfo for merge of r49045 into '.':
 U   .
Summary of conflicts:
  Text conflicts: 2

# revisions: 49045
r49045 | jonas | 2021-03-24 15:33:09 +0100 (Wed, 24 Mar 2021) | 1 line
Changed paths:
   M /trunk/Makefile
   M /trunk/Makefile.fpc

  * support building with FPC 3.2.2

git-svn-id: branches/fixes_3_2@49384 -
2021-05-20 20:03:52 +00:00
michael
619c520fd6 * Merging revisions r49225 from trunk:
------------------------------------------------------------------------
    r49225 | michael | 2021-04-18 12:45:47 +0200 (Sun, 18 Apr 2021) | 1 line
    
    * Fix issue ID #38772
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@49301 -
2021-05-01 08:52:31 +00:00
marco
012973a4a2 --- Merging r49244 into '.':
U    rtl/win/sysutils.pp
--- Recording mergeinfo for merge of r49244 into '.':
 U   .
--- Merging r49245 into '.':
U    packages/winunits-base/src/comserv.pp
--- Recording mergeinfo for merge of r49245 into '.':
 G   .
--- Merging r49250 into '.':
G    rtl/win/sysutils.pp
--- Recording mergeinfo for merge of r49250 into '.':
 G   .

# revisions: 49244,49245,49250
r49244 | marco | 2021-04-22 16:00:51 +0200 (Thu, 22 Apr 2021) | 1 line
Changed paths:
   M /trunk/rtl/win/sysutils.pp

 * use W variant to get localestrs.
r49245 | marco | 2021-04-22 17:11:38 +0200 (Thu, 22 Apr 2021) | 1 line
Changed paths:
   M /trunk/packages/winunits-base/src/comserv.pp

 * patch by Wallaby, mantis 0038382, load filename via -W function
r49250 | marco | 2021-04-23 21:06:18 +0200 (Fri, 23 Apr 2021) | 1 line
Changed paths:
   M /trunk/rtl/win/sysutils.pp

 * avoid rangecheck mantis 0038791

git-svn-id: branches/fixes_3_2@49288 -
2021-04-29 11:34:37 +00:00
marco
307f82c48b --- Merging r49115 into '.':
U    rtl/darwin/sysctlh.inc
--- Recording mergeinfo for merge of r49115 into '.':
 U   .

# revisions: 49115
r49115 | marco | 2021-04-03 21:42:11 +0200 (Sat, 03 Apr 2021) | 1 line
Changed paths:
   M /trunk/rtl/darwin/sysctlh.inc

 * patch from mantis 37205, add OS X sysctl constants

git-svn-id: branches/fixes_3_2@49116 -
2021-04-03 19:42:31 +00:00
marco
46533ea1e8 --- Merging r49040 into '.':
U    packages/rtl-objpas/src/inc/variants.pp
--- Recording mergeinfo for merge of r49040 into '.':
 U   .
--- Merging r49044 into '.':
U    packages/rtl-objpas/src/inc/strutils.pp
--- Recording mergeinfo for merge of r49044 into '.':
 G   .
--- Merging r49047 into '.':
U    packages/regexpr/src/regexpr.pas
--- Recording mergeinfo for merge of r49047 into '.':
 G   .
--- Merging r49101 into '.':
U    rtl/win/wininc/struct.inc
--- Recording mergeinfo for merge of r49101 into '.':
 G   .
--- Merging r49104 into '.':
C    compiler/aarch64/cgcpu.pas
A    tests/webtbs/tw38695.pp
--- Recording mergeinfo for merge of r49104 into '.':
 G   .
Summary of conflicts:
  Text conflicts: 1

# revisions: 49040,49044,49047,49101,49104
r49040 | florian | 2021-03-23 21:57:18 +0100 (Tue, 23 Mar 2021) | 1 line
Changed paths:
   M /trunk/packages/rtl-objpas/src/inc/variants.pp

  * patch by Arnaud Bouchez: initialize dummy_data properly, resolves #38653
r49044 | michael | 2021-03-24 11:40:03 +0100 (Wed, 24 Mar 2021) | 1 line
Changed paths:
   M /trunk/packages/rtl-objpas/src/inc/strutils.pp

Fix casing, bug ID #38660
r49047 | michael | 2021-03-24 18:05:26 +0100 (Wed, 24 Mar 2021) | 1 line
Changed paths:
   M /trunk/packages/regexpr/src/regexpr.pas

* Fix issue #38442
r49101 | marco | 2021-04-02 16:54:40 +0200 (Fri, 02 Apr 2021) | 1 line
Changed paths:
   M /trunk/rtl/win/wininc/struct.inc

 * split propsheetheader in  -A and -W variants.
r49104 | florian | 2021-04-02 18:44:43 +0200 (Fri, 02 Apr 2021) | 2 lines
Changed paths:
   M /trunk/compiler/aarch64/cgcpu.pas
   A /trunk/tests/webtbs/tw38695.pp

* Aarch64: patch by J. Gareth Moreton: fix constant writing, resolves #38695
  + test

git-svn-id: branches/fixes_3_2@49110 -
2021-04-03 09:12:47 +00:00
marco
44383938f9 --- Merging r49080 into '.':
U    rtl/inc/lnfodwrf.pp
--- Recording mergeinfo for merge of r49080 into '.':
 U   .
--- Merging r49086 into '.':
G    rtl/inc/lnfodwrf.pp
--- Recording mergeinfo for merge of r49086 into '.':
 G   .

# revisions: 49080,49086
r49080 | florian | 2021-03-29 14:20:39 +0200 (Mon, 29 Mar 2021) | 1 line
Changed paths:
   M /trunk/rtl/inc/lnfodwrf.pp

  + use a hash table to speed up line info retrieval
r49086 | florian | 2021-03-30 16:06:19 +0200 (Tue, 30 Mar 2021) | 1 line
Changed paths:
   M /trunk/rtl/inc/lnfodwrf.pp

  * check for cache entry before even trying to open the file containing the debug info

git-svn-id: branches/fixes_3_2@49088 -
2021-03-30 20:10:09 +00:00
pierre
efc8cd8371 * Merging of commits changing rtl/win16/Makefile.fpc
------------------------------------------------------------------------
r47258 | pierre | 2020-10-30 16:13:35 +0000 (Fri, 30 Oct 2020) | 1 line

 Add explicitly dependency to system unit for win16 rtl
------------------------------------------------------------------------
--- Merging r47258 into '.':
C    rtl/win16/Makefile
C    rtl/win16/Makefile.fpc
--- Recording mergeinfo for merge of r47258 into '.':
 U   .
Summary of conflicts:
  Text conflicts: 2, due to sortbase unit only presentr in trunk,
conflicts resolved by removing the sortbase PPU references.

git-svn-id: branches/fixes_3_2@48417 -
2021-01-25 08:39:59 +00:00
marco
fb97d7c467 --- Merging r45802 into '.':
U    rtl/powerpc/powerpc.inc
--- Recording mergeinfo for merge of r45802 into '.':
 U   .

# revisions: 45802
r45802 | karoly | 2020-07-17 23:28:49 +0200 (Fri, 17 Jul 2020) | 1 line
Changed paths:
   M /trunk/rtl/powerpc/powerpc.inc

powerpc: also drop DCBZ usage on AmigaOS4, as it runs on hardware with other than the assumed cacheline size

git-svn-id: branches/fixes_3_2@48123 -
2021-01-09 22:22:30 +00:00
florian
d758c95e9b -- Zusammenführen von r46778 in ».«:
U    rtl/objpas/sysutils/fmtflt.inc
A    tests/test/units/sysutils/tw37374.pp
-- Aufzeichnung der Informationen für Zusammenführung von r46778 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@48104 -
2021-01-07 21:06:28 +00:00
pierre
679c1c9199 Merge commit #47157
------------------------------------------------------------------------
r47157 | pierre | 2020-10-23 12:25:44 +0200 (Fri, 23 Oct 2020) | 1 line

 Switch OpenBSD libc version of geterrnolocation from libcerrno lib C variable to _libc___errno function use
------------------------------------------------------------------------
--- Merging r47157 into '.':
U    rtl/bsd/sysos.inc
--- Recording mergeinfo for merge of r47157 into '.':
 U   .

git-svn-id: branches/fixes_3_2@48012 -
2021-01-03 15:16:34 +00:00
pierre
dbe1e2bff7 * Merging of commits changing OpenBSD types.
------------------------------------------------------------------------
r41878 | nickysn | 2019-04-15 17:11:13 +0000 (Mon, 15 Apr 2019) | 4 lines

* updated the openbsd tstatfs structure to be compatible with the currently
  supported openbsd versions (6.3 and 6.4)


------------------------------------------------------------------------
--- Merging r41878 into '.':
U    rtl/openbsd/ptypes.inc
--- Recording mergeinfo for merge of r41878 into '.':
 U   .
------------------------------------------------------------------------
r41966 | pierre | 2019-05-01 14:51:20 +0000 (Wed, 01 May 2019) | 1 line

 Change ssize_t type to clong and specify pthread_once_t_rec record
------------------------------------------------------------------------
--- Merging r41966 into '.':
G    rtl/openbsd/ptypes.inc
--- Recording mergeinfo for merge of r41966 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47962 -
2021-01-02 11:07:20 +00:00
marco
fd02f9b727 # revisions: 44426,44562,45115,45371,45375,45511,44641,44559,47746
git-svn-id: branches/fixes_3_2@47934 -
2021-01-01 18:05:20 +00:00
pierre
e935ab3983 Merge of commit #47228
------------------------------------------------------------------------
r47228 | pierre | 2020-10-27 23:10:37 +0000 (Tue, 27 Oct 2020) | 1 line

 Default to add -dFPC_USE_LIBC for OpenBSD OS (can be disabled by setting FPC_USE_SYSCALL=1)
------------------------------------------------------------------------
--- Merging r47228 into '.':
U    rtl/openbsd/Makefile
U    rtl/openbsd/Makefile.fpc
--- Recording mergeinfo for merge of r47228 into '.':
 U   .

git-svn-id: branches/fixes_3_2@47924 -
2020-12-31 13:55:31 +00:00
marco
c612e9c69e --- Merging r43776 into '.':
C    rtl/inc/systemh.inc
--- Recording mergeinfo for merge of r43776 into '.':
 U   .
Summary of conflicts:
  Text conflicts: 1

# revisions: 43776
r43776 | svenbarth | 2019-12-24 22:30:00 +0100 (Tue, 24 Dec 2019) | 1 line
Changed paths:
   M /trunk/rtl/inc/systemh.inc

* if a CPU platform does not provide a FarPointer type then declare it as an alias to a mere Pointer

git-svn-id: branches/fixes_3_2@47918 -
2020-12-30 23:04:49 +00:00
marco
ba6989a42f --- Merging r43121 into '.':
U    rtl/inc/cgeneric.inc
--- Recording mergeinfo for merge of r43121 into '.':
 U   .
--- Merging r47123 into '.':
U    rtl/aarch64/math.inc
--- Recording mergeinfo for merge of r47123 into '.':
 G   .

# revisions: 43121,47123
r43121 | svenbarth | 2019-10-05 11:42:55 +0200 (Sat, 05 Oct 2019) | 1 line
Changed paths:
   M /trunk/rtl/inc/cgeneric.inc

* use clib constant instead of literal 'c' in case we have a target where the library is not called 'c' (hopefully all targets that use cgeneric.inc have the clib constant declared in their sysos.inc)
r47123 | svenbarth | 2020-10-18 10:52:41 +0200 (Sun, 18 Oct 2020) | 1 line
Changed paths:
   M /trunk/rtl/aarch64/math.inc

* for Aarch64 inline assembly comments need to start with //

git-svn-id: branches/fixes_3_2@47916 -
2020-12-30 22:57:50 +00:00
florian
06a0e48958 -- Zusammenführen von r43183 in ».«:
U    compiler/dbgdwarf.pas
-- Aufzeichnung der Informationen für Zusammenführung von r43183 in ».«:
 U   .
-- Zusammenführen von r47286 in ».«:
U    compiler/symdef.pas
-- Aufzeichnung der Informationen für Zusammenführung von r47286 in ».«:
 G   .
-- Zusammenführen von r44070 in ».«:
U    rtl/objpas/sysutils/sysstr.inc
-- Aufzeichnung der Informationen für Zusammenführung von r44070 in ».«:
 G   .

git-svn-id: branches/fixes_3_2@47912 -
2020-12-30 14:52:55 +00:00
marco
83f7e7e3dc --- Merging r46853 into '.':
U    rtl/inc/text.inc
--- Recording mergeinfo for merge of r46853 into '.':
 U   .
--- Merging r46864 into '.':
G    rtl/inc/text.inc
--- Recording mergeinfo for merge of r46864 into '.':
 G   .
--- Merging r46946 into '.':
G    rtl/inc/text.inc
A    tests/test/units/system/tseekeof.pp
--- Recording mergeinfo for merge of r46946 into '.':
 G   .
--- Merging r47542 into '.':
U    rtl/go32v2/sysutils.pp
U    rtl/msdos/sysutils.pp
U    rtl/watcom/sysutils.pp
--- Recording mergeinfo for merge of r47542 into '.':
 G   .
--- Merging r47543 into '.':
G    rtl/msdos/sysutils.pp
--- Recording mergeinfo for merge of r47543 into '.':
 G   .
--- Merging r47544 into '.':
G    rtl/go32v2/sysutils.pp
--- Recording mergeinfo for merge of r47544 into '.':
 G   .

# revisions: 46853,46864,46946,47542,47543,47544
r46853 | hajny | 2020-09-12 01:43:32 +0200 (Sat, 12 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/text.inc

  * fix for bug #37716 by Andrey 'Croco' Stolyarov
r46864 | hajny | 2020-09-14 07:30:59 +0200 (Mon, 14 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/text.inc

  * fix for problem with commit 46853
r46946 | hajny | 2020-09-24 21:33:28 +0200 (Thu, 24 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/text.inc
   A /trunk/tests/test/units/system/tseekeof.pp

  * simplified version of SeekEof for improved TP/BP/Delphi compatibility by Andrey 'Croco' Stolyarov as fix for #37716, plus a new test for testing the compatibility
r47542 | hajny | 2020-11-24 01:25:20 +0100 (Tue, 24 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/go32v2/sysutils.pp
   M /trunk/rtl/msdos/sysutils.pp
   M /trunk/rtl/watcom/sysutils.pp

  + provided sysbeep for DOS targets
r47543 | hajny | 2020-11-24 01:27:06 +0100 (Tue, 24 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/msdos/sysutils.pp

  * reverted a change not belonging to the previous commit
r47544 | hajny | 2020-11-24 01:29:08 +0100 (Tue, 24 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/go32v2/sysutils.pp

  * reverted a change not belonging to the previous commit

git-svn-id: branches/fixes_3_2@47907 -
2020-12-30 14:07:54 +00:00
florian
4995677b0f --- Zusammenführung
-- Zusammenführen von r45995 in ».«:
U    rtl/linux/i386/sighnd.inc
U    rtl/linux/x86_64/sighnd.inc
A    tests/webtbs/tw37468.pp
-- Aufzeichnung der Informationen für Zusammenführung von r45995 in ».«:
 U   .
-- Zusammenführen von r46207 in ».«:
U    rtl/linux/i386/sighndh.inc
-- Aufzeichnung der Informationen für Zusammenführung von r46207 in ».«:
 G   .
-- Zusammenführen von r46208 in ».«:
G    rtl/linux/i386/sighnd.inc
-- Aufzeichnung der Informationen für Zusammenführung von r46208 in ».«:
 G   .
-- Zusammenführen von r46210 in ».«:
U    rtl/aix/sighnd.inc
U    rtl/beos/i386/sighnd.inc
U    rtl/go32v2/dpmiexcp.pp
U    rtl/haiku/i386/sighnd.inc
U    rtl/haiku/x86_64/sighnd.inc
U    rtl/i8086/math.inc
U    rtl/inc/genmath.inc
U    rtl/linux/m68k/sighnd.inc
U    rtl/linux/powerpc/sighnd.inc
U    rtl/linux/powerpc64/sighnd.inc
U    rtl/linux/sparc/sighnd.inc
U    rtl/linux/sparc64/sighnd.inc
G    rtl/linux/x86_64/sighnd.inc
U    rtl/netbsd/arm/sighnd.inc
U    rtl/netbsd/m68k/sighnd.inc
U    rtl/netbsd/powerpc/sighnd.inc
U    rtl/netbsd/x86_64/sighnd.inc
U    rtl/openbsd/i386/sighnd.inc
U    rtl/openbsd/x86_64/sighnd.inc
U    rtl/os2/system.pas
U    rtl/solaris/i386/sighnd.inc
U    rtl/solaris/sparc/sighnd.inc
U    rtl/solaris/x86_64/sighnd.inc
U    rtl/win32/system.pp
U    rtl/win64/system.pp
U    tests/webtbs/tw37468.pp
U    rtl/wince/system.pp
-- Aufzeichnung der Informationen für Zusammenführung von r46210 in ».«:
 G   .
-- Zusammenführen von r46992 in ».«:
G    rtl/linux/x86_64/sighnd.inc
A    tests/webtbs/tw37468b.pp
-- Aufzeichnung der Informationen für Zusammenführung von r46992 in ».«:
 G   .
-- Zusammenführen von r47114 in ».«:
G    rtl/linux/x86_64/sighnd.inc
G    rtl/linux/i386/sighnd.inc
A    tests/webtbs/tw37926.pp
-- Aufzeichnung der Informationen für Zusammenführung von r47114 in ».«:
 G   .
-- Zusammenführen von r47117 in ».«:
G    rtl/linux/i386/sighnd.inc
G    rtl/linux/x86_64/sighnd.inc
G    rtl/linux/m68k/sighnd.inc
-- Aufzeichnung der Informationen für Zusammenführung von r47117 in ».«:
 G   .

git-svn-id: branches/fixes_3_2@47906 -
2020-12-30 14:07:17 +00:00
florian
91382b5deb * manually merged parts of r42260 to enable further merges
git-svn-id: branches/fixes_3_2@47905 -
2020-12-30 13:53:10 +00:00
pierre
918ca565f2 Merge commit 44291
------------------------------------------------------------------------
r44291 | pierre | 2020-03-12 10:53:56 +0000 (Thu, 12 Mar 2020) | 1 line

 Add explicit dependency of AVR specific unit avrsim on consoleio and heapmgr units
------------------------------------------------------------------------
--- Merging r44291 into '.':
C    rtl/embedded/Makefile (resolved by recomputing Makefile using fpcmake)
U    rtl/embedded/Makefile.fpc
--- Recording mergeinfo for merge of r44291 into '.':
 U   .

git-svn-id: branches/fixes_3_2@47823 -
2020-12-20 11:27:04 +00:00
svenbarth
74a1b6406e --- Merging r45159 into '.':
U    rtl/nativent/systhrd.inc
U    rtl/os2/systhrd.inc
U    rtl/win/systhrd.inc
--- Recording mergeinfo for merge of r45159 into '.':
 U   .
--- Merging r45160 into '.':
U    rtl/amicommon/athreads.pp
U    rtl/beos/bethreads.pp
U    rtl/inc/thread.inc
U    rtl/inc/threadh.inc
G    rtl/nativent/systhrd.inc
U    rtl/netware/systhrd.inc
U    rtl/netwlibc/systhrd.inc
U    rtl/objpas/classes/classes.inc
U    rtl/objpas/classes/classesh.inc
G    rtl/os2/systhrd.inc
U    rtl/unix/cthreads.pp
G    rtl/win/systhrd.inc
--- Recording mergeinfo for merge of r45160 into '.':
 G   .
--- Merging r45206 into '.':
U    rtl/win/sysos.inc
G    rtl/win/systhrd.inc
U    rtl/win/syswin.inc
--- Recording mergeinfo for merge of r45206 into '.':
 G   .
--- Merging r45207 into '.':
U    rtl/linux/pthread.inc
--- Recording mergeinfo for merge of r45207 into '.':
 G   .
--- Merging r45233 into '.':
G    rtl/linux/pthread.inc
G    rtl/unix/cthreads.pp
--- Recording mergeinfo for merge of r45233 into '.':
 G   .
--- Merging r45237 into '.':
G    rtl/unix/cthreads.pp
G    rtl/win/systhrd.inc
--- Recording mergeinfo for merge of r45237 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47806 -
2020-12-17 22:44:26 +00:00
svenbarth
432fcd52bc Merged revision(s) 45409, 46897-46898, 47007, 47011, 47065, 47084 from trunk:
* fix for Mantis #37042: apply patch and test (adjusted for Big Endian) by Bi0T1N to add support for TBitConverter
........
* avoid range check error when using SwapEndian with 16-bit constants
+ added test
........
* readd SmallInt typecasts to SmallInt overload of SwapEndian
........
* when removing a method from the synchronization queue using TThread.RemoveQueuedEvent then both the Code and the Data need to match (Delphi does the same)
+ added test
........
* simplify TThread.RemoveQueuedEvent - decide what to delete and not what to leave (better corresponds with the docs)
........
+ add ability to specify a SQLite VFS when opening a SQLite database
........
* fix test: TThread.WaitFor calls CheckSynchronize as well, so the thread needs to signal when it's done with removing entries from the queue
........

git-svn-id: branches/fixes_3_2@47782 -
2020-12-15 22:31:59 +00:00
svenbarth
8a249b2d74 Merged revision(s) 44256-44257, 44746, 45329 from trunk:
* fix for Mantis #36706: only link a library against the dynamic loader if we're not linking against the C library anyway

Note: I did not yet find a case where we *do* need to link a library against the loader; this will have to be investigated further, but for 3.2.0 this is safest
........
* fix for Mantis #36738: when copying a record using its copy operator we assume that we've copied the whole record; this way managed records inside non-managed records are handled correctly
+ added (adjusted) test
........
* when checking for an existing operator overload for the assignment operator, check for the correct variant (explicit or not) matching the overload
+ added tests
........
* GetLoadErrorStr (currently) returns a ShortString, so avoid a useless conversion to AnsiString
........

git-svn-id: branches/fixes_3_2@47771 -
2020-12-13 21:52:13 +00:00
Jonas Maebe
c9c1c1686c --- Merging r46880 into '.':
U    rtl/aarch64/mathu.inc
--- Recording mergeinfo for merge of r46880 into '.':
 U   .
--- Merging r40512 into '.':
A    tests/webtbs/tw33607.pp
--- Recording mergeinfo for merge of r40512 into '.':
 G   .
--- Merging r42961 into '.':
U    compiler/aarch64/aasmcpu.pas
--- Recording mergeinfo for merge of r42961 into '.':
 G   .
--- Merging r44932 into '.':
G    compiler/aarch64/aasmcpu.pas
--- Recording mergeinfo for merge of r44932 into '.':
 G   .
--- Merging r44933 into '.':
U    compiler/aarch64/racpugas.pas
--- Recording mergeinfo for merge of r44933 into '.':
 G   .
--- Merging r44998 into '.':
U    compiler/aarch64/racpu.pas
--- Recording mergeinfo for merge of r44998 into '.':
 G   .
--- Merging r45667 into '.':
G    compiler/aarch64/racpugas.pas
U    compiler/rautils.pas
A    tests/webtbs/tw37218.pp
--- Recording mergeinfo for merge of r45667 into '.':
 G   .
--- Merging r45814 into '.':
U    compiler/aarch64/rgcpu.pas
A    tests/webtbs/tw37393.pp
--- Recording mergeinfo for merge of r45814 into '.':
 G   .
--- Merging r46690 into '.':
G    compiler/aarch64/aasmcpu.pas
--- Recording mergeinfo for merge of r46690 into '.':
 G   .
--- Merging r46871 into '.':
U    compiler/aarch64/cgcpu.pas
--- Recording mergeinfo for merge of r46871 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47756 -
2020-12-11 15:40:07 +00:00
marco
82d2f07ee7 # revisions: 47147
git-svn-id: branches/fixes_3_2@47730 -
2020-12-08 20:42:54 +00:00
marco
d2f5f098cc # revisions: 45848
git-svn-id: branches/fixes_3_2@47727 -
2020-12-08 20:34:55 +00:00
marco
0feee25b1e # revisions: 46531,46744,46747,47288,47327,47366,47392,47393,47414
git-svn-id: branches/fixes_3_2@47725 -
2020-12-08 20:32:00 +00:00
marco
ec0fb329f4 --- Merging r47196 into '.':
U    rtl/inc/softfpu.pp
--- Recording mergeinfo for merge of r47196 into '.':
 U   .

# revisions: 47196
r47196 | svenbarth | 2020-10-25 14:20:38 +0100 (Sun, 25 Oct 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/softfpu.pp

* fix for Mantis #37986: apply patch by Bart Broersma to fix a typo in a comment

git-svn-id: branches/fixes_3_2@47646 -
2020-11-30 17:56:13 +00:00
pierre
1439bd67b1 ------------------------------------------------------------------------
r46682 | pierre | 2020-08-25 06:34:29 +0000 (Tue, 25 Aug 2020) | 1 line

 * Disable range and overflow checking inside softfpu implementation
------------------------------------------------------------------------
--- Merging r46682 into '.':
U    rtl/inc/softfpu.pp
--- Recording mergeinfo for merge of r46682 into '.':
 U   .

git-svn-id: branches/fixes_3_2@47620 -
2020-11-28 15:57:56 +00:00
svenbarth
f4003a0981 Merged revision(s) 45479, 45489 from trunk:
+ add additional overloads for FindResource and FindResourceEx so that mixtures of AnsiString and MAKEINTRESOURCE types as well as names can be used
+ added test for ReadComponentRes (which called the wrong FindResource before)
........
* disable the new FindResource(Ex) overloads for Win16 for now (the one with PChar is disabled as well); this will need to be revisited once Win16 receives proper resource support
........

git-svn-id: branches/fixes_3_2@47603 -
2020-11-26 20:51:29 +00:00
svenbarth
7988446f1a Merged revision(s) 39802, 39816-39817 from trunk:
* fix for Mantis #34332: allow 2 parameter form of Copy also for ShortString variables
+ added test
........
* have the fpc_*_copy compiler intrinsics reference the intrinsic symbol they belong to
........
* fix for Mantis #34333: improve error output for incorrect calls to Copy()
........

git-svn-id: branches/fixes_3_2@47586 -
2020-11-25 21:24:41 +00:00
marco
9d335225d8 --- Merging r47055 into '.':
U    rtl/objpas/sysutils/filutil.inc
U    rtl/objpas/sysutils/filutilh.inc
--- Recording mergeinfo for merge of r47055 into '.':
 U   .

# revisions: 47055
r47055 | michael | 2020-10-06 09:59:09 +0200 (Tue, 06 Oct 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/filutil.inc
   M /trunk/rtl/objpas/sysutils/filutilh.inc

* Add GetFileContents and GetFileAsString

git-svn-id: branches/fixes_3_2@47582 -
2020-11-25 17:06:24 +00:00
marco
9163637388 # revisions: 45993,46211,46430
git-svn-id: branches/fixes_3_2@47576 -
2020-11-25 08:10:43 +00:00
marco
f0445c2374 # revisions: 45877,46843,46844,46845,47275,47364,47505
git-svn-id: branches/fixes_3_2@47574 -
2020-11-25 07:48:56 +00:00
marco
9728612601 # revisions: 44952,44996,45855,46343,46753,46839
git-svn-id: branches/fixes_3_2@47573 -
2020-11-25 07:26:17 +00:00
marco
f9aa77ace5 --- Merging r47528 into '.':
U    rtl/os2/sysutils.pp
--- Recording mergeinfo for merge of r47528 into '.':
 U   .
--- Merging r47529 into '.':
U    rtl/emx/sysutils.pp
U    rtl/go32v2/sysutils.pp
U    rtl/msdos/sysutils.pp
U    rtl/watcom/sysutils.pp
--- Recording mergeinfo for merge of r47529 into '.':
 G   .

# revisions: 47528,47529
r47528 | hajny | 2020-11-22 16:53:50 +0100 (Sun, 22 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/os2/sysutils.pp

  * Corrections of omissions in GetLocalTime
r47529 | hajny | 2020-11-22 17:19:34 +0100 (Sun, 22 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/emx/sysutils.pp
   M /trunk/rtl/go32v2/sysutils.pp
   M /trunk/rtl/msdos/sysutils.pp
   M /trunk/rtl/watcom/sysutils.pp

  * Correction of omissions in GetLocalTime

git-svn-id: branches/fixes_3_2@47539 -
2020-11-23 10:50:08 +00:00
marco
397093aeed --- Merging r47536 into '.':
U    rtl/go32v2/v2prt0.as
--- Recording mergeinfo for merge of r47536 into '.':
 U   .

# revisions: 47536
r47536 | karoly | 2020-11-23 04:42:16 +0100 (Mon, 23 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/go32v2/v2prt0.as

go32v2: define __crt0_startup_flags as .comm rather than a global symbol. This allows linking against DJGPP libs and code which might also define this symbol. This change is also inline with recent crt0.S versions in DJGPP.

git-svn-id: branches/fixes_3_2@47538 -
2020-11-23 09:07:42 +00:00
marco
55401227f9 --- Merging r42559 into '.':
U    rtl/objpas/sysutils/filutil.inc
--- Recording mergeinfo for merge of r42559 into '.':
 U   .

# revisions: 42559
r42559 | svenbarth | 2019-08-02 15:16:17 +0200 (Fri, 02 Aug 2019) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/filutil.inc

* fix for Mantis #35906: use more accurate modified time from the FindData on Windows for the Timestamp

git-svn-id: branches/fixes_3_2@47261 -
2020-10-31 15:27:29 +00:00
marco
1620873928 --- Merging r46855 into '.':
U    rtl/win/sysutils.pp
--- Recording mergeinfo for merge of r46855 into '.':
 U   .

# revisions: 46855
r46855 | svenbarth | 2020-09-12 10:03:10 +0200 (Sat, 12 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/win/sysutils.pp

* handle reparse points that are neither symlinks nor mount points as normal files

git-svn-id: branches/fixes_3_2@47100 -
2020-10-12 09:23:48 +00:00
marco
c2bd150407 --- Merging r47068 into '.':
U    rtl/objpas/sysutils/syshelp.inc
U    rtl/objpas/sysutils/syshelph.inc
--- Recording mergeinfo for merge of r47068 into '.':
 U   .

# revisions: 47068
r47068 | michael | 2020-10-09 13:21:30 +0200 (Fri, 09 Oct 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/syshelp.inc
   M /trunk/rtl/objpas/sysutils/syshelph.inc

* Patch from Werner Pamler to implement TStringSplitOptions.ExcludeLastEmpty

git-svn-id: branches/fixes_3_2@47099 -
2020-10-12 08:01:59 +00:00
marco
3659780850 --- Merging r46972 into '.':
U    rtl/objpas/math.pp
--- Recording mergeinfo for merge of r46972 into '.':
 U   .

# revisions: 46972
r46972 | florian | 2020-09-27 15:05:36 +0200 (Sun, 27 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/math.pp

  * reported by Bart on the mailing list: insert empty line to make clear to which function the comment applies

git-svn-id: branches/fixes_3_2@47098 -
2020-10-12 06:09:24 +00:00
marco
0b26dba64c --- Merging r46951 into '.':
U    rtl/objpas/sysutils/syshelp.inc
--- Recording mergeinfo for merge of r46951 into '.':
 U   .

# revisions: 46951
r46951 | michael | 2020-09-25 10:51:21 +0200 (Fri, 25 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/sysutils/syshelp.inc

* Fix bug ID #37814: correctly initialize max chars

git-svn-id: branches/fixes_3_2@47097 -
2020-10-12 06:08:49 +00:00
marco
2b9ddf3bee # revisions: 45519,46865,46918
git-svn-id: branches/fixes_3_2@47095 -
2020-10-11 15:53:29 +00:00
marco
124bf1d108 # revisions: 44389,45572
git-svn-id: branches/fixes_3_2@47094 -
2020-10-11 15:49:03 +00:00
marco
9d6e63f2e3 # revisions: 45736
git-svn-id: branches/fixes_3_2@47093 -
2020-10-11 15:33:31 +00:00
marco
8d5e43c07e # revisions: 47064
git-svn-id: branches/fixes_3_2@47092 -
2020-10-11 15:18:17 +00:00
marco
d0db73c20d # revisions: 46957
git-svn-id: branches/fixes_3_2@47090 -
2020-10-11 14:08:33 +00:00
marco
8f8b5ed35b # revisions: 45522
git-svn-id: branches/fixes_3_2@47088 -
2020-10-11 13:41:52 +00:00
marco
b711f33631 *
git-svn-id: branches/fixes_3_2@47085 -
2020-10-11 13:20:11 +00:00
michael
dbcd3d0b64 * Merging revisions 47061 from trunk:
------------------------------------------------------------------------
    r47061 | michael | 2020-10-07 12:15:13 +0200 (Wed, 07 Oct 2020) | 1 line
    
    * Fix bug where position is not advanced when calling ReadAnsiString/ReadString
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@47062 -
2020-10-07 10:23:29 +00:00
florian
d0f65b36ab --- Recording mergeinfo for merge of r39871 into '.':
U   .
--- Recording mergeinfo for merge of r42891 into '.':
 U   .
--- Merging r43167 into '.':
U    compiler/aarch64/cgcpu.pas
U    rtl/aarch64/aarch64.inc
--- Recording mergeinfo for merge of r43167 into '.':
 U   .
--- Recording mergeinfo for merge of r45788 into '.':
 G   .
--- Merging r46870 into '.':
U    rtl/linux/aarch64/sighnd.inc
U    rtl/linux/aarch64/sighndh.inc
--- Recording mergeinfo for merge of r46870 into '.':
 G   .
--- Merging r46872 into '.':
G    rtl/linux/aarch64/sighnd.inc
--- Recording mergeinfo for merge of r46872 into '.':
 G   .
--- Merging r46913 into '.':
U    compiler/systems/t_linux.pas
--- Recording mergeinfo for merge of r46913 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47037 -
2020-10-03 09:22:40 +00:00
pierre
0830edbde5 Regenerate all Makefile's after ios introduction and macos->macosclassic changes inside utils/fpcm/fpcmake.ini
git-svn-id: branches/fixes_3_2@46923 -
2020-09-23 09:47:20 +00:00
pierre
dd4007ce14 Merge of commit 46471, with regeneration of rtl/symbian/Makefile
to resolve conflict.
  
--- Merging r46471 into '.':
C    rtl/symbian/Makefile
U    rtl/symbian/Makefile.fpc
--- Recording mergeinfo for merge of r46471 into '.':
 U   .
Summary of conflicts:
  Text conflicts: 1

git-svn-id: branches/fixes_3_2@46873 -
2020-09-15 21:29:10 +00:00
Jonas Maebe
b6eafa3039 * regenerated Makefiles
git-svn-id: branches/fixes_3_2@46868 -
2020-09-15 19:54:06 +00:00
Jonas Maebe
76045bfc04 * merged macOS/AArch64 support + revisions these changes depended on
git-svn-id: branches/fixes_3_2@46866 -
2020-09-15 19:40:36 +00:00
marco
782ecf6c32 --- Merging r46763 into '.':
U    rtl/objpas/math.pp
--- Recording mergeinfo for merge of r46763 into '.':
 U   .

# revisions: 46763
r46763 | michael | 2020-09-04 17:19:28 +0200 (Fri, 04 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/objpas/math.pp

* Fix defines for fpdoc

git-svn-id: branches/fixes_3_2@46861 -
2020-09-13 12:38:53 +00:00
marco
55b4b54c2a # revisions: 45573,45790,45793
git-svn-id: branches/fixes_3_2@46830 -
2020-09-10 13:57:39 +00:00
michael
c72cd8ef67 * Merging revisions r46530 from trunk:
------------------------------------------------------------------------
    r46530 | michael | 2020-08-21 09:38:33 +0200 (Fri, 21 Aug 2020) | 1 line
    
    * Fix bug ID #0037605: Setting quotechar to NULL char disables quoting
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46640 -
2020-08-23 10:26:23 +00:00
michael
896cbd84e1 * Merging revisions r45520,r45521 from trunk:
------------------------------------------------------------------------
    r45520 | michael | 2020-05-28 11:39:35 +0200 (Thu, 28 May 2020) | 1 line
    
    * Add nullable (bug ID 0037128)
    ------------------------------------------------------------------------
    r45521 | michael | 2020-05-28 11:45:43 +0200 (Thu, 28 May 2020) | 1 line
    
    * Moved constant to rtlconsts
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46605 -
2020-08-23 09:28:54 +00:00
michael
a14117e0bb * Merging revisions r45805 from trunk:
------------------------------------------------------------------------
    r45805 | michael | 2020-07-19 00:35:36 +0200 (Sun, 19 Jul 2020) | 1 line
    
    * Add TerminatedSet (delphi compatibility, bug ID #37388)
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46598 -
2020-08-23 09:24:13 +00:00
michael
0a2f57724b * Merging revisions r45444 from trunk:
------------------------------------------------------------------------
    r45444 | michael | 2020-05-20 09:32:09 +0200 (Wed, 20 May 2020) | 1 line
    
    * Fix bug ID #37118
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46587 -
2020-08-23 09:20:22 +00:00
michael
adbd474287 * Merging revisions r45425 from trunk:
------------------------------------------------------------------------
    r45425 | michael | 2020-05-18 19:29:48 +0200 (Mon, 18 May 2020) | 1 line
    
    * clarify dubious case statements
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46585 -
2020-08-23 09:19:14 +00:00
michael
23a9a30bb7 * Undo 46567, missing dependencies
git-svn-id: branches/fixes_3_2@46579 -
2020-08-23 09:14:27 +00:00
michael
61ae4eea1f * Merging revisions r44666 from trunk:
------------------------------------------------------------------------
    r44666 | michael | 2020-04-09 23:27:22 +0200 (Thu, 09 Apr 2020) | 1 line
    
    * Fix bug #35914: add epoll_pwait, epoll_create1
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@46567 -
2020-08-23 09:07:28 +00:00
ondrej
e17cadbaa7 Merge r46337 from trunk
Revision: 46337
Author: ondrej
Date: 2020-08-09 08:13:06
Message:
TWriter: fix default value handling for Int64/QWord values. Issue #37525

git-svn-id: branches/fixes_3_2@46339 -
2020-08-09 13:21:55 +00:00
pierre
c39c8c1794 Merge commits 41973, 43427 and 45937
------------------------------------------------------------------------
r41973 | pierre | 2019-05-02 12:59:11 +0000 (Thu, 02 May 2019) | 1 line

Add flags field to TStatfs record
------------------------------------------------------------------------
--- Merging r41973 into '.':
U    rtl/linux/ptypes.inc
--- Recording mergeinfo for merge of r41973 into '.':
 U   .
------------------------------------------------------------------------
r43427 | florian | 2019-11-09 18:27:21 +0000 (Sat, 09 Nov 2019) | 1 line

  * TIOCtlRequest is declared as unsigned long according to man 2 ioctl
------------------------------------------------------------------------
--- Merging r43427 into '.':
G    rtl/linux/ptypes.inc
--- Recording mergeinfo for merge of r43427 into '.':
 G   .
------------------------------------------------------------------------
r45837 | pierre | 2020-07-23 21:03:19 +0000 (Thu, 23 Jul 2020) | 1 line

 Define __USE_LARGEFILE64 for sparc-linux, and adapt filed ffree type to that macro
------------------------------------------------------------------------
--- Merging r45837 into '.':
G    rtl/linux/ptypes.inc
--- Recording mergeinfo for merge of r45837 into '.':
 G   .

git-svn-id: branches/fixes_3_2@46284 -
2020-08-06 08:40:16 +00:00