Jeppe Johansen
03880c2f74
Added some peephole optimizations, and fixed generic unconditional jump optimizations, for AVR.
...
Fixed multiplication code generation for AVR controllers without mul instructions.
Added handling of the old interrupt procedure directive such that procedures with that use RETI instead of RET.
git-svn-id: trunk@31030 -
2015-06-13 12:25:11 +00:00
Jeppe Johansen
c5b24c5ce3
Changed cast to allow more loop iterations than the native bit-ness of the architecture.
...
git-svn-id: trunk@31029 -
2015-06-13 12:20:12 +00:00
svenbarth
b0fa341006
Fix for Mantis #28271 .
...
rtl/objpas/classes/classes.inc:
+ new variable ExternalThreadsCleanup to keep track whether ExternalThreads list is currently cleared
* TExternalThread.Create: add the thread instance to the external thread list
* TExetrnalThread.Destroy: remove the thread instance from the external thread list (if not in system cleanup anyway)
* CommonCleanup: set ExternalThreadsCleanup to true so that the threads don't remove themselves from the list anymore
+ added test
git-svn-id: trunk@31028 -
2015-06-12 13:39:31 +00:00
lacak
8214e72841
fcl-db: memds: implemented basic blob support. Blobs are allocated in memory only. Saving to stream/file is not supported yet. Bug #26476
...
git-svn-id: trunk@31027 -
2015-06-12 07:28:50 +00:00
michael
1ec8a3bde9
* Small corrections to previous patch from Denis Kozlov (bug ID 13518)
...
git-svn-id: trunk@31026 -
2015-06-12 07:17:37 +00:00
michael
a3e542eba4
* Patch for incomplete backtraces on error
...
git-svn-id: trunk@31025 -
2015-06-12 07:12:53 +00:00
lacak
b641ffa0e0
fcl-db: base: declare procedure DatabaseErrorFmt with parameter Args as Const Args: array of const. Fixes memleak in 2.6 and also makes procedure signature Delphi compatible.
...
git-svn-id: trunk@31024 -
2015-06-11 11:53:44 +00:00
michael
9dcfdb24bf
* Additional fix for bug ID #28237
...
git-svn-id: trunk@31023 -
2015-06-11 06:32:04 +00:00
michael
b36386baf0
* TStreamReader (TTextReader) implementation by Sylvio Clecio (bug ID 28075)
...
git-svn-id: trunk@31022 -
2015-06-10 21:38:55 +00:00
michael
526f91b28f
* Patch from bug #28125 by Silvio Clecio
...
git-svn-id: trunk@31021 -
2015-06-10 21:29:09 +00:00
michael
518d77b119
* Fix bug ID #28158
...
git-svn-id: trunk@31020 -
2015-06-10 21:25:30 +00:00
michael
473adb5725
* Fix memory leak (bug ID 28157) by nomerelogic
...
git-svn-id: trunk@31019 -
2015-06-10 21:22:33 +00:00
michael
b7d12cf4d3
* Fix bug #28272
...
git-svn-id: trunk@31018 -
2015-06-10 21:19:54 +00:00
michael
aa01153b77
* Fixed bug #28237
...
git-svn-id: trunk@31017 -
2015-06-10 21:01:13 +00:00
michael
2dbdc64910
* Fix bug #28222
...
git-svn-id: trunk@31016 -
2015-06-10 20:59:04 +00:00
michael
74712f793e
* Fixed bug #28270
...
git-svn-id: trunk@31015 -
2015-06-10 20:47:22 +00:00
Károly Balogh
339720e06a
amunits/examples: less pastoc usage
...
git-svn-id: trunk@31014 -
2015-06-09 23:56:06 +00:00
florian
b1147ba1b7
+ OpCmp2Op optimization for AVR
...
git-svn-id: trunk@31013 -
2015-06-09 21:06:37 +00:00
marcus
86c7867c46
Amiga, AROS, MorphOS: TMUI_MinMax record types fixed (should be signed)
...
git-svn-id: trunk@31012 -
2015-06-08 20:49:45 +00:00
marcus
0a0ab13978
MorphOS: TMUI_MinMax record types fixed
...
git-svn-id: trunk@31011 -
2015-06-08 20:26:25 +00:00
Károly Balogh
0dafa78d27
ppudump: made it compile with -Sew by turning off unreachable code warning for Real80BitToStr() function
...
git-svn-id: trunk@31010 -
2015-06-07 23:59:24 +00:00
Károly Balogh
5b38e8d98e
rtl-extra/AROS: reopen bsdsocket.library in sockets unit for each thread
...
git-svn-id: trunk@31009 -
2015-06-07 19:10:56 +00:00
Károly Balogh
1a53f6a799
AROS: in agreement with Marcus Sackrow, AThreads is now enabled for AROS, and the old AROS-specific threading implementation is zapped
...
git-svn-id: trunk@31008 -
2015-06-07 18:35:50 +00:00
Károly Balogh
21329e6606
Amiga: enable using of external resources we have no internal resource support yet for Amiga Hunk executables
...
git-svn-id: trunk@31007 -
2015-06-07 18:07:06 +00:00
Károly Balogh
d9b5830aa0
amiga: enable external resources instead of internal ones for now
...
git-svn-id: trunk@31006 -
2015-06-07 18:05:19 +00:00
Károly Balogh
c5caa6d494
fpcres: enable resource compiler for Amiga and MorphOS
...
git-svn-id: trunk@31005 -
2015-06-07 17:49:54 +00:00
Károly Balogh
8a09c5f40d
MorphOS: register ELF resources info
...
git-svn-id: trunk@31004 -
2015-06-07 17:37:22 +00:00
Károly Balogh
8e3ebb87cd
use res_elf on MorphOS for resources
...
git-svn-id: trunk@31003 -
2015-06-07 16:42:32 +00:00
nickysn
318874837f
+ implemented 16-bit dos MZ exe header writer
...
git-svn-id: trunk@31002 -
2015-06-07 14:31:02 +00:00
Károly Balogh
06ac6c2773
amunits: added a HookEntry implementation to AmigaLib
...
git-svn-id: trunk@31001 -
2015-06-07 02:20:46 +00:00
Károly Balogh
c1946ace52
morphunits: imported the traditional Amiga types and some consts into exec for better Amiga & AROS compatibility
...
git-svn-id: trunk@31000 -
2015-06-07 01:26:47 +00:00
Károly Balogh
2ffb2f9c98
morphunits: forgot to actually publish the newly added HookEntry function
...
git-svn-id: trunk@30999 -
2015-06-07 01:25:00 +00:00
Károly Balogh
adb2b71c94
amunits: removed PSmallInt definition from exec. Nowadays it's defined in the System unit anyway
...
git-svn-id: trunk@30998 -
2015-06-07 01:23:08 +00:00
Károly Balogh
df146a5767
morphunits/amigalib: implemented HookEntry function
...
git-svn-id: trunk@30997 -
2015-06-06 23:41:30 +00:00
Károly Balogh
222d64cdab
morphunits/exec: Pascal/assembler equivalents of REG_XX macros of the C SDK, which helps accessing virtual 68k registers
...
git-svn-id: trunk@30996 -
2015-06-06 23:39:31 +00:00
Károly Balogh
bea2a50cc5
morphunits: have pointers in the hook structure instead of dwords. this matches classic Amiga, and serves its purpose better
...
git-svn-id: trunk@30995 -
2015-06-06 23:37:57 +00:00
Károly Balogh
a8f875e660
rtl-extra/amiga: fixed SocketBase to be a threadvar, also added Obtain/Release/ReleaseCopyOfSocket() functions, which are required to Amiga to pass socket descriptors among threads (processes)
...
git-svn-id: trunk@30994 -
2015-06-06 21:17:31 +00:00
Károly Balogh
88afa7c1e3
rtl-extra: made MorphOS to use the Amiga sockets implementation because it works, so deleted the MorphOS one. adapted Amiga sockets unit to open/close bsdsocket.library per thread
...
git-svn-id: trunk@30993 -
2015-06-06 20:30:58 +00:00
Károly Balogh
57f8922448
amicommon: make AThreads call the thread init/exit chain
...
git-svn-id: trunk@30992 -
2015-06-06 19:52:13 +00:00
Károly Balogh
5eea4b2846
amicommon: support for init/exit procedures for threads. will be used by Sockets unit for example, because bsdsocket.library needs to be reopened for each thread
...
git-svn-id: trunk@30991 -
2015-06-06 19:51:12 +00:00
Károly Balogh
5955e67c83
MorphOS: enabled sockets unit, and a bunch of network-related packages which depends on it
...
* this brings MorphOS to the same level of network package support as classic Amiga and AROS
git-svn-id: trunk@30990 -
2015-06-06 01:45:57 +00:00
Károly Balogh
96228327f8
morphunits/iffparse: hint Make_ID string parameter as a const
...
git-svn-id: trunk@30989 -
2015-06-06 01:41:57 +00:00
Károly Balogh
5d0dd23ddd
amunits: cast TAG_USER as LongInt. this avoids all constants based on TAG_USER being 64bit, and causing constant range check warnings
...
git-svn-id: trunk@30988 -
2015-06-06 00:32:33 +00:00
marco
b9aeeae771
* Patch by WP, mantis #0028249 mostly memory leaks
...
git-svn-id: trunk@30987 -
2015-06-05 20:26:49 +00:00
Károly Balogh
f32c9d165d
amunits: Utility: do not use PasToC unit
...
git-svn-id: trunk@30986 -
2015-06-05 19:12:27 +00:00
Károly Balogh
539b031834
amunits: Rexx: do not use PasToC unit. Removed some broken-by-design overlay functions, which change API behavior or simply doesn't make sense
...
git-svn-id: trunk@30985 -
2015-06-05 19:02:22 +00:00
Károly Balogh
35b01bc3a4
amunits: Intuition: reworked overlay functions and removed pas2c dependency
...
- also removed three SetWindowTitles() wrappers which can't be fixed properly and encourage bad programming
- hinted some short macro-replacement functions as inline
git-svn-id: trunk@30984 -
2015-06-05 14:43:28 +00:00
Károly Balogh
1b37964d86
amunits: amigalib: reworked printf() functions not use the deprecated pas2c() function
...
git-svn-id: trunk@30983 -
2015-06-05 14:40:31 +00:00
Károly Balogh
5af1d635c6
munits: Exec overlay function cleanup
...
- don't use the already deprecated and broken-by-design PasToC unit
- removed an of overlay functions which was conceptually broken and dangerous. If anything ever used it, that code must be fixed.
- marked some simple macros as inline
git-svn-id: trunk@30981 -
2015-06-05 03:19:41 +00:00
Károly Balogh
dfe781485c
amunits: AmigaDOS overlay function cleanup
...
- don't use the already deprecated and broken-by-design PasToC unit
- removed a bunch of overlay functions which were conceptually broken and dangerous. If anything ever used them, that code must be fixed.
- fixed SetArgStr return value to be PChar instead of a LongBool
git-svn-id: trunk@30980 -
2015-06-05 03:03:47 +00:00