Commit Graph

35315 Commits

Author SHA1 Message Date
Jonas Maebe
f67d7f08fc * use temporary location to construct writestr() string, because the
final destination may also be used in the other arguments
    (mantis #20744)

git-svn-id: trunk@19678 -
2011-11-24 19:56:21 +00:00
florian
55c17a94d6 * fixes property typo
git-svn-id: trunk@19677 -
2011-11-24 19:20:34 +00:00
sekelsenmat
efba36c81b Advances TFPImageCanvas.FImage and TFPMemoryImage.FData to protected to allow more useful descendents to be created, see bug #20341
git-svn-id: trunk@19673 -
2011-11-23 21:14:06 +00:00
sergei
fffa4a35a0 * x86_64: Don't waste time initializing/finalizing saved_standard_registers and saved_mm_registers arrays on every procedure. Initialize once, reinitialize if target system happens to change, and let finalization happen implicitly on shutdown.
git-svn-id: trunk@19672 -
2011-11-23 20:06:38 +00:00
michael
4f8bc2aaf4 * Missing conversion to TFPList
git-svn-id: trunk@19670 -
2011-11-22 19:21:20 +00:00
michael
bb54f1375c * TList -> TFPList to match latest changes in fcl-passrc
git-svn-id: trunk@19669 -
2011-11-22 18:15:28 +00:00
sergei
6cb6569d51 * Set pi_uses_exceptions flag when creating/firstpassing ttryexceptnode or ttryfinallynode, not when parsing try statements. It ensures that procedures with exception handling nodes created by compiler (constructors in the first place, but also for..in loops with TObject iterators, etc.) are handled the same way as ones containing exception nodes from user code.
* Modified code generation for constructors so they don't always use pi_needs_implicit_finally. It used to prevent stackframe optimization while not preventing regvar optimization ( tabstractvarsym.is_regvar() checks for pi_uses_exceptions but not for pi_needs_implicit_finally, and constructors were not getting pi_uses_exceptions), resulting in strange code using both exceptions and regvars.
Once setting of pi_uses_exception is fixed, the implicit finally frame can be omitted unless managed temps or local vars are actually present.

git-svn-id: trunk@19668 -
2011-11-22 11:59:44 +00:00
pierre
4bda40649d * Add missing CATRES substitution and remove blank lines in link.res
git-svn-id: trunk@19667 -
2011-11-22 11:15:23 +00:00
pierre
30baddd3b8 Fix Haiku shared library creatiion
git-svn-id: trunk@19665 -
2011-11-21 14:14:31 +00:00
michael
ce1133febb * Uncommented some extra tests
git-svn-id: trunk@19664 -
2011-11-20 22:49:14 +00:00
michael
c9cd1079d4 * More extensive examples taken from RTL
git-svn-id: trunk@19663 -
2011-11-20 22:48:29 +00:00
michael
d078996f69 * Refactoring in preparation of extended features (nested type, extended records) support
git-svn-id: trunk@19662 -
2011-11-20 22:46:54 +00:00
Jonas Maebe
3188916cda * also replace $CATRES for shared libraries (fix for r19649)
git-svn-id: trunk@19661 -
2011-11-20 20:06:43 +00:00
marco
b070a0bbbc * add NULL handling for customvariants, patch by Ludo, Mantis #20697
git-svn-id: trunk@19660 -
2011-11-20 19:45:22 +00:00
michael
a52fe3162d * Patch from Reinier Olislagers to improve blob upload times
git-svn-id: trunk@19659 -
2011-11-19 22:35:13 +00:00
marco
2e3d1a17d0 * also remove *.dbg files. Patch from Jonas, Mantis #20466
git-svn-id: trunk@19658 -
2011-11-19 13:56:43 +00:00
marco
7a7d8e27cd * set transaction of proxy via field instead of setter since that
triggers a cascade of actions. Mantis #20694

git-svn-id: trunk@19657 -
2011-11-19 13:02:31 +00:00
marco
6d830a270d * Adds methods to TBinaryField (getasvariant/setasvarvalue) Mantis #20532
git-svn-id: trunk@19656 -
2011-11-19 12:42:32 +00:00
Tomas Hajny
a2927499c8 * UNDEFINE corrected to UNDEF
git-svn-id: trunk@19655 -
2011-11-19 12:32:32 +00:00
marco
a06c466c76 * Lua libraryname fix, mantis 20705
git-svn-id: trunk@19654 -
2011-11-19 11:50:54 +00:00
marco
21e04073d8 * fixed closepipe<>pipeclose and handle<>fhandle typos reported by Jonas.
git-svn-id: trunk@19653 -
2011-11-19 11:49:59 +00:00
Tomas Hajny
38fca89c69 * TIn/OutputPipeStream gets closed on freeing
git-svn-id: trunk@19652 -
2011-11-18 22:47:06 +00:00
Jonas Maebe
84bf45f0e2 * give an error when trying to call an interface/protocol/category method
using the type name of the interface/protcol/category (they are not
    entities themselves on which you can invoke those methods,
    mantis #20661)

git-svn-id: trunk@19651 -
2011-11-18 22:33:33 +00:00
pierre
836da25e81 * Do not call with UseShell = true if CatFileContent expands the file into parameters
git-svn-id: trunk@19650 -
2011-11-18 22:08:51 +00:00
pierre
b1bd1d29ec Replace cat $RESby $CATRES and call CatFileContent method
git-svn-id: trunk@19649 -
2011-11-18 21:33:24 +00:00
pierre
5d6a7dc03d + TExternalLinker.CatFileContent method and tf_no_backquote_support tsystemflags enum value
git-svn-id: trunk@19648 -
2011-11-18 21:32:25 +00:00
pierre
8e843bc892 Regenerate msg include files
git-svn-id: trunk@19647 -
2011-11-18 21:29:40 +00:00
pierre
8f7ea8718b + Add message for TExternalLinker.CatFileContent method
git-svn-id: trunk@19646 -
2011-11-18 21:28:46 +00:00
Tomas Hajny
21179c6833 * retrieve process ID even if running under DOS
git-svn-id: trunk@19644 -
2011-11-17 20:19:00 +00:00
pierre
85862e476b Fix for test tw19368
git-svn-id: trunk@19643 -
2011-11-16 22:04:28 +00:00
pierre
b19cab9802 New test
git-svn-id: trunk@19642 -
2011-11-16 13:17:42 +00:00
paul
7f7c665e64 compiler: push nested class hierarchy for parsing nested procedures arguments and results (mantis #0020690, mantis #0020038)
git-svn-id: trunk@19641 -
2011-11-16 03:41:56 +00:00
sergei
c56ef119a1 * tcgguidconstnode: create a new object section before emitting data, otherwise data ends up in arbitrary section, causing e.g. IE 200602289 if it happens to be .bss.
git-svn-id: trunk@19640 -
2011-11-16 02:21:10 +00:00
sergei
92e0f43f5d * Changed Utf8String to AnsiString, fixes compilation after merging of cpstring.
git-svn-id: trunk@19639 -
2011-11-14 22:58:48 +00:00
sergei
8c9ad67682 + tcgexitnode,tcgbreaknode,tcgcontinuenode: added possibility to generate specialized code for leaving unwind-protected regions.
git-svn-id: trunk@19636 -
2011-11-14 22:47:37 +00:00
florian
c12a4989d0 + use cpurox define in the compiler for CPUs having internal ror/rol support
+ optimize (i shl x) or (i shr (bitsizeof(i)-x)) and friends into rol/ror(x,i)

git-svn-id: trunk@19635 -
2011-11-13 18:40:34 +00:00
michael
6ecdf3a3f8 * Fixed so it compiles also in pipesipc
git-svn-id: trunk@19634 -
2011-11-13 17:08:29 +00:00
nickysn
6a0078e38a * Updated PTCPas to version 0.99.12
git-svn-id: trunk@19633 -
2011-11-12 18:28:40 +00:00
michael
14edc4a496 * Added cleanup of stale socket files (bug 17248)
git-svn-id: trunk@19632 -
2011-11-12 14:45:16 +00:00
michael
672d7f6b63 * Implemented AS for table aliases
git-svn-id: trunk@19631 -
2011-11-12 13:05:15 +00:00
michael
7effdb1eaa * Implemented Pause/Resume, paused
git-svn-id: trunk@19630 -
2011-11-12 12:55:40 +00:00
michael
3040d9746b * Implemented OnUnknownRequestEncoding
git-svn-id: trunk@19629 -
2011-11-12 12:40:12 +00:00
michael
9fc66414b5 * Avoid code duplication in TFileStream.Create
git-svn-id: trunk@19628 -
2011-11-11 17:32:17 +00:00
michael
ab7a60a68c * Modify file permissions when global socket
git-svn-id: trunk@19627 -
2011-11-11 17:27:37 +00:00
michael
5d71bf3b60 * Output table with enumerated explanations for set
git-svn-id: trunk@19626 -
2011-11-11 17:18:21 +00:00
michael
e808b917cb * Removed debug statement
git-svn-id: trunk@19625 -
2011-11-11 17:17:58 +00:00
michael
9287724546 * Fixed some indentation
git-svn-id: trunk@19624 -
2011-11-11 17:17:35 +00:00
michael
6486057e68 * Set declaration returns type of name if named enumeration
git-svn-id: trunk@19623 -
2011-11-11 17:14:38 +00:00
michael
91a2b7ae18 * Support for generics
git-svn-id: trunk@19622 -
2011-11-11 15:08:42 +00:00
michael
5ea8e65ea2 * Support for generics
git-svn-id: trunk@19621 -
2011-11-11 15:08:17 +00:00