ondrej
cfff96f44c
FExpand: always uppercase drive letter also in BasePath
...
git-svn-id: trunk@46353 -
2020-08-10 20:42:13 +00:00
yury
ec10ee8218
* Improved generic implementations of fpc_mul_dword, fpc_mul_word, fpc_mul_byte to use less iterations and registers.
...
git-svn-id: trunk@46269 -
2020-08-05 17:58:46 +00:00
yury
aa633544f1
* Added a simple implementation of random. It is TP/Delphi compatible. Enabled it for 8/16 bit CPUs by default.
...
git-svn-id: trunk@46266 -
2020-08-05 16:29:07 +00:00
florian
7281ea7a2c
* floating point division by zero should throw run time error 208, fixed
...
git-svn-id: trunk@46210 -
2020-08-03 19:42:16 +00:00
yury
6edbc9ed7e
* tinyheap: Early check for very big requested mem sizes in order to prevent overflows and properly report the out of memory error.
...
git-svn-id: trunk@45844 -
2020-07-24 16:02:13 +00:00
pierre
adf064cbb4
New: rtl/inc/genmathh.inc source file, to provide a unique position
...
for the interface definition of float64 and float32 records,
available to all systems if FPUNONE is not defined.
rtl/inc/genmath.inc: Remove float64/float32, as they are now in rtl/inc/genmathh.inc
rtl/inc/softfpu.pp: Use provided definitions of float32 and float64
if available (by checking presence of FPC_SYSTEM_HAS_floatXX macro)
rtl/inc/systemh.inc: include genmathh.inc if FPUNONE is not defined.
rtl/java/jsystemh_types.inc: Likewise.
git-svn-id: trunk@45821 -
2020-07-21 14:24:14 +00:00
florian
a57f3ba396
* patch by Sergey Larin to handle Native(U)Int conversions from/to variants, resolves #37339
...
git-svn-id: trunk@45797 -
2020-07-16 20:44:30 +00:00
pierre
7020490f81
Put floating point type as first variant of floatXX definitions, to ensure correct alignment
...
git-svn-id: trunk@45780 -
2020-07-13 14:13:13 +00:00
pierre
834dbf5f80
Also use union with double field to ensure correct alignment for float64 type from genmath.inc source
...
git-svn-id: trunk@45779 -
2020-07-13 13:18:32 +00:00
pierre
60c187e169
Make sure that we do not read passed the end of OPTSTRING variable
...
git-svn-id: trunk@45736 -
2020-07-06 20:56:14 +00:00
marco
41406d161c
* fix for mantis #37233 crash in getopts.getlongopts with empty shortopts argument
...
git-svn-id: trunk@45683 -
2020-06-23 09:01:37 +00:00
florian
bc1b7960ec
* patch by Bi0T1N: fix result type of InterlockedCompareExchange64 for QWord, resolves #37186
...
git-svn-id: trunk@45647 -
2020-06-13 19:14:20 +00:00
florian
dbd14206c9
* compilation on targets without fpu fixed
...
git-svn-id: trunk@45638 -
2020-06-11 17:30:12 +00:00
florian
20f6514d97
* fix compilation for non 64 Bit targets
...
git-svn-id: trunk@45636 -
2020-06-10 21:05:18 +00:00
florian
50c48349d5
* check properly for i/o errors in the iso read helpers, resolves #37154
...
* CheckRead checks if reading caused an I/O error and returns false in this case
git-svn-id: trunk@45635 -
2020-06-10 20:47:58 +00:00
ondrej
533312c619
Variants: fix letter case in variant type names
...
git-svn-id: trunk@45573 -
2020-06-03 07:02:15 +00:00
svenbarth
e82b9c3b2e
* 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: trunk@45489 -
2020-05-24 19:43:36 +00:00
svenbarth
1d4bbcef75
+ 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)
git-svn-id: trunk@45479 -
2020-05-23 21:24:01 +00:00
Jonas Maebe
f9672b53a2
- removed old float-to-string and string-to-float conversion code
...
git-svn-id: trunk@45401 -
2020-05-17 14:05:38 +00:00
pierre
3aa253c11d
Allow system unit to be compiled without RTTI feature
...
git-svn-id: trunk@45351 -
2020-05-13 09:10:23 +00:00
nickysn
5b24267529
* reduced the stack margin for stack checking to 64 bytes on the Z80
...
git-svn-id: trunk@45168 -
2020-04-29 01:22:22 +00:00
svenbarth
c8b7094378
* fix for Mantis #36940 : apply (adjusted) patch by Bi0T1N to add functionality to the thread manager to set a thread's debug name (if supported by the platform)
...
git-svn-id: trunk@45160 -
2020-04-28 19:58:20 +00:00
nickysn
fe05a87a27
* made ErrOutput/StdErr a true alias of Output/StdOut to save memory
...
git-svn-id: branches/z80@45134 -
2020-04-26 23:10:08 +00:00
nickysn
9c7f1a7cab
* synchronized with trunk
...
git-svn-id: branches/z80@45046 -
2020-04-24 03:30:29 +00:00
yury
8d95da3fea
* Windows: Reworked handling of command line arguments to properly support Unicode:
...
- Use the CommandLineToArgvW API function to parse the Unicode command line (we can use it since Win9x is not supported anymore).
- Implemented non-public functions ParamStrA and ParamStrU which are exposed in the objpas and uuchar units to provide correct AnsiString and UnicodeString versions of ParamStr().
- The cleanup code is moved from InternalExit to the finalization section of the System unit.
git-svn-id: trunk@45037 -
2020-04-23 12:38:42 +00:00
nickysn
a189ea4b0b
* synchronized with trunk
...
git-svn-id: branches/z80@45010 -
2020-04-22 22:43:31 +00:00
yury
0f4ddf7b34
* Do not report about unimplemented unicodestring manager when HAS_WIDESTRINGMANAGER is defined (on Windows). In such case unimplemented parts are never executed unless you call them directly.
...
* Do not assign DefaultGetStandardCodePage when HAS_WIDESTRINGMANAGER is defined (on Windows).
git-svn-id: trunk@44995 -
2020-04-22 09:13:20 +00:00
nickysn
86643f8a34
* synchronized with trunk
...
git-svn-id: branches/z80@44981 -
2020-04-21 23:36:44 +00:00
yury
c3954a0cee
* Fixed r44960. Also copy a trailing implicit #0 of the original string to the new larger string.
...
git-svn-id: trunk@44970 -
2020-04-21 18:55:24 +00:00
yury
1e32b96bc2
* Minor improvement. No need to move the terminating null char, since it is written later anyway. Remove a local var.
...
git-svn-id: trunk@44960 -
2020-04-21 14:18:35 +00:00
nickysn
611ac9076b
* synchronized with trunk
...
git-svn-id: branches/z80@44671 -
2020-04-09 22:01:59 +00:00
michael
a678192c11
* Use ansistrings for options. (bug ID 36892)
...
git-svn-id: trunk@44664 -
2020-04-09 21:05:59 +00:00
florian
a6cfaa996a
* few cleanups towards building the z80-embedded system unit
...
git-svn-id: branches/z80@44550 -
2020-04-03 20:37:27 +00:00
nickysn
48b4cc34cb
* synchronized with trunk
...
git-svn-id: branches/z80@44414 -
2020-03-29 23:04:40 +00:00
florian
391512546e
+ initial FreeRTOS RTL support, largely based on the Embedded target, limited to Xtensa so far
...
git-svn-id: trunk@44400 -
2020-03-29 17:13:45 +00:00
nickysn
755fe97c51
* synchronize with trunk
...
git-svn-id: branches/z80@44397 -
2020-03-29 16:24:32 +00:00
florian
28c0a47a95
+ Xtensa: completed rtl skeleton
...
git-svn-id: trunk@44322 -
2020-03-21 12:49:43 +00:00
florian
83a6efd759
+ Xtensa: RTL skeleton
...
git-svn-id: trunk@44320 -
2020-03-20 22:35:43 +00:00
svenbarth
97c8464b11
* 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
git-svn-id: trunk@44257 -
2020-03-02 22:04:45 +00:00
florian
af1a4c06c5
* fixed generic round(...) for large values based on a comment by Alexander Hofmann on fpc-devel
...
* extended test
git-svn-id: trunk@44235 -
2020-02-23 10:41:18 +00:00
florian
871136d4f2
* first couple of improvements propose by Stefan Kanthak at https://skanthak.homepage.t-online.de/division.html#fpc
...
git-svn-id: trunk@44057 -
2020-01-29 21:35:25 +00:00
florian
ae8d2dc69a
* omit first not, helps the reg. allocator to find a workable colouring, resolves #36611
...
git-svn-id: trunk@44005 -
2020-01-20 21:13:34 +00:00
florian
70a836c4a2
* first part of merging parts of Jeppe's intrinsics patch, mainly r31135
...
is merged by this commit with a lot of adaptions
git-svn-id: trunk@43949 -
2020-01-14 21:52:39 +00:00
florian
931d4dcfee
* ensure the rtl and the packages for embedded compile with features exceptions and classes disabled
...
git-svn-id: trunk@43931 -
2020-01-13 21:20:03 +00:00
ondrej
34fecf90f3
SysUtils: add ExpandFileName with a BasePath overload
...
git-svn-id: trunk@43928 -
2020-01-13 12:36:35 +00:00
Jonas Maebe
1f5efe2a95
* support for constrained sitofp/uitofp with (the upcoming) LLVM 10.0
...
(fixes most of test/units/math/troundm, although there's still an LLVM
optimizer/code generation bug that breaks some qword -> double
conversions)
git-svn-id: trunk@43829 -
2019-12-31 18:05:54 +00:00
Jonas Maebe
9b53ed53e3
* the llvm.experimental.constrained.fpext intrinsic doesn't have a rounding
...
mode parameter
git-svn-id: trunk@43828 -
2019-12-31 18:05:50 +00:00
Jonas Maebe
a6a17efa42
* use LLVM constrained fpext/fptrunc intrinsics when fastmath is not enabled
...
for accurate exception behaviour
git-svn-id: trunk@43820 -
2019-12-30 15:05:13 +00:00
Jonas Maebe
797077855e
* use constrained LLVM fp intrinsics for add/sub/mul/slash/fma/sqrt
...
operations when fastmath is not enabled
git-svn-id: trunk@43819 -
2019-12-30 15:05:09 +00:00
florian
7032c80041
* accept #26 as eof in iso mode, resolves #35136
...
git-svn-id: trunk@43801 -
2019-12-28 10:35:46 +00:00