Commit Graph

12777 Commits

Author SHA1 Message Date
florian
b421ed0db1 * fixed TranslateMxcsr
+ correctly handle sse exceptions on i386, resolves #32671
+ test

git-svn-id: trunk@38268 -
2018-02-17 15:40:49 +00:00
marco
14b14f3bda * fixes sysctl also with 3.0.4 as starting compiler.
M    rtl/bsd/sysctl.pp
M    compiler/systems.pas

git-svn-id: trunk@38250 -
2018-02-16 17:58:20 +00:00
svenbarth
c87cee09fd * use the type information *parameter* not the unitialized parameter
git-svn-id: trunk@38234 -
2018-02-13 19:26:21 +00:00
Károly Balogh
c1f368f8d9 rtl: removed the long obsolete README section mentioning FPC 1.0
git-svn-id: trunk@38220 -
2018-02-12 10:58:54 +00:00
florian
6726150147 + embedded uses also FPC_STDOUT_TRUE_ALIAS to save memory
git-svn-id: trunk@38212 -
2018-02-11 19:06:46 +00:00
florian
c63c3e99c7 * load environment on msdos if parameters are loaded, so paramstr(0) is loaded as well
git-svn-id: trunk@38205 -
2018-02-11 17:49:17 +00:00
florian
22df9cde3e * halt and runerror never return
git-svn-id: trunk@38202 -
2018-02-11 10:21:16 +00:00
Károly Balogh
3d16d38f10 atari: enable FPC_STDOUT_TRUE_ALIAS and groom some of the other defines
git-svn-id: trunk@38198 -
2018-02-10 23:01:54 +00:00
Károly Balogh
444d032607 msdos: enable FPC_STDOUT_TRUE_ALIAS by default
git-svn-id: trunk@38197 -
2018-02-10 22:46:48 +00:00
Károly Balogh
07513150e0 * make StdOut/StdErr optionally a true alias of Output/ErrOutput, so they share the same underlying TextRec. this reduces data segment usage on small systems by more than 1K.
git-svn-id: trunk@38196 -
2018-02-10 22:45:51 +00:00
florian
961f7fd25b * msdos target uses already non 8.3 file names, so it makes no sense to get in trouble by using rtlconst instead of rtlconsts
git-svn-id: trunk@38194 -
2018-02-10 22:20:02 +00:00
florian
37c987c3ea * dependencies fixed
git-svn-id: trunk@38193 -
2018-02-10 22:20:00 +00:00
marco
19b47e54bb * win32/64 stdio handles don't have fixed numbers, remove very old check
on handle <=4. Mantis #27221, by Anton Rzheshevski

git-svn-id: trunk@38189 -
2018-02-10 13:53:20 +00:00
svenbarth
640480272f * adjust TThread.Synchronize so that it also works correctly if the passed in thread instance is not the instance of the current thread
+ added test

git-svn-id: trunk@38124 -
2018-02-05 21:50:00 +00:00
svenbarth
2d52536460 * only check for the method if one is given at all (otherwise everything would be skipped)
git-svn-id: trunk@38115 -
2018-02-04 20:20:32 +00:00
michael
94b6fe6ad3 * added O_CLOEXEC
git-svn-id: trunk@38100 -
2018-02-02 10:33:13 +00:00
florian
7d1d91e9cc * compile math (and sysutils as a a dependency) unit on m68k-embedded, resolves #33068
* some more features having only minimal impact on memory requiremets and needed for math/sysutils enabled on m68k-embedded

git-svn-id: trunk@38092 -
2018-01-31 20:57:07 +00:00
svenbarth
9240e0c2e6 * fix 32-bit * 32-bit => 64-bit for Coldfire
git-svn-id: trunk@38060 -
2018-01-27 14:26:18 +00:00
svenbarth
8522474457 * correctly allocate the space for the 5 registers that are stored
git-svn-id: trunk@38054 -
2018-01-26 21:48:07 +00:00
svenbarth
ea193bc993 * enable explicit Pointer overloads of Interlocked* functions for M68k as that has a calling convention where the passing of Pointer values differs from ordinal values (address vs. int registers). Fixes e.g. usage of the Classes unit
git-svn-id: trunk@38053 -
2018-01-26 21:37:58 +00:00
svenbarth
e09ec0e36b + add ability to have explicitely implemented Pointer overloads of the Interlocked* routines instead of forwarding them to the ones with suitable size.
git-svn-id: trunk@38052 -
2018-01-26 21:36:35 +00:00
svenbarth
bd57af5b19 * as Coldfire does not support ADD.W save the (original) lower word and restore it after D0 is swapped back (I hope the algorithm still works then O.o)
git-svn-id: trunk@38044 -
2018-01-25 20:02:16 +00:00
svenbarth
b7cdec3a2a * Coldfire does not support EXG, so do it the old fashioned way (but before restoring the stored registers)
git-svn-id: trunk@38043 -
2018-01-25 19:59:50 +00:00
svenbarth
9822374680 * Coldfire does not support MOVEM together with pre-decrement or post-increment, so abuse TST for that which is only a single instruction word
git-svn-id: trunk@38042 -
2018-01-25 19:58:59 +00:00
svenbarth
00141749d5 * Coldfire does not support sub.w, so use sub.l instead for that CPU
git-svn-id: trunk@38041 -
2018-01-25 19:56:28 +00:00
michael
56fae4697a * Accidentally removed keyword virtual from loadfromfile
git-svn-id: trunk@37966 -
2018-01-14 11:52:13 +00:00
michael
cbc50c5fe6 * Restore signature of loadfromstream/loadfromfile, make default delphi compatible
git-svn-id: trunk@37965 -
2018-01-14 10:11:56 +00:00
michael
5c1df42fa4 * Fix bug #32871
git-svn-id: trunk@37962 -
2018-01-13 18:21:44 +00:00
michael
f6a08a2c74 * Patch from Ondrej Pokorny to allow correct nodefault/stored for strings
git-svn-id: trunk@37954 -
2018-01-13 10:22:16 +00:00
marco
af85960d62 * East Asian locales era patch from Mantis #33003
git-svn-id: trunk@37944 -
2018-01-11 10:29:32 +00:00
maciej-izak
8aaa3c0fd5 + added additional OpaquePointer type for the system unit (mantis #32977).
git-svn-id: trunk@37942 -
2018-01-09 21:45:03 +00:00
maciej-izak
f719f81c06 + added new types for the system unit: opaque data type (TOpaqueData) and related opaque pointer (POpaqueData) (mantis #32977)
git-svn-id: trunk@37940 -
2018-01-09 21:18:26 +00:00
Károly Balogh
7c3702d3b0 palmos: make it easy to disable certain features, also disable some which are not needed now. hello, world! is about 6K with these settings, about 5K smaller than otherwise
git-svn-id: trunk@37937 -
2018-01-09 15:17:10 +00:00
Károly Balogh
d03e0d3bfb palmos: bail out earlier when we're not in NormalLaunch mode, should fix Fatal Exception crash when installing the app on a real device using HotSync
git-svn-id: trunk@37931 -
2018-01-07 16:17:00 +00:00
pierre
bdd3b4e695 * Move rtl.cfg content to system.cfg
+ New rtl.cfg containg non-feature options of former file (i8086 only)
  * Use system.cfg for system unit compilation
  + add @rtl.cfg option for i8086 CPU

git-svn-id: trunk@37920 -
2018-01-06 12:27:28 +00:00
florian
273045c295 * use the first element of the filrec._private array to track eof for typed files in iso mode (this will not hurt as iso mode does not specify the _private field), resolves #32938
git-svn-id: trunk@37915 -
2018-01-05 22:10:39 +00:00
pierre
2130c43685 Add @rtl.cfg to FPC_SYSTEM_OPT to cope with new restriction for -Sf option
git-svn-id: trunk@37907 -
2018-01-04 16:35:55 +00:00
pierre
3e92219f21 Add RESOURCES to the list of features iin rtl.cfg
git-svn-id: trunk@37906 -
2018-01-04 16:35:12 +00:00
Károly Balogh
a371b39ee9 palmos: updated the RTL readme
git-svn-id: trunk@37902 -
2018-01-04 09:02:19 +00:00
Károly Balogh
d2f051be8f palmos: include the new startup code in the build
git-svn-id: trunk@37901 -
2018-01-04 08:44:56 +00:00
Károly Balogh
b8474bab0d palmos: fixed startup code to properly relocate the data segment when requested by the OS
git-svn-id: trunk@37893 -
2018-01-04 07:34:00 +00:00
pierre
595938637e Add explicit FPC_SYSTEM_OPT variable that is only used for compilation of system units, thus allowing to explicitly pass -Sf option
git-svn-id: trunk@37890 -
2018-01-02 16:50:58 +00:00
marco
d385546d71 * CB_GETCOMBOBOXINFO from patch mantis #32890
git-svn-id: trunk@37884 -
2017-12-30 22:06:49 +00:00
florian
d315d3cc96 * after r34939, it was not taken care of the extra storage needed for the size field, fixed, should fix #32875
git-svn-id: trunk@37883 -
2017-12-30 16:38:13 +00:00
marco
acf6fde3cf * fix widestringreplace, shared routine missed some *sizeof(srchar) here and there.
patch from Cyrax, Mantis #32649

git-svn-id: trunk@37882 -
2017-12-30 15:51:53 +00:00
Károly Balogh
888e59d34d amiga: added some code to compile the Amiga RTL with tinyheap. will be useful for Kickstart 1.3 and better very-low-end systems support. disabled by default. also added ifdefs around DynLibs support
git-svn-id: trunk@37879 -
2017-12-30 06:57:15 +00:00
Károly Balogh
8dd14b92a2 objcbase: as discussed on the mailing list - still allow a dummy version to be built. this allows darwin to be built without objectivec feature
git-svn-id: trunk@37875 -
2017-12-30 05:01:29 +00:00
marco
b20dd5cdbb * fpslist.deleterange mantis #32807
git-svn-id: trunk@37871 -
2017-12-29 18:05:13 +00:00
Jeppe Johansen
4a169e6b1a Changed subarch of at90pwm161
git-svn-id: trunk@37858 -
2017-12-29 11:30:35 +00:00
michael
e160d4c530 * Fix bug ID #32889, handle ReadInterfaceRaw in TReader
git-svn-id: trunk@37856 -
2017-12-29 10:54:14 +00:00