Commit Graph

37362 Commits

Author SHA1 Message Date
sergei
c61c192c23 * Fixed class cast error (THTMLDocument is not a descendant of THTMLCustomElement).
git-svn-id: trunk@21292 -
2012-05-14 13:28:52 +00:00
marco
fedd899736 * deprecated winexec, a win16 overleft which MS deprecated 17 years ago.
git-svn-id: trunk@21291 -
2012-05-14 09:43:53 +00:00
paul
4312aa4e08 compiler: allow compiler to find real class definition during class members parse to handle references to self constants + test
git-svn-id: trunk@21290 -
2012-05-14 04:50:49 +00:00
florian
53c39d5420 * fixes peephole optimizer problems with -O3 on x86-64
git-svn-id: trunk@21288 -
2012-05-13 19:19:04 +00:00
Jonas Maebe
edd42aa42a * moved subsetref/reg and bit_set/test support from cgobj to hlcgobj for
future use by high level code generator targets
   o this in turn required that all a_load*_loc* methods are called via
     hlcg rather than via cg, since a location can be a subsetref/reg and
     and those are no longer handled in tcg
   o that then required moving several force_location_* routines into
     thlcg because they use a_load_loc*, but did not take tdef size
     parameters (which are required by the thlcg a_load_loc* routines)
   o the only practical consequence is that from now on, you have to
     use hlcg.location_force_mem/reg() (fpureg not yet) and
     hlcg.gen_load_loc_cgpara() instead of the removed versions from ncgutil,
     and hlcg.a_load*loc*() instead of cg.a_load*loc* if a subsetref/reg
     might be involved

git-svn-id: trunk@21287 -
2012-05-13 12:33:10 +00:00
Jonas Maebe
3ba801d37c * fix loading 64 bit floating point parameters passed half in an integer
register and half on the stack into a VFP register on ARM (mantis
    #21917)

git-svn-id: trunk@21286 -
2012-05-13 12:14:34 +00:00
Jonas Maebe
ef2d665a50 + support for REV and several other ARMv6/ARMv6T2+ opcodes (mantis #21888)
git-svn-id: trunk@21285 -
2012-05-13 12:14:26 +00:00
Jonas Maebe
f95925dd91 * don't push/pop current_module.localsymtable when adding explicitly created
pointer/arraydefs, because these operations can have side-effects in case
    of helpers (will add/remove helpers, so popping after the insertion
    removed all helpers in the static symtable of the current unit)

git-svn-id: trunk@21282 -
2012-05-12 22:24:27 +00:00
marco
2ae09dc995 * Patch from Perdhevi/Lacak2 to improve keyfields existence.
Fixes code part of mantis #15286, which turns into a documentation issue now.  

git-svn-id: trunk@21281 -
2012-05-12 21:05:41 +00:00
marco
642a180809 Fix from Lacak2 for Mantis #21994 fixes
* when records are inserted into empty dataset and then all canceled by CancelUpdates AV is raised
* another fix for bug #18004, applied in rev.20531 (improved in rev.21197)
  (original approach is not good because when record is inserted and deleted and again inserted,
   then same memory block can be returned, which leads to confusion, because we get same BookmarkData for distinct records)
* +test 

git-svn-id: trunk@21280 -
2012-05-12 20:15:52 +00:00
Jonas Maebe
85a3fd3357 + ossinttype/osuinttype defs that correspond to OS_SINT/OS_INT for use in
the high level code generator

git-svn-id: trunk@21279 -
2012-05-12 16:03:15 +00:00
Jonas Maebe
c1b1eadb98 * factored out the intialization of uinttype/sinttype/ptruinttype/ptrsinttype
from create_intern_types and load_intern_types (+ the version from
    load_intern_types was out-of-date)

git-svn-id: trunk@21278 -
2012-05-12 16:03:02 +00:00
michael
264a013087 * Example from Reinier Olislagers to demo TFBAdmin component (bug 22012)
git-svn-id: trunk@21277 -
2012-05-12 12:19:45 +00:00
michael
3296858f44 * Added TFBAdmin component from Ludo Brands (bug 22012)
git-svn-id: trunk@21276 -
2012-05-12 12:15:56 +00:00
paul
62a91ef626 compiler: don't search symbol in other symtables than in found nested class, fix wrong test + add another one
git-svn-id: trunk@21275 -
2012-05-12 08:21:50 +00:00
paul
62b59235ca compiler: fix accessing typed constants inside class declaration (bug #21941)
git-svn-id: trunk@21273 -
2012-05-12 01:09:56 +00:00
svenbarth
b3595893c8 pgenutil.pas, generate_specialization: set the correct module index, so that warnings, etc. that are generated for a type declaration are printed using the module where the generic came from (this is already done for method bodies, but not for declarations)
git-svn-id: trunk@21271 -
2012-05-11 06:44:12 +00:00
svenbarth
810bd7ddab + symtable.pas, tspecializesymtable.create: SymList and DefList do not need to own the symbols and defs as they are moved to another symtable before the specialize symtable is destroyed (avoids the need to call "extract" on those lists)
* pgenutil.pas, generate_specialization: Correctly change the ownership of extracted symbols and defs by calling ChangeOwner on the symbol/def which does all the magic of changing the owner and adding it to the corresponding list of the given symtable. This fixes Mantis #21550
* Adjusted tw21550.pp so that it enforces the generation of debug information which (as this was the option which caused the above mentioned bug to show)

git-svn-id: trunk@21270 -
2012-05-10 06:27:32 +00:00
paul
d79eee8ed1 compiler: write a warning if unit should be compiled with built-in system codepage for ansistring constants but this codepage is not known by the compiler
git-svn-id: trunk@21269 -
2012-05-10 01:24:18 +00:00
joost
f011d02833 * Raise an exception when a TBufDataset is opened while there is no dataset created
git-svn-id: trunk@21268 -
2012-05-09 15:56:55 +00:00
joost
cbb8b23c71 * fixed the recognition of xml-files using the TBufDataset.filename property
git-svn-id: trunk@21267 -
2012-05-09 14:49:53 +00:00
svenbarth
4fc7515591 * pdecsub.pas, parse_proc_dec: always parse operator overload heads as block type bt_body so that operators like ">", "=>" or "<>" are resolved to the correct tokens ("<>" would be a sequence of "_LSHARPBRACKET _RSHARPBRACKET" instead of _NE otherwise). Fixes Mantis #21127
git-svn-id: trunk@21266 -
2012-05-09 12:32:34 +00:00
marco
343b8e299c * Mantis #21995, rewrite mantis #17199 changes (IB datetime milliseconds)
using composedatetime.

git-svn-id: trunk@21265 -
2012-05-09 12:28:28 +00:00
svenbarth
def357287e * revert revision 21251 for pdecvar.pas: not generating the bss-data for the static symbol for a generic breaks linking with debug info enabled; I'll need to find a better solution to avoid unneeded use of space (luckily it wasn't needed to fix any bug ^^)
git-svn-id: trunk@21264 -
2012-05-09 12:02:41 +00:00
Jonas Maebe
db955f842f * fixed (harmless) range check errors
git-svn-id: trunk@21263 -
2012-05-08 20:02:48 +00:00
Jonas Maebe
641b259aed * adjusted thlcg.g_rangecheck() implementation so it can be used for all
targets and removed (the almost identical) tcg.g_rangecheck()

git-svn-id: trunk@21262 -
2012-05-08 20:02:36 +00:00
Jonas Maebe
11e9f95580 * fixed (not harmless) class cast error when indexing an array[orddef] using
a non-orddef (e.g., a variant)

git-svn-id: trunk@21261 -
2012-05-08 20:02:26 +00:00
Jonas Maebe
95b8b95c9c * fixed (harmless) class cast error
git-svn-id: trunk@21260 -
2012-05-08 20:02:18 +00:00
Jonas Maebe
41d86f2b26 * fixed (harmless) class cast error when checking whether an aggregate
has the same size as one of its members to determine whether we can
    exchange two temps rather than copying one to the other

git-svn-id: trunk@21259 -
2012-05-08 20:02:04 +00:00
Jonas Maebe
003a30db6b - reverted r21246, it breaks tcalext3/5 on x86
git-svn-id: trunk@21258 -
2012-05-08 17:17:01 +00:00
Jonas Maebe
24be42d509 * changed "crc" variable from longint to cardinal to avoid (harmless) range
check errors

git-svn-id: trunk@21257 -
2012-05-08 17:16:56 +00:00
joost
50704e55c8 * Implemented TBufDataset.MergeChangelog
git-svn-id: trunk@21256 -
2012-05-08 14:16:28 +00:00
Jonas Maebe
ab914a8ae3 * the code page of unicodestring/widestring on big endian targets is
UTF-16BE, not UTF-16LE

git-svn-id: trunk@21255 -
2012-05-08 13:38:16 +00:00
joost
67ab61dcc8 * Moved .ReadOnly property from TSQLQuery to TBufDataset
git-svn-id: trunk@21254 -
2012-05-08 12:21:50 +00:00
joost
e2d43a63b2 * Added Lazarus gui-frontend for db unit-tests.
git-svn-id: trunk@21253 -
2012-05-08 10:22:39 +00:00
joost
a5bfcb026d * Fixed case-insensitive filtering on filters like *blah*
git-svn-id: trunk@21252 -
2012-05-08 09:33:21 +00:00
svenbarth
5b1b194b47 * pdecvar.pas, read_record_fields: don't generate BSS-data for generic static fields (doesn't fix any specific bug, but we don't need space reserved for the field)
* pgenutil.pas, generate_specialization: fix a stupid "don't iterate upwards if deleting/extracting" mistake (twice!); this fixes Mantis #21550 and Mantis #21654 (tests added)

git-svn-id: trunk@21251 -
2012-05-08 07:31:37 +00:00
Jonas Maebe
f8c815b3db * print expected output when an error occurs, rather than two times the
actual output

git-svn-id: trunk@21250 -
2012-05-07 12:55:57 +00:00
marco
2661bd406c * Patch to correct parameter types in IDropSource by Cobines, mantis #21971
git-svn-id: trunk@21249 -
2012-05-07 06:52:28 +00:00
Jonas Maebe
64f3ba3299 * clarified description of -Xd, it is not always required for
cross-compiling (mantis #21963)

git-svn-id: trunk@21248 -
2012-05-06 15:44:52 +00:00
Jonas Maebe
50d2fa7134 * after changing a modeswitch, only change related module/localswitches that
depend on the modeswitch that was just changed (so that e.g. changing
    the nested procvars setting has no effect on the state of $h+/$h-)
    (mantis #21951)

git-svn-id: trunk@21247 -
2012-05-06 14:56:49 +00:00
Jonas Maebe
9568693664 * removed superfluous sign extension from a_load_subsetreg_reg() (the value
is already sign extended at that point if required)

git-svn-id: trunk@21246 -
2012-05-06 14:50:38 +00:00
michael
82cf4cd89a * Default Modulename can be set
git-svn-id: trunk@21245 -
2012-05-06 07:59:28 +00:00
marco
e1283a3e0e * handle milliseconds in IB timestamps, patch by Zipfelvo, improved by Lacak2.
Mantis #17199

git-svn-id: trunk@21244 -
2012-05-05 22:19:25 +00:00
marco
a0becaa727 * fix size of pthread_rwlock_t. Mantis #21552 Fields are now opaque.
git-svn-id: trunk@21243 -
2012-05-05 22:04:08 +00:00
marco
9e03a58c3d * Patch to implement TSQLite3ConnectionDef from Silvio Clecio, Mantis #21930
git-svn-id: trunk@21242 -
2012-05-05 20:37:31 +00:00
marco
4edd31b41e * helper procedure to calc min/max of a spline. Mantis #19669, Patch by A. Klenin.
git-svn-id: trunk@21241 -
2012-05-05 20:20:43 +00:00
marco
4a782b1411 * tcflow and tcsendbreak fix for open/net
git-svn-id: trunk@21240 -
2012-05-05 20:15:43 +00:00
florian
6b8f452804 * get_frame_*/get_caller_* does not work yet on MIPS
git-svn-id: trunk@21239 -
2012-05-05 18:35:22 +00:00
florian
edbb826521 * generate correct entry code on mips for subroutines with a stack frame >2^15-1
git-svn-id: trunk@21238 -
2012-05-05 18:34:31 +00:00