Commit Graph

39349 Commits

Author SHA1 Message Date
yury
12fe3bb65d * Removed leftover from my experiments (calling directly pascal main).
git-svn-id: branches/targetandroid@23434 -
2013-01-17 22:28:59 +00:00
yury
7da7908441 * Uses SysUtils to make executable bigger. Otherwise string pointers for FindResource can be less than $10000. They are treated as IDs in such case and the test will fail.
git-svn-id: branches/targetandroid@23433 -
2013-01-17 21:43:09 +00:00
svenbarth
83af4e93f7 rtl/m68k/m68k.inc:
* InterlockedIncrement & InterlockedDecrement: return the modified value, not the original one

git-svn-id: trunk@23432 -
2013-01-17 21:19:27 +00:00
svenbarth
f5e94a02cd rtl/m68k/m68k.inc:
* fillchar & fillword: check whether the count is 0 before filling anything

This fixes cases like "Writeln('')" which is used inside InternalExit if an unhandled exception happened.

git-svn-id: trunk@23431 -
2013-01-17 21:17:13 +00:00
Jonas Maebe
583eb3f9a4 * re-enabled loadvmtaddrnode for records on JVM targets, fixes
tests/test/jvm/tpvar.pp after r23417

git-svn-id: trunk@23430 -
2013-01-17 19:45:09 +00:00
yury
862b608eb8 * Thread safety.
git-svn-id: branches/targetandroid@23429 -
2013-01-17 16:49:23 +00:00
paul
65cbb4e9ba compiler: calculate offset of record fields in taddrnode (based on patch of Jeppe Johansen, fixes bug #0019357)
git-svn-id: trunk@23428 -
2013-01-17 14:30:55 +00:00
yury
fa0b2b2c85 * Skip this test for android.
git-svn-id: branches/targetandroid@23427 -
2013-01-17 12:48:03 +00:00
yury
8936ee983c * Fixed ifdefs linux to unix.
git-svn-id: branches/targetandroid@23426 -
2013-01-17 12:21:51 +00:00
yury
d52ead284e * Enable more tests for android.
git-svn-id: branches/targetandroid@23425 -
2013-01-17 12:20:56 +00:00
yury
04902a15f9 * Fixed AnsiStrLComp() and AnsiStrLIComp().
git-svn-id: branches/targetandroid@23424 -
2013-01-17 12:02:35 +00:00
yury
f55c3a0331 * Fixed stupid copy-paste error.
git-svn-id: branches/targetandroid@23423 -
2013-01-17 11:49:55 +00:00
yury
23b95a4d70 * Regenerated all makefiles.
git-svn-id: branches/targetandroid@23422 -
2013-01-17 11:36:12 +00:00
paul
3a3c10a474 compiler: don't allow constants, methods, class members and properties for local or anonymous records (fixes bug #0023000)
git-svn-id: trunk@23421 -
2013-01-17 09:05:59 +00:00
marco
146011d523 * two constants added.
git-svn-id: trunk@23420 -
2013-01-17 08:46:39 +00:00
pierre
53b65300a6 + Add mips-linux gcc compiled objects
git-svn-id: trunk@23419 -
2013-01-17 08:24:07 +00:00
pierre
dcd3783c6e + mispel-linux gcc compiled objects added
git-svn-id: trunk@23418 -
2013-01-17 08:21:24 +00:00
paul
4d79a44e4c compiler: don't create loadvmtaddrnode for record references, they have no VMT (fixes bug #23130)
git-svn-id: trunk@23417 -
2013-01-17 07:30:00 +00:00
paul
890e91ab8c tests: fix test after allowing record helpers to have constructors
git-svn-id: trunk@23416 -
2013-01-17 01:45:05 +00:00
florian
cad1309935 * don't write directly to the function result destination if we are inlining and if the destination is too complex to evaluate (threadvar etc.)
git-svn-id: trunk@23415 -
2013-01-16 20:25:49 +00:00
florian
247d6dd394 + implemented a tcasenode.printnodetree printing all cases
git-svn-id: trunk@23414 -
2013-01-16 20:24:56 +00:00
florian
abfa6c1b43 * redo LsrAnd2Lsr optimization
git-svn-id: trunk@23413 -
2013-01-16 20:24:07 +00:00
sekelsenmat
0921df3191 Fixes a spelling mistake in TFPCustomFont
git-svn-id: trunk@23411 -
2013-01-16 15:10:42 +00:00
yury
2fc220cc6c * Regenerated makefiles.
git-svn-id: branches/targetandroid@23410 -
2013-01-16 14:52:36 +00:00
yury
3cd3b50104 * Fixed conflict of native android and java android targets.
git-svn-id: branches/targetandroid@23409 -
2013-01-16 14:46:02 +00:00
masta
fe520c215b New ARM Peephole optimizer FoldShiftLdrStr
This one folds
      mov r1, r2, lsl #2
      ldr/ldrb r0, [r0, r1]
into
      ldr/ldrb r0, [r0, r2, lsl #2]

There is still some room for improvement, maybe it would be better to do this before
the register allocator runs, as we'll currently waste a register (r1 in the above example)
in many cases. That would also allow to to fold more operations, because currently if r2
gets reused between the mov and ldr we'll not be able to do the optimization.

git-svn-id: trunk@23408 -
2013-01-16 14:37:28 +00:00
paul
e9615716c1 compiler: allow constructors in helpers for records
git-svn-id: trunk@23407 -
2013-01-16 13:47:22 +00:00
yury
281768b145 * Set stackalign field.
git-svn-id: branches/targetandroid@23406 -
2013-01-16 13:33:50 +00:00
yury
d26f0552a0 * Sync with trunk r23404.
* Regenerated makefiles.

git-svn-id: branches/targetandroid@23405 -
2013-01-16 13:21:51 +00:00
yury
87df3ab325 * Enable more tests for android.
git-svn-id: branches/targetandroid@23404 -
2013-01-16 10:57:51 +00:00
michael
cce67cf5ae * Fixed case where connection is closed gracefully (Bug ID 23386)
git-svn-id: trunk@23403 -
2013-01-16 10:57:47 +00:00
yury
87f14b072f * Use collation when comparing strings.
git-svn-id: branches/targetandroid@23402 -
2013-01-16 10:50:52 +00:00
yury
2e58240861 * If there is no HOME directory, the current dir must be used.
git-svn-id: branches/targetandroid@23401 -
2013-01-16 10:41:32 +00:00
yury
8333a4d000 * Fixed expanding ~ if there is no HOME env var set.
git-svn-id: branches/targetandroid@23400 -
2013-01-16 10:40:25 +00:00
pierre
2b300ec2b4 Add breakpoint at Verbose.GenerateError procedure
git-svn-id: trunk@23399 -
2013-01-16 09:46:34 +00:00
pierre
6d8b1e03d7 Increase status.errorcount only inside GenerateError procedure, to simplify debugging
git-svn-id: trunk@23398 -
2013-01-16 09:45:57 +00:00
Almindor
235bda8746 * remove old cdecl record hack, fixes linker errors with aspell on mac os x
git-svn-id: trunk@23397 -
2013-01-16 04:44:49 +00:00
paul
38da152b11 tests: fixed test
git-svn-id: trunk@23396 -
2013-01-16 03:46:35 +00:00
paul
b2a613c17f compiler: implement record constructors + tests
git-svn-id: trunk@23395 -
2013-01-16 02:07:42 +00:00
paul
51825b6f2e compiler: change ret_in_param to accept tabstractprocdef instead of tproccalloption to allow check more options (required for record constructor implementation)
git-svn-id: trunk@23394 -
2013-01-16 01:14:23 +00:00
sergei
4c84febfae * InterlockedIncrement/Decrement must return the modified value, not the initial one. Fixes a number of interface memory leaks in MIPS test suite. The functions remain not thread-safe yet.
git-svn-id: trunk@23393 -
2013-01-15 19:17:57 +00:00
sergei
b35d04ffa8 * MIPS: methodpointers must be compatible with records; since records are never passed by address in this ABI, so must be methodpointers. Fixes webtbs/tw9141.pp.
git-svn-id: trunk@23392 -
2013-01-15 19:09:19 +00:00
yury
5254f8e572 * Make sure that the thread has been started, before destroying the event.
git-svn-id: branches/targetandroid@23391 -
2013-01-15 12:12:56 +00:00
yury
4cec8df547 * Do not use DOS code pages for Android. Now all CP string tests pass on Android.
git-svn-id: branches/targetandroid@23390 -
2013-01-15 11:55:24 +00:00
yury
a5182d6487 * Use more common code pages 1251 and 1252 instead of old DOS code pages (not available on Android). There is Euro symbol character that has different code in 1251 and 1252 code pages. Use it for tests.
git-svn-id: branches/targetandroid@23389 -
2013-01-15 11:53:50 +00:00
sergei
d2758265e3 * MIPS int->real conversion: When converting unsigned to single, load it into 64-bit FP register, otherwise further subtracting a 64-bit offset leads to invalid result. Fixes tw17714.pp.
* The addend is endian-dependent, fixes tcnvint4.pp on big-endian targets.

git-svn-id: trunk@23388 -
2013-01-15 10:49:37 +00:00
sergei
b5eecab582 * Procvars (methodpointers) must be treated as records, too. Fixes tw12318.pp and tw14155.pp after r23377.
* Factored related code into a separate method, as it will probably need further refinement.

git-svn-id: trunk@23387 -
2013-01-15 10:39:14 +00:00
yury
09e2ec28e6 * Skip 2 tests for android, since they require local execution.
git-svn-id: branches/targetandroid@23386 -
2013-01-15 08:22:30 +00:00
yury
32551f3c6b * Fixed running library tests on android.
git-svn-id: branches/targetandroid@23385 -
2013-01-15 08:20:43 +00:00
svenbarth
c7a9e17bc5 Patch by Vasiliy Kevroletin. Fixes Mantis #23655.
compiler/node.pas, tnode.printnodeinfo:
  * write flags to file "t" instead of stdout

git-svn-id: trunk@23384 -
2013-01-15 06:04:10 +00:00