Commit Graph

46225 Commits

Author SHA1 Message Date
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
Károly Balogh
48f9e1928d amunits: syscall-ified layers
git-svn-id: trunk@30979 -
2015-06-05 01:53:02 +00:00
Károly Balogh
979b91740e amunits: AMsgBox no longer depends on the deprecated PasToC, added a rawbytestring variant to MessageBox() function.
git-svn-id: trunk@30978 -
2015-06-05 01:52:35 +00:00
Károly Balogh
97d9f86d59 amunits: syscall-ified Picasso96API
git-svn-id: trunk@30977 -
2015-06-05 01:01:31 +00:00
Károly Balogh
99e85eca1c amunits: syscall-ified CyberGraphics
git-svn-id: trunk@30976 -
2015-06-04 23:35:38 +00:00
nickysn
2c1049b5d4 + read the LEDATA omf records (i.e. the actual section data)
git-svn-id: trunk@30975 -
2015-06-04 23:03:22 +00:00
Károly Balogh
d5d84be2a2 amunits: syscall-ified PTReplay. also removed dependency on the deprecated PasToC unit
git-svn-id: trunk@30974 -
2015-06-04 15:32:56 +00:00
nickysn
d0d3cef868 + implemented reading of omf extdef (external symbols) records
git-svn-id: trunk@30973 -
2015-06-03 13:07:48 +00:00
Jeppe Johansen
db6093023b Fixed initialization code for MK20D7 controllers.
Added flash configuration section to RTL and linker script.

git-svn-id: trunk@30972 -
2015-06-02 22:59:03 +00:00
nickysn
096743d74d + also read the omf segment size and set objsec.Size
git-svn-id: trunk@30971 -
2015-06-01 23:31:53 +00:00
nickysn
1cae939615 + implemented parsing of omf group definitions as well
git-svn-id: trunk@30970 -
2015-06-01 23:03:48 +00:00
nickysn
5539d6366f + implemented reading of SEGDEF omf records
git-svn-id: trunk@30969 -
2015-06-01 21:28:55 +00:00
nickysn
28f7f16fc7 + implemented reading of the LNAMES omf record
git-svn-id: trunk@30968 -
2015-06-01 14:25:51 +00:00
Károly Balogh
e5a05f2c27 amunits: syscallified AHI
git-svn-id: trunk@30967 -
2015-06-01 11:13:07 +00:00
Károly Balogh
b24db8a9c4 Amiga/MorphOS: enabled AThreads to build default for MorphOS and Amiga/68k. AROS might follow later.
git-svn-id: trunk@30966 -
2015-06-01 00:34:05 +00:00
nickysn
be57d4900d + started implementing TOmfObjInput.ReadObjData - we go through the expected
records and read them (without parsing them yet) and verify their checksums

git-svn-id: trunk@30965 -
2015-05-31 22:32:54 +00:00
florian
9216e561e2 + make use of sbi/cbi
git-svn-id: trunk@30964 -
2015-05-31 21:11:53 +00:00
florian
a3553a7320 + adds missing ct_atmega168 and ct_atmega368 symbols, thanks to mischi
git-svn-id: trunk@30960 -
2015-05-31 17:59:39 +00:00
Károly Balogh
0abb517ffb amicommon: AThreads now supports calling suspend from the thread itself
git-svn-id: trunk@30959 -
2015-05-31 17:26:45 +00:00
Károly Balogh
6e6b00377f amicommon: since system units now contain CREATE_SUSPENDED const, use that instead of a hardwired value
git-svn-id: trunk@30958 -
2015-05-31 17:25:31 +00:00
Jonas Maebe
337716d413 * fixed subscripting classes in llvm
* fixed subscripting an objectdef in llvm if the field belongs to a
    parent type

git-svn-id: trunk@30957 -
2015-05-31 16:51:07 +00:00
Jonas Maebe
6c5f1327f4 * generate the correct llvm type description for classrefdef
git-svn-id: trunk@30956 -
2015-05-31 16:51:04 +00:00
Jonas Maebe
dd3d0ae5bc * set the type of the hidden $vmt parameter to the correct classrefdef and
adjust the parameter comparison code to ignore types of $vmt parameters
    when comparing (previously they were all voidpointer and hence also
    equal)

git-svn-id: trunk@30955 -
2015-05-31 16:51:02 +00:00
Jonas Maebe
e9800ad3f9 * make the resultdef of left and right equal when comparing a procvar
with nil (for llvm)

git-svn-id: trunk@30954 -
2015-05-31 16:50:59 +00:00
Jonas Maebe
0d00c1a19d * fixed type used when subscripting implicit pointer types (don't add
another indirection)

git-svn-id: trunk@30953 -
2015-05-31 16:50:56 +00:00
Jonas Maebe
26044b604f * don't import org.freepascal.rtl.* as this also includes our System
class, which conflicts with java.lang.System in recent jdk javac's
    (and we don't access any of the RTL classes explicitly in the
    test program)

git-svn-id: trunk@30952 -
2015-05-31 16:50:53 +00:00
Jonas Maebe
a0a77f3105 * suppress (harmless) range error
git-svn-id: trunk@30951 -
2015-05-31 16:50:50 +00:00
Jonas Maebe
3f736f6114 * handle the loading of VMT entries at the node level, so it's done in a
type-safe way (for LLVM, and also internal consistency checking between
    the VMT as generated in nobj.pas and ncgvmt.pas)
   o also converted the VMT validity checking to the node level

git-svn-id: trunk@30950 -
2015-05-31 16:50:47 +00:00
Jonas Maebe
822b943d08 - removed most special handling of self (the self parameter has had the
correct type since quite a while)
   o exceptions:
    o objects/records (self is a "var" parameter there, and sometimes
      we want to load it as a pointer to an object instead
    o Objective-C class methods, where self has to be id (to have a signature
      compatible with what Objective-C compilers generate), but when loading
      it we want a classrefdef of the current class for type check and
      method resolving

git-svn-id: trunk@30949 -
2015-05-31 16:50:44 +00:00
Jonas Maebe
fa9ba26cb4 * fixed the type of self in Objective-C category methods
git-svn-id: trunk@30948 -
2015-05-31 16:50:42 +00:00
Jonas Maebe
703e31512d * moved JVM-specific code of tloadvmtaddrnode.pass_1 to njvmmem
* create separate nodes for Objective-C in tloadvmtaddrnode.pass_1
    instead of implicitly relying on the fact that the Objective-C
    ISA field is at the same offset as the VMT of Object-Pascal
    classes
   o translate the resulting loads of ISA field into direct pointer
     accesses, so that even on non-fragile ABI platforms we don't
     go via an indirection (like clang/gcc)

git-svn-id: trunk@30947 -
2015-05-31 16:50:39 +00:00
Jonas Maebe
033c28e5ac * removed unnecessary and potentially wrong typecast
git-svn-id: trunk@30946 -
2015-05-31 16:50:36 +00:00
Jonas Maebe
48ffe7b033 * don't create RTTI for internally generated recorddefs (doing so can cause
undefined references to RTTI for some of the fields, and we don't need
    it anyway because these types are not user-visible and we don't generate
    variables of these types)

git-svn-id: trunk@30945 -
2015-05-31 16:50:33 +00:00
Jonas Maebe
0eab091e1a * factored symansistr-define-conditional handling of fforcedprocname into
a property

git-svn-id: trunk@30944 -
2015-05-31 16:50:30 +00:00
florian
e9ef6347d2 * ATmega16 support by Anton Kavalenka, resolves issue #28217
git-svn-id: trunk@30943 -
2015-05-31 15:55:39 +00:00
Károly Balogh
0997122c4c AThreads: less random Hungarian swearing as accidentally left in debug code :)
git-svn-id: trunk@30942 -
2015-05-31 10:06:36 +00:00
Károly Balogh
cdea58317e classes: since AThreads supports suspended thread creation, enable resume code in AfterConstruction for Amiga-like platforms too
git-svn-id: trunk@30941 -
2015-05-31 09:37:43 +00:00
Károly Balogh
eacc41d3b3 AThreads: use ThreadInfo block pointer as ThreadID, instead of the ProcessPtr itself, because after the process exited that can be reused and leads to ID collisions in the list. Also added a small helper for Int to HexStr printing, so we could avoid a bunch of pointer casting all over the code.
git-svn-id: trunk@30940 -
2015-05-31 09:09:51 +00:00
florian
6a26268793 * correct number of interrupt vectors
git-svn-id: trunk@30939 -
2015-05-30 18:01:38 +00:00
florian
cf552b2a0b + ATmeag168/ATmeag368 support
git-svn-id: trunk@30938 -
2015-05-30 18:01:14 +00:00
florian
0cd521fc8b + ATmega48/ATmega88 support
git-svn-id: trunk@30937 -
2015-05-30 17:55:49 +00:00