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
florian
5cfc865889
* version update
...
git-svn-id: trunk@21237 -
2012-05-05 18:33:15 +00:00
florian
69ce5fa66b
* patch by Max Nazhalov to improve real2str performance, resolves #21825
...
git-svn-id: trunk@21236 -
2012-05-05 18:29:32 +00:00
marco
0584cfe9d5
* improve tcflow
...
git-svn-id: trunk@21234 -
2012-05-05 15:18:50 +00:00
marco
833318e6fb
* Improved tcsendbreak
...
git-svn-id: trunk@21233 -
2012-05-05 15:10:10 +00:00
marco
2213b67134
* fix Mantis #21665 for net/free/openbsd
...
git-svn-id: trunk@21232 -
2012-05-05 15:03:12 +00:00
marco
6f0861e666
* Applied patch from Ludo Brands wrt constant used in termio.TCFlush.
...
Mantis #21665 , but that remains open because it must be investigated
for other oses too.
git-svn-id: trunk@21231 -
2012-05-05 14:48:49 +00:00
michael
87d3a48174
* Run test decorators when picking single tests below a testdecorator
...
git-svn-id: trunk@21230 -
2012-05-05 10:52:03 +00:00
florian
77ae218556
* safer calculation of pool placement on arm
...
git-svn-id: trunk@21226 -
2012-05-04 19:10:30 +00:00
Marc Weustink
f4874e4d9c
open lookup dataset before checking lookup fields (delphi compat)
...
git-svn-id: trunk@21224 -
2012-05-04 13:28:25 +00:00
paul
aad9294c27
compiler: when explicit codepage modeswitch is installed and compiler has no codepage map for the DefaultSystemCodepage use default compiler codepage
...
git-svn-id: trunk@21223 -
2012-05-04 06:09:35 +00:00
sergei
78c0215447
Preparations to native threadvar support:
...
- i386/cgcpu.pas: removed segment check, rejecting references with segment here is too early. These references are passed to tcgx86.a_loadaddr_ref_reg, which can generate required code for them (or reject if they are not allowed for the target).
- ncgld.pas: removed "not tf_section_threadvars in target_info" condition, it is inverse to one on the following line, making non-generic branch impossible to execute.
+ Define FPC_SECTION_THREADVARS macro if corresponding flag is set for the target.
git-svn-id: trunk@21210 -
2012-05-03 16:26:44 +00:00
Jonas Maebe
0841ee6e4f
* GNU ld only supports double quotes in its response file -> requote there
...
as well under Unix (mantis #21928 , caused by r21069)
git-svn-id: trunk@21208 -
2012-05-03 12:41:16 +00:00
paul
923e939170
tests: use known to compiler codepage since it crashes in other case
...
git-svn-id: trunk@21206 -
2012-05-03 07:03:19 +00:00
paul
098227a9a0
tests: mark test as should fail
...
git-svn-id: trunk@21205 -
2012-05-03 06:47:42 +00:00