Commit Graph

37248 Commits

Author SHA1 Message Date
svenbarth
3d6e08ed59 + Add support for the JVM architecture to the compiler driver "fpc"
git-svn-id: trunk@21204 -
2012-05-03 06:26:30 +00:00
svenbarth
7ebbebc877 - removed a duplicated include statement
git-svn-id: trunk@21203 -
2012-05-03 06:24:52 +00:00
paul
a70eb8ae0e test: fix typo
git-svn-id: trunk@21202 -
2012-05-03 06:10:17 +00:00
paul
9127442c97 tests: fix test for systems with WideString=UnicodeString
git-svn-id: trunk@21201 -
2012-05-03 03:32:36 +00:00
marco
87e010462b * Mantis #21922, improve testsuite for bufdatasets.
Joint patch of Lacak2, Ludo Brands & Reinier Olislagers 

git-svn-id: trunk@21200 -
2012-05-02 20:46:26 +00:00
marco
614a192d87 * Improved comments in toolsunit. Mantis #21910, patch by Reinier Olislagers
git-svn-id: trunk@21199 -
2012-05-02 20:42:39 +00:00
marco
1f4676a3f9 * fix for mantis #21919, rebuild indexes after loadrecordsfromfile, Mantis #21919 patch by Lacak2.
git-svn-id: trunk@21198 -
2012-05-02 20:15:09 +00:00
marco
7d49788693 * Patch from Lacak2 for mantis #19593, exception while saving bufdataset to file.
git-svn-id: trunk@21197 -
2012-05-02 20:09:10 +00:00
paul
5217b7011b tests: add test to check overload precedence for ShortString type passed to other string types
git-svn-id: trunk@21192 -
2012-05-02 08:45:54 +00:00
paul
548cdece84 tests: add test to check overload precedence for AnsiString type passed to other string types
git-svn-id: trunk@21191 -
2012-05-02 02:52:10 +00:00
paul
50ddd16619 tests: add string constant overload precedence tests when default string type is UnicodeString
git-svn-id: trunk@21190 -
2012-05-02 02:34:12 +00:00
michael
881e1a4935 * Remove linking of .res file (patch from Luiz Americo, bug #21908)
git-svn-id: trunk@21160 -
2012-05-01 11:28:04 +00:00
michael
4cb04074d6 * Remove empty destructors (patch from Luiz Americo, bug #21907)
git-svn-id: trunk@21159 -
2012-05-01 11:23:57 +00:00
michael
27840f247c * Applied patch from Luiz Americo not to send events when setting datasource to same value again (bug #21906)
git-svn-id: trunk@21158 -
2012-05-01 11:21:03 +00:00
Jonas Maebe
5e6aaccca9 * removed spaces from empty line at start to prevent (unpatched) dbdigest
from crashing

git-svn-id: trunk@21150 -
2012-04-30 20:13:09 +00:00
michael
1515e397bb * Fix memory leak (patch by Marcos Douglas, ID #21900)
git-svn-id: trunk@21149 -
2012-04-30 20:06:41 +00:00
marco
71a4778ba6 * additions by Reinier, mantis #21895
git-svn-id: trunk@21148 -
2012-04-30 14:58:39 +00:00
Jonas Maebe
9c0ec8ee8c * part of r21120, forgot to commit
git-svn-id: trunk@21128 -
2012-04-29 22:27:05 +00:00
Jonas Maebe
dd03bc3e66 * i386 version of fix from r21113
git-svn-id: trunk@21127 -
2012-04-29 22:27:00 +00:00
Jonas Maebe
8a7123eed8 * override a_call_reg() with an internalerror rather than a_call_ref(),
since it's the former that is abstract in the base class

git-svn-id: trunk@21126 -
2012-04-29 22:26:51 +00:00
florian
48d3eb86a6 * fixes _haltproc, Hello world works on mipsel
git-svn-id: trunk@21125 -
2012-04-29 21:34:03 +00:00
florian
366e2027fc * rename TMIPSELParaManager into TMIPSParaManager
git-svn-id: trunk@21124 -
2012-04-29 21:32:52 +00:00
florian
2c5a2857e5 * Move for MIPS is broken, commented out for now
git-svn-id: trunk@21123 -
2012-04-29 21:31:46 +00:00
florian
31f54a7810 * use separate build directory for mipsel
git-svn-id: trunk@21122 -
2012-04-29 21:30:46 +00:00
florian
25e82bb1af * fix stack frame generation on mips(el)
git-svn-id: trunk@21121 -
2012-04-29 21:29:06 +00:00
Jonas Maebe
14cfe770a4 * replaced most (if not all) remaining fields/parameters in the compiler
that deal with paths/filenames with TPathStr (= ansistring) to prevent
    cutting off long paths (no change in speed when compiling the compiler,
    1% extra memory usage)

git-svn-id: trunk@21120 -
2012-04-29 17:36:23 +00:00
Jonas Maebe
9e0bc92b88 * prevent crash in dotest in case a test file contains a line at the start
with only whitespace on it (such as webtbf/tw21873.pp)

git-svn-id: trunk@21119 -
2012-04-29 17:36:11 +00:00
florian
aadeba4d1a * started to fix stack frame generation on MIPS(EL)
git-svn-id: trunk@21118 -
2012-04-29 16:58:19 +00:00
florian
9c845e9f76 * put types unit into a shared rtl
git-svn-id: trunk@21117 -
2012-04-29 14:20:09 +00:00
florian
5966fcce74 * PIC does not require using the external assembler anymore
- removed 2.0.x-ism

git-svn-id: trunk@21116 -
2012-04-29 14:19:32 +00:00
Jonas Maebe
1345b7d107 * changed ref parameter of thlcgobj.a_call_ref() into a const parameter
git-svn-id: trunk@21115 -
2012-04-29 13:13:42 +00:00
Jonas Maebe
3abd5d3882 * changed inlinelevel (which is used to track whether or not we have to
generate line number information) from longint into cardinal, since it
    should never become < 0 (allows catching errors by enabling range
    checking)

git-svn-id: trunk@21114 -
2012-04-29 13:13:36 +00:00
Jonas Maebe
7742dc0006 * don't remove ait_markers between unconditional jumps and the next label,
to prevent removing the start/end of assembler blocks, and the start/end
    of nolineinfo blocks (solves the problem that with -O2 -al most of the
    source lines were missing from classes.s)

git-svn-id: trunk@21113 -
2012-04-29 13:13:31 +00:00
Jonas Maebe
06b17111da * also recognize scurrency as an "originally was a 64 bit value" in
try_make_mul32to64()
  * when inserting a 32x32->64 multiplication, change the typeconversions
    of the original nodes into internal type conversions, because they
    may have been currency (e.g., in case of an integer-to-currency
    conversion, which is performed via integer*currency(10000)) and
    since r21097 implicit conversions from currency to ordinal are no
    longer allowed

git-svn-id: trunk@21112 -
2012-04-29 13:13:22 +00:00
sergei
7f96fee752 + Added a comment on tcgprocinfo.generate_exceptfilter operation.
git-svn-id: trunk@21111 -
2012-04-29 10:34:29 +00:00
sergei
a85bb08a74 * Save/restore high-level code generator when processing exception filters, fixes building in Win64 with -dTEST_WIN64_SEH, Mantis #21879.
git-svn-id: trunk@21110 -
2012-04-29 07:35:19 +00:00
Jonas Maebe
6850653296 * replaced "set1<=set2" expression with "(set1*set2)=set1", because the
SPARC code generator of 2.6.0 compiles the former expression wrongly
    (which was fixed in r21095)

git-svn-id: trunk@21109 -
2012-04-28 22:38:14 +00:00
Jonas Maebe
4ac396bd74 * and now the actual test object files...
git-svn-id: trunk@21108 -
2012-04-28 22:28:26 +00:00
Jonas Maebe
39e74ba80c + AIX/ppc64 test object files
git-svn-id: trunk@21107 -
2012-04-28 22:27:52 +00:00
Jonas Maebe
562b968b16 * now that copy() expressions are only translated into calls during the
first pass, we have to manually set the varstate of its parameters during
    the typecheck pass (mantis #21878)

git-svn-id: trunk@21106 -
2012-04-28 21:33:29 +00:00
sergei
be5a5d6ae6 - Removed redundant fillchar() calls, class instances are cleared on construction.
git-svn-id: trunk@21101 -
2012-04-28 17:16:33 +00:00
sergei
c08ab0f745 * Re-raising exceptions must be allowed only in 'except' block itself, not in 'try' block of a nested try..except statement. Mantis #21873.
git-svn-id: trunk@21100 -
2012-04-28 15:59:34 +00:00
Jonas Maebe
4fced5d142 + generic implementation of thlcgobj.a_call_ref()
* override thlcg.a_call_reg() in JVM hlcgcpu with dummy that calls
    internalerror

git-svn-id: trunk@21099 -
2012-04-28 14:27:45 +00:00
Jonas Maebe
e20639732f + cghlcpu unit with thlbasecgcpu class that overrides all abstract tcg
methods that don't have to be implemented by targets using the high
    level code generator, with dummy implementations that raise an internal
    error (to remove warnings about instantiating classes with abstract
    methods)
  * let the JVM tcg descendent derive from this new thlbasecgcpu class

git-svn-id: trunk@21098 -
2012-04-28 14:27:31 +00:00
Jonas Maebe
99e70e7128 * do not allow implicit conversions from currency to orddef even if currency
is implemented via int64 (prevents e.g. calling abs(int64) for
    abs(currency) on non-x86)

git-svn-id: trunk@21097 -
2012-04-28 14:27:17 +00:00
Jonas Maebe
aa92d78c46 * fixed round(currency) after r18746 (in particular on platforms where
currency is implemented via int64)

git-svn-id: trunk@21096 -
2012-04-28 13:00:15 +00:00
Jonas Maebe
54f3db3141 * fixed "set <=/=> set"
git-svn-id: trunk@21095 -
2012-04-28 09:32:09 +00:00
paul
1a724f3e11 compiler:
- prefer UnicodeString, WideString, PWideChar, PAnsiChar, AnsiString, ShortString when passing a string constant if default string is UnicodeString,
  - change default string type to UnicodeString for MODE DelphiUnicode

git-svn-id: trunk@21094 -
2012-04-28 08:19:10 +00:00
paul
c7e057a835 compiler: use is_wide_or_unicode_string() istead of using is_widestring() or is_unicodestring()
git-svn-id: trunk@21086 -
2012-04-28 03:32:06 +00:00
paul
290295db3e compiler: remove UTF8 sequences from 2 comments + minor formatting
git-svn-id: trunk@21085 -
2012-04-28 02:46:06 +00:00