Commit Graph

39140 Commits

Author SHA1 Message Date
michael
fc68ce2ec5 * Implemented a HEAD class method
git-svn-id: trunk@23503 -
2013-01-23 08:52:18 +00:00
michael
6d40600ab5 * Speed up HEAD
git-svn-id: trunk@23502 -
2013-01-23 08:48:16 +00:00
Tomas Hajny
3b60a0f4aa * fix testing for empty HOME directory or HOME pointing to root on Unix
git-svn-id: trunk@23500 -
2013-01-22 23:58:55 +00:00
Tomas Hajny
426050cb9f * fix for standalone '~' with HOME=/ on Unix
git-svn-id: trunk@23499 -
2013-01-22 23:56:42 +00:00
michael
7fbf05dd18 * Make statementtype public in TSQLQuery
git-svn-id: trunk@23498 -
2013-01-22 20:36:05 +00:00
sergei
6a86d0d83a * Changed two variables from Integer to Longint. Integer is 16 bits when compiling System unit, using it results in less optimal code on most targets.
git-svn-id: trunk@23494 -
2013-01-22 15:07:22 +00:00
sergei
6788fd6433 + Win64 SEH: install a top-level exception handler around thread functions. This was a missing puzzle piece of SEH support. Now behavior of unhandled exceptions in non-main threads is consistent with that of main thread, and, in general, behavior of SEH-enabled RTL is consistent with one without SEH.
git-svn-id: trunk@23482 -
2013-01-21 17:16:15 +00:00
sergei
40c510403f * Don't crash on a PLT-generating relocation to a local symbol (which should not normally appear, but nevertheless is possible).
git-svn-id: trunk@23481 -
2013-01-21 16:49:10 +00:00
marco
0560af663c * patch from Mantis #23647 Calls inherited destroy in destructor, resolves memory leak.
git-svn-id: trunk@23480 -
2013-01-21 12:53:50 +00:00
michael
a7a6301672 * Refactoring for better readability
git-svn-id: trunk@23476 -
2013-01-21 12:07:52 +00:00
michael
a472de7805 * use global resolveID (better result)
* Better link info in case of error
* Resolve property type to ancestors.

git-svn-id: trunk@23473 -
2013-01-21 10:57:54 +00:00
michael
01d8ec7a62 * Speed up read/write content file
* Configurable ResolveLink (strict or not)

git-svn-id: trunk@23472 -
2013-01-21 10:56:07 +00:00
michael
1c9ad777d3 * Add context info to unresolved links, for better error info
git-svn-id: trunk@23471 -
2013-01-21 10:55:00 +00:00
michael
5783f6d172 mechanism to resolve members in ancestors
git-svn-id: trunk@23470 -
2013-01-21 10:54:00 +00:00
michael
efd6f8851e * Set read buffer size to 4K (speeds up)
git-svn-id: trunk@23469 -
2013-01-21 10:53:22 +00:00
michael
58a6886ed3 * Allow to set the write buffer size (enlarged to 4k)
git-svn-id: trunk@23468 -
2013-01-21 10:52:38 +00:00
paul
5d74e0578a compiler: remove unused variables and unneeded assignments
git-svn-id: trunk@23467 -
2013-01-21 01:24:36 +00:00
svenbarth
78f0d6f70e Revert the changes from r23383 for m68k/n68kadd.pas. Memo to self: Don't change code if you don't really understand why it does things the way it does.
With this change and the change from r23465 we are down from ~950 to ~650 failures :D

git-svn-id: trunk@23466 -
2013-01-20 18:00:51 +00:00
svenbarth
b455ae9534 m68k/cpupara.pas, tm68kparamanager.getintparaloc:
* initialize paraloc^.size to OS_INT instead of leaving it at 0

This fixes tests/test/cg/ttryexc1.pp. The problem was that the raise node generated code which resulted in a word(!) move of the raised object's address to the stack location for fpc_raiseexception. This then resulted in an error when freeing the exception object.

git-svn-id: trunk@23465 -
2013-01-20 16:33:10 +00:00
florian
9d76168b57 * refactored Bl2B condition code to make it more readable
git-svn-id: trunk@23464 -
2013-01-20 15:38:38 +00:00
florian
7184306a4c + option -Wx to generate thumb interworking safe code on arm
git-svn-id: trunk@23463 -
2013-01-20 15:26:59 +00:00
florian
3fff969ced * take care of instruction in between when doing ShiftShiftShift2ShiftShift optimizations
git-svn-id: trunk@23462 -
2013-01-20 14:58:03 +00:00
florian
f1b8fad6dc * make AndAnd2And working with other instructions in between
git-svn-id: trunk@23461 -
2013-01-20 14:57:59 +00:00
florian
fcef2dc3df * refactored some code and introduced usage of new method RegEndOfLife
git-svn-id: trunk@23460 -
2013-01-20 14:57:55 +00:00
florian
82f3ec7922 * if cs_opt_level3 is not set, limit lookahead of GetNextInstructionUsingReg to one instruction:
only -O3 means do the really slow optimizations

git-svn-id: trunk@23459 -
2013-01-20 14:57:51 +00:00
florian
a78af5b8fe + AndLslXsr2And and AndLsl2Lsl optimization
git-svn-id: trunk@23458 -
2013-01-20 14:57:46 +00:00
florian
ff522d7e18 * improve ShiftShiftShift2ShiftShift to look further ahead
* check register usage so the destination register can be different

git-svn-id: trunk@23457 -
2013-01-20 14:57:43 +00:00
florian
12d0c05ede * remove bic instructions after lsr if possible
git-svn-id: trunk@23456 -
2013-01-20 14:57:38 +00:00
michael
f566201a8d * Notification should be protected
git-svn-id: trunk@23455 -
2013-01-20 11:25:28 +00:00
svenbarth
632db2229f Fix for Mantis #23700 .
scanner.pas, parse_compiler_expr.read_factor:
  * initialize result value

git-svn-id: trunk@23454 -
2013-01-20 11:21:20 +00:00
michael
faba932549 * Added generic tree from Mario Ray Mahardhika (bug ID 33654)
git-svn-id: trunk@23453 -
2013-01-20 10:09:48 +00:00
florian
81e0e3114c * throw an error if threadvars are used but not supported
* fix building for arm-embedded

git-svn-id: trunk@23452 -
2013-01-19 15:17:47 +00:00
pierre
9e6a2b868c Fix -Cp option failure due to cputypestr array that must be uppercased
git-svn-id: trunk@23446 -
2013-01-18 17:09:28 +00:00
michael
5df0afb5c6 * Corrected statements for tables and system tables
git-svn-id: trunk@23445 -
2013-01-18 16:38:04 +00:00
pierre
bb418a1c94 Try to convert dllprt0.as code to PIC
git-svn-id: trunk@23444 -
2013-01-18 15:02:26 +00:00
pierre
5d3a94f9e4 Regenerated after: Use -KPIC option for dllprt0.as for mips/mipsel
git-svn-id: trunk@23443 -
2013-01-18 15:01:45 +00:00
pierre
84d21fad21 Use -KPIC option for dllprt0.as for mips/mipsel
git-svn-id: trunk@23442 -
2013-01-18 15:01:22 +00:00
michael
164c677cfd * Enable property setter by default
* Fixed index in list class

git-svn-id: trunk@23440 -
2013-01-18 14:43:34 +00:00
michael
49e3d2734e * Added possibility to force use of setter/getter for properties.
* Added possibility to add a line of text in the property setter. (%PROPNAME%)
* Fixed TCodeOptions.Assign, missing a couple of properties.
* Fixed name of setter routine

git-svn-id: trunk@23439 -
2013-01-18 14:42:13 +00:00
paul
7c663af588 compiler: also don't allow record constructors with only default arguments
git-svn-id: trunk@23438 -
2013-01-18 11:59:25 +00:00
paul
fe338013a5 compiler: calculate offset of record fields in taddrnode also for bitpacked structures (Jonas comment in bug #0019357)
git-svn-id: trunk@23437 -
2013-01-18 01:56:55 +00:00
paul
1b8369dd99 compiler: don't allow parameterless constructors
git-svn-id: trunk@23436 -
2013-01-18 01:24:04 +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
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
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