Commit Graph

53883 Commits

Author SHA1 Message Date
nickysn
002b116322 * use a case statement, instead of 'if', based on the OMF record type in
TOmfObjInput.ReadLEDataAndFixups. This is to allow (in the future) handling of
  LIDATA records and FIXUPP records without preceding LEDATA/LIDATA. No
  functional changes in this commit.

git-svn-id: trunk@39166 -
2018-06-04 13:11:55 +00:00
marco
43d7b23555 * fix for #33817, also p* marshalledstring for Delphi compat.
git-svn-id: trunk@39165 -
2018-06-04 10:58:23 +00:00
marco
438c4cbef7 * fix for #33823 dword->dword_ptr
git-svn-id: trunk@39164 -
2018-06-04 07:49:32 +00:00
florian
21d785e41b * do not unroll loops if the counter variable is accessed outside the current scope
git-svn-id: trunk@39163 -
2018-06-03 15:12:48 +00:00
florian
3b3e33d863 + correctly set var state of addr and frame in raise statements, resolves #33818
git-svn-id: trunk@39162 -
2018-06-03 09:31:19 +00:00
michael
4b45825204 * Fix bug #33795
git-svn-id: trunk@39161 -
2018-06-02 11:09:33 +00:00
michael
107999f706 * Fix issue #33755
git-svn-id: trunk@39160 -
2018-06-02 11:00:18 +00:00
Mattias Gaertner
e2ed8e170e pastojs: version 0.9.24
git-svn-id: trunk@39159 -
2018-06-02 07:16:33 +00:00
Mattias Gaertner
6d5c1642cd pastojs: fixed resolve pending scopes before pending units
git-svn-id: trunk@39158 -
2018-06-02 07:15:38 +00:00
Mattias Gaertner
13ebc81095 fcl-passrc: added TPasIdentifierScope.WriteLocalIdentifiers
git-svn-id: trunk@39157 -
2018-06-02 07:15:16 +00:00
florian
f03a396757 * target classic MacOS builds again
git-svn-id: trunk@39156 -
2018-05-31 19:31:36 +00:00
Mattias Gaertner
22cd5ab757 pastojs: pcu: fixed compact format
git-svn-id: trunk@39155 -
2018-05-31 13:43:20 +00:00
Mattias Gaertner
f696ad58ee fcl-passrc: fixed unit analyzer private method used by protected property
git-svn-id: trunk@39154 -
2018-05-31 13:42:54 +00:00
Mattias Gaertner
4c525de9fe pastojs: fixed class-of RTTI
git-svn-id: trunk@39153 -
2018-05-31 09:49:58 +00:00
Mattias Gaertner
b6ac7e4c02 fcl-passrc: comment
git-svn-id: trunk@39152 -
2018-05-31 09:49:14 +00:00
nickysn
98634899f2 + support OMF fixups, determined by thread
git-svn-id: trunk@39151 -
2018-05-30 15:49:27 +00:00
nickysn
2fb73de404 + support reading OMF files with THREAD FIXUPP subrecords; note that fixups,
determined by thread are still not yet implemented

git-svn-id: trunk@39150 -
2018-05-30 14:30:54 +00:00
nickysn
ebecfb1ce9 + added a FFixupThreads property with a TOmfThreads object to TOmfObjInput
git-svn-id: trunk@39149 -
2018-05-30 14:10:12 +00:00
nickysn
189cba817e + added method TOmfSubRecord_THREAD.ApplyTo, which applies the data in the
current thread subrecord to a TOmfThreads object

git-svn-id: trunk@39148 -
2018-05-30 13:52:34 +00:00
nickysn
26e808e155 + added classes for maintaining the OMF fixup thread state
git-svn-id: trunk@39147 -
2018-05-30 13:35:52 +00:00
michael
133e7e53f0 * Fix bug #33803
git-svn-id: trunk@39146 -
2018-05-30 04:08:39 +00:00
nickysn
6ee483279c + added qword/tbyte ptr to tasm27a.pp - these are also supported by delphi
git-svn-id: trunk@39145 -
2018-05-29 16:48:49 +00:00
nickysn
d39699da94 + added dword/qword/tbyte ptr to the tasm27.pp test (these are also supported by TP7)
git-svn-id: trunk@39144 -
2018-05-29 16:46:22 +00:00
nickysn
49b414ffee + support ugly constructs like 'DD BYTE PTR 5' in the x86 intel syntax inline
assembler; these are TP7 and Delphi compatible

git-svn-id: trunk@39143 -
2018-05-29 15:43:08 +00:00
nickysn
54a8d8de58 + added class for decoding/encoding THREAD OMF subrecords
git-svn-id: trunk@39142 -
2018-05-29 15:05:07 +00:00
pierre
b1537a7f40 Add some more debug information to temp-generation when compiled with -dEXTDEBUG
git-svn-id: trunk@39141 -
2018-05-28 22:39:21 +00:00
pierre
0673f181bb android jvm doesn't need clocale unit
git-svn-id: trunk@39140 -
2018-05-28 22:26:04 +00:00
pierre
9f38b25542 Disable SDL package also for netware and netwlibc OS targets
git-svn-id: trunk@39139 -
2018-05-28 22:20:03 +00:00
Mattias Gaertner
23b90ee315 pas2js: version 0.9.23
git-svn-id: trunk@39138 -
2018-05-28 20:26:38 +00:00
Mattias Gaertner
37ee69781e fcl-js: fixed year
git-svn-id: trunk@39137 -
2018-05-28 20:26:25 +00:00
Mattias Gaertner
51cec6ff38 pas2js: fixed unitpath with asterisk on unicode folder
git-svn-id: trunk@39136 -
2018-05-28 19:18:09 +00:00
svenbarth
8a195c44ba + add overloads of IsInfinite() for Single and Extended (compatible with Delphi)
git-svn-id: trunk@39135 -
2018-05-28 15:36:18 +00:00
svenbarth
ee2c573deb * adjust test so that it tests all three floating point types
git-svn-id: trunk@39134 -
2018-05-28 15:36:14 +00:00
nickysn
58be30a0fd + added test tasm27a.pp - similar to tasm27.pp, but for i386 and checked against Delphi
git-svn-id: trunk@39133 -
2018-05-28 15:34:46 +00:00
svenbarth
e8153df7b7 * fix compilation
git-svn-id: trunk@39132 -
2018-05-28 15:16:37 +00:00
nickysn
052da5c921 * use DW_OP_reg0..DW_OP_reg31 instead of DW_OP_regx in TDebugInfoDwarf.append_seg_reg
in case the dwarf register number is 31 or smaller

git-svn-id: trunk@39131 -
2018-05-28 14:21:53 +00:00
pierre
64dc9abbc2 Use small value of MAX_DISP also for i8086 CPU
git-svn-id: trunk@39130 -
2018-05-28 09:01:34 +00:00
pierre
48f06bef12 Add C objects linked with $L directive in %FILES to fix dosbox go32v2 tests
git-svn-id: trunk@39129 -
2018-05-28 08:11:42 +00:00
Mattias Gaertner
2a598c851f pastojs: allow {$H+}, error on {$H-}
git-svn-id: trunk@39128 -
2018-05-28 06:46:52 +00:00
Mattias Gaertner
414653eac6 fcl-passrc: nicer warning on readonly letter switch
git-svn-id: trunk@39127 -
2018-05-28 06:29:08 +00:00
Mattias Gaertner
a452e2dd5f pastojs: Unicode character constants outside of BMP
git-svn-id: trunk@39126 -
2018-05-27 22:39:10 +00:00
Mattias Gaertner
df71ab3ecf pastojs: writestr and -Sm
git-svn-id: trunk@39125 -
2018-05-27 22:01:09 +00:00
Mattias Gaertner
164587d798 fcl-passrc: writestr
git-svn-id: trunk@39124 -
2018-05-27 22:00:48 +00:00
svenbarth
f077c7d950 + add support for Unicode code point constants > $FFFF; they are converted to a surrogate pair so they are in
fact a UnicodeString constant
+ added tests

git-svn-id: trunk@39123 -
2018-05-27 14:06:19 +00:00
pierre
c64455cfd4 Do not assume that size of integer type is 4 (it's 2 for msdos)
git-svn-id: trunk@39122 -
2018-05-26 06:04:57 +00:00
pierre
a1bbd4c02d Try to avoid inserting all RTTI symbols into executables on targets not supporting smartlinked sections
git-svn-id: trunk@39121 -
2018-05-25 20:44:24 +00:00
nickysn
ad96cf758b + emit a DW_AT_address_class dwarf attribute on i8086 for procdefs, indicating
their call model (near or far)

git-svn-id: trunk@39120 -
2018-05-25 20:03:15 +00:00
svenbarth
199b5809a3 * optimize "dynarr := dynarr + [elem]" to "Insert(elem, dynarr, High(SizeInt))" and "dynarr := [elem] + dynarr" to "Insert(elem, dynarr, 0)" (we need to do this in the typecheck of taddnode as otherwise the array constructor is already converted)
+ added test
* adjusted test for Mantis #30463 as p1 triggers the optimization as well

git-svn-id: trunk@39119 -
2018-05-25 16:03:56 +00:00
svenbarth
85439a0fa0 * also check for nf_assign_done_in_right flag after typechecking the right side
git-svn-id: trunk@39118 -
2018-05-25 15:54:41 +00:00
nickysn
22e8763100 + generate script code for creating the dwarf exe sections when using the
internal linker with dwarf debug info enabled on i8086-msdos

git-svn-id: trunk@39117 -
2018-05-25 15:35:17 +00:00