Commit Graph

11933 Commits

Author SHA1 Message Date
michael
4e7115a956 * 2 Patches from Silvio Clecio
git-svn-id: trunk@32947 -
2016-01-15 20:59:29 +00:00
michael
10e7570948 * Applied patch from Thaddy de Koning (Bug ID 29405)
git-svn-id: trunk@32946 -
2016-01-15 17:30:48 +00:00
michael
64c324caaf * Patch from Silvio Clecio to add a TryGetValue method to TFPGMap (bug ID 29397)
git-svn-id: trunk@32942 -
2016-01-15 07:48:49 +00:00
nickysn
79c5b632f1 + added portl class for 32-bit port access in the i8086-msdos ports unit, if
the target cpu is 386 or later

git-svn-id: trunk@32929 -
2016-01-12 18:06:21 +00:00
Jonas Maebe
ec4342cc65 * fixed parallel building after r32857
git-svn-id: trunk@32924 -
2016-01-11 15:27:48 +00:00
michael
8544b8a500 * Patch from Anthony Walter to make IsValidIdent more strict in case of dotted identifiers (bug ID 29364)
git-svn-id: trunk@32920 -
2016-01-10 22:57:19 +00:00
michael
9225ff3293 * Fix for bug ID #28283 by Denis Kozlov
git-svn-id: trunk@32919 -
2016-01-10 20:14:28 +00:00
michael
5e9c34ff47 * Patch from Denis Kozlov to fix bug ID #28288
git-svn-id: trunk@32918 -
2016-01-10 20:02:08 +00:00
Jonas Maebe
a228a3bf4c * fixed parallel building for i386 after r32857
git-svn-id: trunk@32886 -
2016-01-07 22:06:27 +00:00
nickysn
72dc92e8b8 * added 'word ptr' overrides, to avoid generating 32-bit instructions (due to a
bug in the i8086 internal assembler reader, which will be fixed later)

git-svn-id: trunk@32872 -
2016-01-07 15:40:47 +00:00
pierre
e835f120e9 Fix fpc_frac_real, fpc_trunk_real and fpc_int_real by removing the assumption that SP=BP at entry
git-svn-id: trunk@32865 -
2016-01-06 15:20:57 +00:00
pierre
701a610f4d Use CodePointer for all CheckVariantEvent parameter typecast
git-svn-id: trunk@32864 -
2016-01-06 14:04:31 +00:00
michael
b9da082e29 * Patch from Silvio Clecio to Extends SetPropValue/GetPropValue (bug ID 28278)
git-svn-id: trunk@32858 -
2016-01-05 20:00:41 +00:00
florian
77cf67b59a o unified interface of i386 and x86-64 cpu unit:
+ InterlockedCompareExchange128Support for i386 always returning false
  + AESSupport for i386
  + dummy InterlockedCompareExchange128 for i386 throwing an rte 217

git-svn-id: trunk@32857 -
2016-01-05 15:23:26 +00:00
florian
d4d4689914 * use FormatMessageW in SysErrorMessage, resolves issue #29197
git-svn-id: trunk@32835 -
2016-01-03 15:56:31 +00:00
florian
026848b3e1 + use CPU_UNITS_DEFINED to track if a SUBARCH is passed, so with CPU_UNITS_DEFINED=1 it is easily possible to compile without any cpu units
git-svn-id: trunk@32833 -
2016-01-03 09:36:23 +00:00
michael
9157a11b7e * Applied partial patch from barlone to change var->out for IdentToInt
git-svn-id: trunk@32825 -
2016-01-01 17:37:46 +00:00
michael
ee2f34588d * Fix bug #28258, missing UTF8ToString, patch by Stocki
git-svn-id: trunk@32824 -
2016-01-01 17:27:44 +00:00
michael
6b3b3d5c0c * Fix bug ID #29155, wrong declaration of ISTream.
git-svn-id: trunk@32820 -
2016-01-01 16:35:38 +00:00
michael
353f5340dc * Patch from Ondrej Pokorny to implement - and * operators for TPointF
git-svn-id: trunk@32817 -
2015-12-31 16:27:19 +00:00
michael
244be4f4c2 * Added UnicodeStringReplace WideStringReplace (bug ID 28396)
git-svn-id: trunk@32815 -
2015-12-31 16:09:05 +00:00
michael
4f82d103af * Added SkipLastLineBreak to TStrings (bug ID 28213)
git-svn-id: trunk@32792 -
2015-12-29 18:48:58 +00:00
michael
67d0cd1770 * Fix bug #29273 (extra argument for IsValidIdent)
git-svn-id: trunk@32791 -
2015-12-29 16:55:00 +00:00
florian
3f2057a2f2 * do not generate blx instructions, the generation of blx instead of bl was introduced some years ago but today it proves to be wrong: if necessary, the linker converts the bl into a blx, this is also how gcc and clang handle it
git-svn-id: trunk@32788 -
2015-12-29 13:32:21 +00:00
Jeppe Johansen
f452d9140e Added missing reset vector
git-svn-id: trunk@32786 -
2015-12-29 11:07:20 +00:00
michael
a5eb3777de * Fix MaxDateTime constant (bug ID 28282)
git-svn-id: trunk@32775 -
2015-12-28 14:23:23 +00:00
michael
88957c62e3 * Add Ceil64 and Floor64, patch from Bart Broersma (bug ID 28370)
git-svn-id: trunk@32766 -
2015-12-27 17:25:06 +00:00
michael
0042e1d3b8 * Fix bug #29150
git-svn-id: trunk@32765 -
2015-12-27 17:07:31 +00:00
Jeppe Johansen
970f0064ea Downgrade build message from makefile from error to warning for arm-embedded. This makes it possible to build a working RTL with external startup code for subarchs with no cpu units.
git-svn-id: trunk@32750 -
2015-12-26 23:58:09 +00:00
michael
42804c935f * Declare TStringSplitOptions with scopedenum (bug ID 29032)
git-svn-id: trunk@32730 -
2015-12-26 16:16:02 +00:00
michael
891aaa9732 * Fix bug ID #28737
git-svn-id: trunk@32727 -
2015-12-26 15:15:34 +00:00
florian
a7f1ce2e98 * patch by Dmitry Boyarintsev: initialize dyn. arrays more cleverly in a setlength call with ref. count>1, resolves issue #29250
git-svn-id: trunk@32721 -
2015-12-26 08:53:56 +00:00
Jonas Maebe
f8f03ac4ad * fixed dirent handling for DragonFly BSD (patch by John Marino,
mantis #29228)

git-svn-id: trunk@32706 -
2015-12-24 10:54:47 +00:00
Tomas Hajny
b48b758a23 * fix for bug #29158 - added definition of REMOTE_NAME_INFOW (and REMOTE_NAME_INFOA), the W version used in ExpandUNCFileName now
git-svn-id: trunk@32692 -
2015-12-21 02:05:13 +00:00
sergei
97eccd73b7 - Win32 RTL: removed assembler startup files, which are unused since version 2.0.x
git-svn-id: trunk@32684 -
2015-12-20 01:41:28 +00:00
sergei
903ddf8403 - Cleaned out some more assembler PIC hacks around ExitCode variable
git-svn-id: trunk@32680 -
2015-12-18 11:49:20 +00:00
florian
3b50d0b64e * patch by Bernd to fix interrupt handling for the ATtiny1634 and ATtiny167 controllers (use jmp instead of rjmp to jump to the handlers), resolves issue #29122
git-svn-id: trunk@32650 -
2015-12-13 10:44:43 +00:00
florian
7b9a257549 * complain no matching SUBARCH value is passed, issue #29177
git-svn-id: trunk@32649 -
2015-12-13 10:41:12 +00:00
florian
91c59cb512 * fix Fill* code for CPUs with 8 Bit ALU
git-svn-id: trunk@32645 -
2015-12-12 15:49:51 +00:00
marco
5dcf5a95c5 * move beginupdate before try 3x , Mantis #29164
git-svn-id: trunk@32630 -
2015-12-10 19:21:16 +00:00
marco
aa33a9509f * added try..finally to beginupdate/endupdate, mantis #29165
git-svn-id: trunk@32629 -
2015-12-10 19:19:25 +00:00
Jonas Maebe
db2a02fb63 * clarified missing unicodestring manager error message
git-svn-id: trunk@32627 -
2015-12-10 11:00:00 +00:00
pierre
60070169bb Regenerated Makefile's for rtl/linux and rtl/win32, aarch64-linux target was missing
git-svn-id: trunk@32601 -
2015-12-06 11:35:28 +00:00
Jonas Maebe
e4647ac133 - removed "nostackframe" from floating point helpers for llvm, as FPC
doesn't handle nostackframe correctly in combination with extended
    parameters on x86 (with or without llvm)

git-svn-id: trunk@32598 -
2015-12-05 18:03:57 +00:00
pierre
42e08b4c01 Set PIC_OPT if -Cg of -fPIC option is used, also use -KPIC for mips and mipsel ASTARGET if PIC_OPT is set
git-svn-id: trunk@32588 -
2015-12-05 11:45:09 +00:00
pierre
fee0c228cc Regenerate after: Fix rtl compilation for AIX OS
git-svn-id: trunk@32587 -
2015-12-05 00:16:31 +00:00
pierre
e333877ab8 Fix rtl compilation for AIX OS
git-svn-id: trunk@32586 -
2015-12-05 00:15:17 +00:00
Jeppe Johansen
4b1eb0e4f3 Applied patch from Michael Ring fixing the startup code for Freescale microcontrollers.
git-svn-id: trunk@32568 -
2015-12-02 18:44:20 +00:00
yury
6f8e9ad23e * Fixed cwstring for Android after latest widestring manager changes.
git-svn-id: trunk@32538 -
2015-11-26 18:14:26 +00:00
Jonas Maebe
f65cb5d933 * equivalent of r32525/32526 for the assembler version of the startup code
git-svn-id: trunk@32528 -
2015-11-25 00:10:26 +00:00
Jonas Maebe
2249d95ddb * call external routines via their TOC entry instead of directly
(mantis #29004)

git-svn-id: trunk@32527 -
2015-11-25 00:10:23 +00:00
Jonas Maebe
740f8532df * fixed saving the stack pointer in r32525
git-svn-id: trunk@32526 -
2015-11-25 00:10:19 +00:00
Jonas Maebe
816c66107e * fixed dynamic startup of programs that don't link against libc (they get
argc/argv/envp in r3/r4/r5)

git-svn-id: trunk@32525 -
2015-11-24 23:34:30 +00:00
marco
ffff774ff2 * fixes by lks of base.inc procptr types (one long->plong, three dword_ptr to ulong_ptr) fixes mantis #29023
git-svn-id: trunk@32456 -
2015-11-22 11:04:37 +00:00
Jeppe Johansen
5ec4d38231 Add support for ram-less AVR chips and simultanously optimize flash/ram size the initfinal calling sequence.
git-svn-id: trunk@32448 -
2015-11-22 00:37:10 +00:00
Jeppe Johansen
49f8d574db Save some space on ATTiny28 since it doesn't have any ram.
git-svn-id: trunk@32445 -
2015-11-21 19:33:42 +00:00
nickysn
0f6b5161e6 * the 'count' parameter of Move and FillChar on i8086 made 16-bit unsigned,
instead of signed (BP7 compatibility)

git-svn-id: trunk@32443 -
2015-11-21 17:55:47 +00:00
florian
c9204f6c5e + added explicit rules for the iso7186 unit for the bsd targets
* fixed FreeBSD Makefile to work with make 3.82

git-svn-id: trunk@32433 -
2015-11-21 14:43:54 +00:00
Jonas Maebe
f22c7cc3fc - removed "packed" and dummy field (that was required because of
the "packed" keyword) from the TResourceStringRecord record

git-svn-id: trunk@32393 -
2015-11-21 12:36:03 +00:00
Jeppe Johansen
9aa3c23b18 Added a bunch of new and fixed embedded controller units. From Michael Ring.
git-svn-id: trunk@32386 -
2015-11-21 10:30:49 +00:00
marco
581f1188a5 * deprecated dt routines in unixutils. Julian routines already were
duplicated to the implementations of dos & sysutils.
   localtoepoch and vv not yet.

git-svn-id: trunk@32378 -
2015-11-20 15:06:29 +00:00
michael
b651a8925e * Observe TZ and TZDir when determining timezone
git-svn-id: trunk@32369 -
2015-11-19 22:34:23 +00:00
pierre
7250cdb43e Regenerated after: Use explicit rules for all units, needed for GNU make 3.82
git-svn-id: trunk@32366 -
2015-11-19 17:27:00 +00:00
pierre
9c50d25ccc Use explicit rules for all units, needed for GNU make 3.82
git-svn-id: trunk@32365 -
2015-11-19 17:26:26 +00:00
pierre
25ddd745b7 Regenerated after: Fix cross-compilation from win32 using GNU make 3.82
git-svn-id: trunk@32364 -
2015-11-19 15:57:20 +00:00
pierre
5c53adccb3 Fix cross-compilation from win32 using GNU make 3.82
git-svn-id: trunk@32363 -
2015-11-19 15:57:00 +00:00
marco
c379362529 * wince has its own struct. Fix it in same way as win/wininc/struct.inc
git-svn-id: trunk@32362 -
2015-11-19 14:12:10 +00:00
marco
f383a39cda * add tag types for size and point, but deprecated, since redundant.
git-svn-id: trunk@32361 -
2015-11-19 11:53:05 +00:00
pierre
55b32f741d Add explicit dependency of extpas unit on dos unit for freebsd/netbsd/openbsd and dragonfly
git-svn-id: trunk@32356 -
2015-11-18 10:05:11 +00:00
nickysn
05a3a91d19 * fixed msdos cross compiler compilation with "make -j2"
git-svn-id: trunk@32354 -
2015-11-17 19:30:57 +00:00
marco
08f9400070 * adding puint64 mantis #29020
git-svn-id: trunk@32351 -
2015-11-16 20:39:38 +00:00
michael
2809e98bf9 * Fix bug #0028994 (hopefully completely)
git-svn-id: trunk@32345 -
2015-11-16 14:22:59 +00:00
marco
be6c2e6c94 * modeswitches for win64 + wince.
git-svn-id: trunk@32344 -
2015-11-16 13:51:37 +00:00
florian
7f13f845ac * fix Makefile after r32336
git-svn-id: trunk@32339 -
2015-11-15 20:01:45 +00:00
Jonas Maebe
4d53455379 * the "types" unit depends on "math" since r32333 -> updated Makefiles
git-svn-id: trunk@32337 -
2015-11-15 19:38:49 +00:00
marco
1407995a37 * part of advanced record patch
git-svn-id: trunk@32335 -
2015-11-15 18:48:26 +00:00
marco
700a22f420 * revert accidentally committed part of executeprocess patch
git-svn-id: trunk@32334 -
2015-11-15 18:47:42 +00:00
marco
92960ff3ac * initial advanced records support for TSize..TRect and -F.
git-svn-id: trunk@32333 -
2015-11-15 18:34:19 +00:00
michael
7d2c723a54 * Re-instated initialization of memory when adding item
git-svn-id: trunk@32332 -
2015-11-15 18:24:12 +00:00
florian
70b8789262 o basic extended pascal support:
+ automatically loaded helper unit
  * Makefiles adapted
  * mode switch
  * mode switches reorganized
+ TimeStamp support

git-svn-id: trunk@32330 -
2015-11-15 15:13:36 +00:00
michael
9447b975f2 * Fix bug #28987, fpfd_clr, and fpfdfillset using cardinal instead of correctly sized culong
git-svn-id: trunk@32329 -
2015-11-15 12:14:14 +00:00
michael
b7e52c632f Hopefully fix compilation (bug ID 28994)
git-svn-id: trunk@32328 -
2015-11-15 11:54:15 +00:00
michael
d00d64021b * Clear memory correctly when setting capacity (bug id 28928)
git-svn-id: trunk@32327 -
2015-11-15 11:15:25 +00:00
michael
e6b86d9b5b * Made string in stringstream constructor optional
git-svn-id: trunk@32326 -
2015-11-15 11:05:19 +00:00
michael
aa7058e82d * Patch from Ondrej Pokorny to fix broken compilation after 32275
git-svn-id: trunk@32278 -
2015-11-09 07:36:01 +00:00
michael
e838317177 * Fix bug #0028980
git-svn-id: trunk@32277 -
2015-11-08 21:35:12 +00:00
Jonas Maebe
21a4a9034d * commented out all untested (and on non-Win32: unimplemened) TCompareOption
flags

git-svn-id: trunk@32275 -
2015-11-08 19:43:26 +00:00
Tomas Hajny
2c566ffcb9 * fix compilation failure after r32262
git-svn-id: trunk@32270 -
2015-11-08 00:41:00 +00:00
michael
745c1499df * Mark forgotten implementations with runerror 219
git-svn-id: trunk@32266 -
2015-11-07 12:36:32 +00:00
michael
6955106a13 * Fix TStringSplitOptions
git-svn-id: trunk@32265 -
2015-11-07 12:36:10 +00:00
michael
4a32135563 * no type helpers in version 2.6.*
git-svn-id: trunk@32263 -
2015-11-07 09:54:43 +00:00
michael
fde42ca8ef * Type helpers, compatible to Delphi XE 8
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
marco
d95b95e648 * fix for #28940 also add PSizeUint
git-svn-id: trunk@32257 -
2015-11-06 15:54:54 +00:00
marco
266ebc351b * remove some deprecated functions. Most have alternatives since at least 2.4, and more often 2.2
I left getdomainname in "unix" for now, I don't know the exact status.

git-svn-id: trunk@32255 -
2015-11-06 14:55:38 +00:00
Jonas Maebe
0c904e92ff * moved TResourceStringRecord from the objpas to the system unit so it can be
used in the compiler when emitting resourcestrings

git-svn-id: trunk@32208 -
2015-10-30 20:45:19 +00:00
Jonas Maebe
deef6953f9 * fixed compilation after r30351 (mantis #27918)
git-svn-id: trunk@32184 -
2015-10-28 21:49:29 +00:00
Jonas Maebe
f0c0b00467 * avoid threadvar memory leaks for external hooked threads if the tlskey
thread data is finalised by libpthread before the CleanupKey routine
    is called (based on patch by Derek, mantis #28806)

git-svn-id: trunk@32168 -
2015-10-27 21:52:05 +00:00
nickysn
e2ed8f2251 * fixed various procvars being casted to pointer instead of codepointer in the rtl
git-svn-id: trunk@32167 -
2015-10-27 17:25:27 +00:00
Jonas Maebe
80902035e0 * moved excepth.inc include from the system unit implementation to interface
so that we can still find the type definitions in it once we don't store
    the entire implementation symtable to the ppu anymore

git-svn-id: trunk@32151 -
2015-10-25 19:21:54 +00:00
nickysn
3d2919acae + added an i8086 asm optimized implementation of fpc_pchar_length
git-svn-id: trunk@32113 -
2015-10-21 13:21:04 +00:00