Commit Graph

56632 Commits

Author SHA1 Message Date
nickysn
deefeb1ca0 + calculate the table offset of each string in the NewExe imported name table
git-svn-id: trunk@42613 -
2019-08-09 13:49:36 +00:00
nickysn
d24cfcb31c * small optimization in TNewExeOutput.FillImportedNameTable - only add the
library name once, instead of trying to add it (which causes a look up) for
  every imported symbol

git-svn-id: trunk@42612 -
2019-08-09 13:35:53 +00:00
nickysn
d5a18f03a8 + fill and write the NewExe imported name table
git-svn-id: trunk@42611 -
2019-08-09 13:32:57 +00:00
marco
fdef3241f9 * some make 3.82 fixes from mantis #35927
git-svn-id: trunk@42610 -
2019-08-09 13:02:27 +00:00
pierre
651922c2f8 Correct size of asizeint, which is still 4-byte long even when CpuAddrBitSize is 16 as for avr and i8086
git-svn-id: trunk@42609 -
2019-08-09 09:29:50 +00:00
michael
39a8d06e8a * Fix spaceLeft, missing return statement
git-svn-id: trunk@42608 -
2019-08-09 07:42:34 +00:00
nickysn
1736950d58 + added property that determines the resident name table size in bytes and use
it to fill the offset to the start of the module reference table in NewExe
  files

git-svn-id: trunk@42607 -
2019-08-08 21:37:14 +00:00
nickysn
251a93456e + added constructor to TNewExeResidentNameTableEntry that allows you to
initialize this entry's ordinal number

git-svn-id: trunk@42606 -
2019-08-08 21:28:58 +00:00
nickysn
35a4f96100 + create the resident name table in the NewExe file writer
git-svn-id: trunk@42605 -
2019-08-08 15:28:11 +00:00
nickysn
3b08c6b0ea + write the resource table (empty for now) to NewExe files
git-svn-id: trunk@42604 -
2019-08-08 14:38:25 +00:00
pierre
008c1436d8 Fix bug report 35937 by simple assembly code change and add test
git-svn-id: trunk@42603 -
2019-08-08 14:10:21 +00:00
Mattias Gaertner
c4cd0ad776 fcl-passrc: specialize for-loop
git-svn-id: trunk@42602 -
2019-08-08 12:41:33 +00:00
pierre
70b2904c48 * Issue file change before line and column change in token writes to allow for better display in ppudump utility
git-svn-id: trunk@42601 -
2019-08-08 06:26:40 +00:00
pierre
6d2a7a1b27 Fix change_endian code to read double and single float data
git-svn-id: trunk@42600 -
2019-08-08 06:24:47 +00:00
Mattias Gaertner
c31774eac4 fcl-passrc: resolver: nested specialize
git-svn-id: trunk@42599 -
2019-08-07 15:13:04 +00:00
Mattias Gaertner
a39e4dc38b fcl-passrc: resolver: fixed type TArr = array of TArr
git-svn-id: trunk@42598 -
2019-08-07 09:06:12 +00:00
Károly Balogh
90bab63e51 m68k/vasm: remove bits of Linux support. this combination has never really been tested or supported, and got broken recently. m68k-elf-linux has good enough GNU binutils anyway
git-svn-id: trunk@42597 -
2019-08-07 09:04:57 +00:00
pierre
843a379cc2 Fix gettokenbufshortint, as shortint is one byte long, not two
git-svn-id: trunk@42596 -
2019-08-06 21:32:51 +00:00
nickysn
0c4d02ff9c + detect heap sections and fill the local heap size in the NewExe header
git-svn-id: trunk@42595 -
2019-08-06 13:08:27 +00:00
marco
cffc8317fa * mantis #35013 library parts. Allow embedded objects.
git-svn-id: trunk@42594 -
2019-08-06 12:00:25 +00:00
Mattias Gaertner
481126fc80 fcl-passrc: local var, implassign
git-svn-id: trunk@42592 -
2019-08-06 08:07:35 +00:00
pierre
6c87348b86 Add mode and optimizer switches names, and check that no unknown switch is set
git-svn-id: trunk@42591 -
2019-08-06 06:32:52 +00:00
nickysn
321e4d5837 * convert the internal name from IMPDEF records to upper case if the
CaseSensitiveSymbols option is off

git-svn-id: trunk@42590 -
2019-08-06 00:44:00 +00:00
nickysn
295daf4a7f + recognize stack segments and fill the total stack size in the NewExe header
git-svn-id: trunk@42589 -
2019-08-06 00:40:43 +00:00
nickysn
a86623b97a + initialize the flags for the code and data segments in the NewExe header
git-svn-id: trunk@42588 -
2019-08-06 00:23:31 +00:00
nickysn
7132973847 + added the missing NewExe segment attributes as properties to the
TNewExeSection class and create the NewExe segment table into the .exe file.
  Not all of the properties are initialized yet, though.

git-svn-id: trunk@42587 -
2019-08-05 17:08:18 +00:00
Mattias Gaertner
fb27e7f4c3 fcl-image: write tif: use compression number DeflateAdobe, not obsolete DeflateZLib
git-svn-id: trunk@42586 -
2019-08-05 16:54:17 +00:00
pierre
c74007b580 Revert wrong part in commit 42580: reinstate 'override FPC=' for cycle targets
git-svn-id: trunk@42585 -
2019-08-05 13:33:12 +00:00
nickysn
d7c24c05d0 + fill the segment table start offset in the NewExe header
git-svn-id: trunk@42584 -
2019-08-05 13:30:01 +00:00
pierre
0167ddf44c Reorganize token buffer output to be able to use it for generics and inlined functions
git-svn-id: trunk@42583 -
2019-08-05 09:15:12 +00:00
pierre
7b0d2febd7 Do not use -Sew (turn warnings into errors) if CYCLELEVEL is equal to 1
git-svn-id: trunk@42582 -
2019-08-05 09:02:16 +00:00
pierre
5a3883b1ab Fix internal error by using same code to set checkoverflow variable as in powerpc/nppcadd unit
git-svn-id: trunk@42581 -
2019-08-05 08:50:37 +00:00
pierre
754b1bd930 Add PPUDUMP variable to be able to specify explicit version of ppudump program, defaulting to ppudump executable in SEARCHPATH
git-svn-id: trunk@42580 -
2019-08-05 08:10:02 +00:00
pierre
d6c5a1799c Avoid range check error when compiled -Criot option
git-svn-id: trunk@42579 -
2019-08-05 06:47:51 +00:00
Mattias Gaertner
16752a8fba fcl-passrc: resolver: specialize proc implementation
git-svn-id: trunk@42578 -
2019-08-04 17:21:48 +00:00
Mattias Gaertner
5e81d57f39 pastojs: test generic empty class
git-svn-id: trunk@42577 -
2019-08-03 19:08:33 +00:00
Mattias Gaertner
be1fdc4667 fcl-passrc: pass TypeParams when creating type, and resolve forward generic class
git-svn-id: trunk@42576 -
2019-08-03 19:08:05 +00:00
Jonas Maebe
6b9f2114f1 * test from mantis #35897, already fixed
git-svn-id: trunk@42575 -
2019-08-03 13:52:46 +00:00
Jonas Maebe
46afcbb362 * an incomplete case statement is not an error in ISO Pascal (mantis #35910)
* give a compile-time error in ISO/Extended Pascal if the compiler can prove
    the case selector value is not handled, and a warning in other modes
    (mantis #35915)
   o trigger the case node simplification at the end of the case node typecheck
     pass, like for other nodes

git-svn-id: trunk@42574 -
2019-08-03 13:47:27 +00:00
Jonas Maebe
ce598c15ec * factored out the conditions under which add nodes need to perform
overflow checks
   o in particular ensure that cpu-specific overrides don't perform overflow
     checks when nf_internal is set

git-svn-id: trunk@42573 -
2019-08-03 12:19:50 +00:00
nickysn
c70f2c63cd + set the initial SS:SP in the NewExe header
git-svn-id: trunk@42572 -
2019-08-03 01:04:32 +00:00
nickysn
dbafff24fe + fill the program entry point address in the NewExe header
git-svn-id: trunk@42571 -
2019-08-03 00:59:02 +00:00
nickysn
901dde5fa5 + fill the auto data segment number in the NewExe header
git-svn-id: trunk@42570 -
2019-08-03 00:42:56 +00:00
nickysn
34b3af7e92 * reset CurrMemPos after each NewExeSection to ensure each segment starts at 0 offset
git-svn-id: trunk@42569 -
2019-08-02 23:22:59 +00:00
nickysn
868030b3fe + adapted TOmfObjSection.MemPosStr to output segment:offset for NewExe executables
git-svn-id: trunk@42568 -
2019-08-02 23:01:39 +00:00
nickysn
2c176be2fd + adapted TOmfObjSymbol.AddressStr to show correct segment:offset for NewExe files as well
git-svn-id: trunk@42567 -
2019-08-02 22:47:44 +00:00
nickysn
b739d79f9b * combine the data, bss, stack and heap into the same NewExe segment
git-svn-id: trunk@42566 -
2019-08-02 16:53:16 +00:00
nickysn
1258439767 + added an TNewExeSection.MemPosStr override that outputs a segment:offset string
git-svn-id: trunk@42565 -
2019-08-02 16:14:54 +00:00
nickysn
3ebcef32ba + introduced TExeSection.MemPosStr - a virtual method for converting the
section's memory position to string for the linker map file. This can be
  overriden e.g. for segmented exe formats.

git-svn-id: trunk@42564 -
2019-08-02 16:05:37 +00:00
nickysn
8e436e6335 + add a segment number (MemBasePos) to TNewExeSection
git-svn-id: trunk@42563 -
2019-08-02 14:47:19 +00:00