Commit Graph

43877 Commits

Author SHA1 Message Date
nickysn
0f9e8f84bb * tcgcallnode.pass_generate_code: pass the correct vmt pointer type parameter to
location_force_reg when generating code for a call to a virtual class method,
  called through a class reference var. This bug went unnoticed so far, because
  on all platforms, except i8086 medium and compact memory models, the size of
  a vmt pointer is the same as the size of a procvar. Even in the i8086 medium
  and compact memory models, the previous code would generate correct code,
  because thlcg2ll.a_load_loc_reg uses loc.size (which was correct) in the case
  when fromsize=tosize (both of which were wrong, but equal), due to the check
  in hlcg2ll.pas:555. Thanks to Jonas for finding this bug!

git-svn-id: trunk@28512 -
2014-08-22 23:17:46 +00:00
Károly Balogh
2bbf991365 MorphOS: migrated the RTL to use the common Amiga code. still needs cleanup, but works as a first
git-svn-id: trunk@28511 -
2014-08-22 22:19:16 +00:00
sergei
6807812997 * Avoid promotion to 64 bits due to mixing signed and unsigned expressions.
git-svn-id: trunk@28510 -
2014-08-22 17:21:26 +00:00
Károly Balogh
26d53cfa55 amicommon: Amiga/m68k RTL now uses the common code
git-svn-id: trunk@28509 -
2014-08-21 23:49:21 +00:00
Károly Balogh
df2d474c5b Amiga: cleanup of exec functions, removed MorphOS specific 68k ABI calls which were left in here accidentally
git-svn-id: trunk@28508 -
2014-08-21 22:50:40 +00:00
Károly Balogh
65f13ac118 amicommon: a common Amiga RTL implementation based on the current AROS one, and made AROS port to use it
git-svn-id: trunk@28507 -
2014-08-21 22:33:07 +00:00
Károly Balogh
ae0cc5d9e3 AROS: unlike on other Amiga-flavors, file handles can be negative but -1 on AROS
git-svn-id: trunk@28506 -
2014-08-21 20:25:21 +00:00
sergei
f0496001fb - MIPS: removed allocation of stack/frame pointer registers in prologue, hacks like this are no longer needed since r27104.
git-svn-id: trunk@28505 -
2014-08-21 19:36:00 +00:00
Károly Balogh
dd67fa8c5c * fixed DFA warnings for i8086
git-svn-id: trunk@28504 -
2014-08-20 15:49:27 +00:00
Károly Balogh
b13ef4e3bb * fixed DFA warnings for JVM target
git-svn-id: trunk@28503 -
2014-08-20 15:48:42 +00:00
Károly Balogh
d22dc68fda * fixed DFA warnings for MIPS and AVR
git-svn-id: trunk@28502 -
2014-08-20 15:05:43 +00:00
Károly Balogh
6122db7d40 * fix warnings when compiling the compiler with DFA optimizer enabled on PowerPC
git-svn-id: trunk@28501 -
2014-08-20 14:31:36 +00:00
Károly Balogh
0cf7357ee2 * fix GetResFlags DFA optimizer warning on Sparc and AVR too
git-svn-id: trunk@28500 -
2014-08-20 13:52:28 +00:00
Károly Balogh
392da9e43f * fix warnings when compiling the compiler with DFA optimizer enabled on m68k
git-svn-id: trunk@28499 -
2014-08-20 13:49:47 +00:00
Károly Balogh
09608a1c28 * fix warnings when compiling the compiler with DFA optimizer enabled on ARM
git-svn-id: trunk@28498 -
2014-08-20 13:16:58 +00:00
Károly Balogh
07ad2a04ac * fix warnings when compiling the compiler with DFA optimizer enabled on i386
git-svn-id: trunk@28497 -
2014-08-20 12:28:44 +00:00
Károly Balogh
249a60b28b x86: fix a variable op not initialized warning. This hopefully fixes our x86 testsuite run.
git-svn-id: trunk@28496 -
2014-08-20 10:21:06 +00:00
Jonas Maebe
a4a54fa344 * removed unnecessary "as" expressions
git-svn-id: trunk@28471 -
2014-08-19 20:11:52 +00:00
marco
eb67f66e10 * add taglogfont out of compatibility, patch by Ocean, mantis #0026539
git-svn-id: trunk@28470 -
2014-08-19 17:45:23 +00:00
nickysn
d553e4572a + added checks for HeapOrg and HeapEnd to the i8086 compact and large memory
layout tests

git-svn-id: trunk@28469 -
2014-08-19 16:59:54 +00:00
marco
95bb0e0fd1 * VT_DECIMAL added, patch by Ocean, mantis #26539
git-svn-id: trunk@28468 -
2014-08-19 14:00:16 +00:00
pierre
17ad136412 Remove warning of misplaced <P> marker, as noticed by html checker
git-svn-id: trunk@28467 -
2014-08-19 11:34:05 +00:00
Károly Balogh
03a0f7b409 AROS: improved version of the previous commit, pass the stripping option to the linker instead, seems to work.
git-svn-id: trunk@28466 -
2014-08-19 11:30:02 +00:00
Károly Balogh
883e71f18e AROS: stripping of executables on i386 works now
git-svn-id: trunk@28465 -
2014-08-19 11:03:31 +00:00
Károly Balogh
167fad359e AROS: syscall-ified the exec.library functions used by the RTL
git-svn-id: trunk@28464 -
2014-08-19 00:56:34 +00:00
Károly Balogh
4ee15b84da AROS: syscall (library call) support for based on the Amiga/68k and MorphOS/PPC versions
git-svn-id: trunk@28463 -
2014-08-19 00:39:18 +00:00
Jonas Maebe
83c7dbb7a6 * fixed copy/paste error that caused all warnings to be disabled after
compiling the symdef unit while building a compiler for a non-64 bit
    code generator

git-svn-id: trunk@28462 -
2014-08-18 23:03:54 +00:00
Jonas Maebe
ee76e8dbf5 * fixed warning about always-true comparison when compiling a 16 bit target
git-svn-id: trunk@28461 -
2014-08-18 23:02:12 +00:00
Jonas Maebe
7e3abd4b38 * fixed warning about signed integer to pointer conversion
git-svn-id: trunk@28460 -
2014-08-18 23:00:53 +00:00
Jonas Maebe
4005290b54 * aint -> asizeint (immediate operand vs offset size)
git-svn-id: trunk@28459 -
2014-08-18 23:00:17 +00:00
Jonas Maebe
f55516ed32 * changed forcesize parameter of tgobj.gethltemp() from aint into asizeint,
as that one represents memory sizes while aint represents code generator
    immediate operands

git-svn-id: trunk@28458 -
2014-08-18 22:36:43 +00:00
Jonas Maebe
e7ac66a6c4 * removed nested comments
git-svn-id: trunk@28457 -
2014-08-18 22:34:35 +00:00
michael
77f62cafbe * Fix range check error
git-svn-id: trunk@28456 -
2014-08-18 22:15:40 +00:00
michael
81ab999a89 * Rollback in try..except
git-svn-id: trunk@28455 -
2014-08-18 22:15:18 +00:00
michael
c668e4d724 * Separate treatment of verbose option
git-svn-id: trunk@28454 -
2014-08-18 22:14:45 +00:00
michael
292ab82fc5 * More PG fixes
git-svn-id: trunk@28453 -
2014-08-18 22:14:09 +00:00
michael
5fa452d42f * Fixed stringreplace in EscapeSQL
git-svn-id: trunk@28452 -
2014-08-18 22:11:13 +00:00
nickysn
45ed066fed * fixed SysUtils.FindFirst/FindNext/FindClose on i8086-msdos in the compact and
large memory models by changing TSearchRec.FindHandle to a pointer (because
  THandle is 16-bit on this platform and is thus not able to hold a far pointer
  without truncating it)

git-svn-id: trunk@28451 -
2014-08-18 21:39:20 +00:00
nickysn
2565126d36 * also update TUnicodeSearchRec after r28449
git-svn-id: trunk@28450 -
2014-08-18 21:30:26 +00:00
nickysn
f5c1751be5 + added a define FINDHANDLE_IS_POINTER that indicates that on the current
platform SysUtils.TSearchRec.FileHandle is a Pointer, instead of THandle.
  I didn't introduce a TFindHandle type, because I didn't want to add yet
  another publicly visible type in the SysUtils interface.

git-svn-id: trunk@28449 -
2014-08-18 21:20:07 +00:00
michael
fee1632b42 * SQL in separate verbosity level
git-svn-id: trunk@28448 -
2014-08-18 21:06:23 +00:00
Jonas Maebe
e21d31dc99 * fixed compilation with range checking enabled
git-svn-id: trunk@28447 -
2014-08-18 20:06:27 +00:00
nickysn
70850f0ce6 + tinyheap: check and generate runtime error 204 if an attempt is made to free a
memory block that is outside the heap

git-svn-id: trunk@28446 -
2014-08-18 16:44:34 +00:00
Károly Balogh
4179e8812d AROS: initial RTL, based on the work by Marcus Sackrow. this is enough to have a working native compiler. contains duplicated code from the Amiga and MorphOS RTLs, but the three Amiga variants will be merged soon, and then it will go away.
git-svn-id: trunk@28445 -
2014-08-18 16:42:02 +00:00
Károly Balogh
8627cc3ddb AROS: added remark about collect-aros issue, fixed ld name for x86_64 target
git-svn-id: trunk@28444 -
2014-08-18 16:17:06 +00:00
Károly Balogh
2f086129e1 AROS: use collect-aros to link. also support binutils prefixes.
git-svn-id: trunk@28443 -
2014-08-18 14:55:02 +00:00
nickysn
7958466ef9 * on i8086-msdos, in the compact and large memory models, set the end of heap to
be the end of the current program's MCB, instead of 16 bytes earlier

git-svn-id: trunk@28442 -
2014-08-18 13:54:20 +00:00
Károly Balogh
6062f96ca1 AROS: enable some basic set of Packages to build with AROS
git-svn-id: trunk@28441 -
2014-08-18 13:01:46 +00:00
Károly Balogh
b5d559dce1 Amiga: fixed FileNameCasePreserving flag to true
git-svn-id: trunk@28440 -
2014-08-18 12:26:43 +00:00
Károly Balogh
74581a07af AROS: assembler fixes
git-svn-id: trunk@28439 -
2014-08-18 11:25:55 +00:00