Commit Graph

40667 Commits

Author SHA1 Message Date
sergei
dffe9cbc55 * Output sizes in map files without truncation and without leading zeros, plus a few more tweaks to make it look more like map files generated by ld. Resolves #24747.
git-svn-id: trunk@25127 -
2013-07-17 14:52:02 +00:00
sergei
8b1463aedc * tprocdef.customprocname: fixed bug introduced in r21069 that was causing result to always contain 'procedure' or 'function' word. These should be included only if pno_proctypeoption flag is given. Resolves #24640.
git-svn-id: trunk@25126 -
2013-07-17 12:41:55 +00:00
reiniero
2240c24252 fcl-db: dbase: Remove erroneous language ID $20 Czech as it does not appear in references. Fixes issue #0024730: Incorrect dbf Language ID to Locale convert table for Czech locale Windows
git-svn-id: trunk@25125 -
2013-07-17 11:57:20 +00:00
reiniero
29795e1b30 fcl-db: cosmetic: dbase: add reference to language IDs/codepages for DBaseIV
git-svn-id: trunk@25124 -
2013-07-17 11:48:03 +00:00
sergei
f49be98507 * MIPS: avoid temp if possible also when converting unsigned 32-bit integers to real.
git-svn-id: trunk@25123 -
2013-07-17 11:19:19 +00:00
sergei
c3350d13f9 * MIPS: floating point parameters on stack should be loaded to/from FPU registers directly, without using temp.
git-svn-id: trunk@25122 -
2013-07-17 11:00:46 +00:00
nickysn
3e0cc1e5f6 * fixes for the compilation of unit variants in the i8086 medium memory model
git-svn-id: trunk@25120 -
2013-07-16 15:16:24 +00:00
nickysn
e8005f9485 * fixed compilation of unit typinfo in the i8086 medium memory model
git-svn-id: trunk@25119 -
2013-07-16 15:13:11 +00:00
nickysn
d377ffdbec + added types CodePtrInt and CodePtrUInt, defined as integers with the same size as a CodePointer
git-svn-id: trunk@25118 -
2013-07-16 14:58:58 +00:00
nickysn
79db53b049 * TPropInfo.GetProc, .SetProc and .StoredProc changed to CodePointer for compatibility with the i8086 medium memory model
git-svn-id: trunk@25117 -
2013-07-16 14:50:16 +00:00
nickysn
59d014dd10 + extended test tfarptr2 to also test comparisons with nil
git-svn-id: trunk@25112 -
2013-07-16 13:44:23 +00:00
nickysn
2a64ba0ad3 * do a 32-bit comparison on far and huge pointers
git-svn-id: trunk@25110 -
2013-07-16 07:57:49 +00:00
nickysn
0d565aeba9 + extended test tfarptr2.pp
git-svn-id: trunk@25109 -
2013-07-15 22:36:12 +00:00
nickysn
56fbf8d4fe + added test tfarptr2.pp, which tests far pointer equality comparison
git-svn-id: trunk@25108 -
2013-07-15 22:13:17 +00:00
nickysn
1eaa23b738 + added a simple test for i8086 far pointers
git-svn-id: trunk@25107 -
2013-07-15 14:47:02 +00:00
reiniero
4428a1e68a fcl-db: example program that shows creating, using dbf as well as exporting using dbexport
git-svn-id: trunk@25106 -
2013-07-15 11:49:36 +00:00
michael
de8f4e37c0 * Fix DeleteTempUploadedFile so it frees the stream
git-svn-id: trunk@25101 -
2013-07-15 07:39:20 +00:00
ludob
d03262d39a pqconnection: changed FCursorCount to dword to avoid 'prepared statement already exists' errors when preparing more than 64k queries in one transaction while keeping one ore more queries open
git-svn-id: trunk@25099 -
2013-07-14 13:08:06 +00:00
nickysn
6be738f256 + added directories cpu16/ and cpu16/i8086/ to the testsuite makefiles
git-svn-id: trunk@25098 -
2013-07-14 11:56:45 +00:00
nickysn
31815fc228 + added a basic i8086 far pointer size test: tptrsize.pp
git-svn-id: trunk@25097 -
2013-07-14 11:54:01 +00:00
michael
185ac771b0 * Added first/lasr methods to TMimeItems and TUpLoadedFiles (Patch by Silvio Clecio)
git-svn-id: trunk@25093 -
2013-07-13 12:21:52 +00:00
marco
45b84ab8ca * added TElemdesc alias (found it used in Delphi code)
git-svn-id: trunk@25087 -
2013-07-11 21:33:13 +00:00
nickysn
7a0bf4fa54 * the change in r25067 disabled for 16-bit and 8-bit CPUs, because it relies on reg_cgsize, which gives wrong results on archs that use GetNextReg()
git-svn-id: trunk@25086 -
2013-07-11 12:28:26 +00:00
reiniero
7efdfa8ff6 fcl-db: cosmetic: corrected fpdbexport.pp comments
git-svn-id: trunk@25085 -
2013-07-11 11:09:05 +00:00
reiniero
ed6500b370 fcl-db: cosmetic fixed for XMLXSD export readme
git-svn-id: trunk@25084 -
2013-07-11 11:02:08 +00:00
sergei
e82ecd66f3 - MIPS: removed target-specific real_to_real conversion, generic code handles it just well.
git-svn-id: trunk@25083 -
2013-07-11 08:28:24 +00:00
sergei
ac2006898f * Mark procedures with shortstring value parameters as non-leaf, because such parameters generate a call (to fpc_shortstr_assign).
git-svn-id: trunk@25082 -
2013-07-11 08:21:45 +00:00
michael
e992431bc4 * Do not decode Querystring yet. This is done when parsing it in name=value
git-svn-id: trunk@25081 -
2013-07-10 13:29:46 +00:00
sergei
8b97972482 * Typo in r25079.
git-svn-id: trunk@25080 -
2013-07-10 10:46:13 +00:00
sergei
0cea8466a2 MIPS RTL:
+ fixed missing result assignments in SetRoundMode and SetExceptionMask.
* GetRoundMode: provide correct mapping from FSR bits to TRoundingMode.
* SetExceptionMask: simplified.

git-svn-id: trunk@25079 -
2013-07-10 10:44:14 +00:00
sergei
1ca2a253e8 MIPS, improved integer to real conversions:
* Use fpc_[int64|qword]_to_double instead of [int64|qword]_to_float64, makes RTL no longer dependent on softfloat code.
* Move 32-bit values from integer registers to FPU registers without using memory.
* Fixed branching, was still using a macro and delay slot was missing.

git-svn-id: trunk@25071 -
2013-07-09 14:17:51 +00:00
svenbarth
6b34c84704 nadd.pas, taddnode.create_internal:
* Fix formatting of parameters

git-svn-id: trunk@25070 -
2013-07-09 08:51:49 +00:00
svenbarth
fc79d47b09 Fix for Mantis #24651. Allow pointer comparison for internal expressions (in this case check for valid VMT).
nadd.pas, taddnode:
  + add new constructor "create_internal" which adds "nf_internal" to the node's "flags"
  * pass_typecheck_internal: allow pointer comparisons other than "=" and "<>" for nodes which have "nf_internal" set
psub.pas, generate_bodyentry_block:
  * create the addnode using "create_internal" instead of "create" to allow the pointer comparison

+ added test 

git-svn-id: trunk@25069 -
2013-07-09 08:04:11 +00:00
svenbarth
407e9d173b Fix for Mantis #17598. When extended syntax is off allow the result of constructors to be dropped when the constructor is called as an instance method instead of a class method.
pstatmnt.pas, statement:
  * check whether the constructor is called as an instance or class method
nflw.pas, tlabelnode.pass_1:
  * don't check the owner of the labelsym when there is none (happens with internally created labels like for e.g. exception handling)

+ added test  

git-svn-id: trunk@25068 -
2013-07-09 07:56:45 +00:00
sergei
f3a1c749fb * tcgtypeconvnode.second_int_to_int: reuse 8 and 16-bit-sized register locations on targets with 32-bit-only registers when casting to larger size (except ShortInt to Word cast). This is possible because upper bits of such registers are always kept valid by code generators (see 'maybeadjustresult' method in cgcpu.pas). Removes a lot of useless register moves.
git-svn-id: trunk@25067 -
2013-07-08 13:27:03 +00:00
sergei
faa778b6c7 * MIPS: div/mod and 32-bit shifts: don't bother reusing argument locations, always allocate new register and emit 3-address instructions.
* Fixed possible overwrite of LOC_CREGISTER numerator in optimized division by power of 2.

git-svn-id: trunk@25066 -
2013-07-08 11:51:39 +00:00
lacak
35f74e86ad fcl-db: tests: Add test for Master-detail (see rev.25055)
git-svn-id: trunk@25065 -
2013-07-08 11:50:15 +00:00
lacak
a12a94eaff fcl-db: tests: move 1 test
git-svn-id: trunk@25064 -
2013-07-08 11:06:56 +00:00
lacak
8602706228 fcl-db: sqldb:
- do not allocate cursor when opening bufdataset from file
- when closing TSQLQuery do not deallocate cursor while can be prepared (fixes "[SETUP] unable to close due to unfinalised statements" bug for SQLite)
- when unpreparing statement take into account that there are also SQLConnections which does not support [un]preparation of statements ... bur for those we must still call UnRegisterStatement (fixes multiple "[TEARDOWN] Access violation" in tests)

git-svn-id: trunk@25063 -
2013-07-08 10:40:27 +00:00
sergei
9e4cc57768 * MIPS: handle 8 and 16-bit arithmetic shifts internally, by shifting argument left by 24/16 bits, followed with 32-bit arithmetic shift right by appropriately adjusted amount.
This approach should be usable for other non-x86 targets as well.

git-svn-id: trunk@25062 -
2013-07-08 08:45:16 +00:00
lacak
87a0868606 fcl-db: tests: more complex test for r25036
git-svn-id: trunk@25061 -
2013-07-08 06:55:15 +00:00
florian
58610af9f0 * adapt max_linear_list on x86-64 as well
git-svn-id: trunk@25060 -
2013-07-07 20:01:10 +00:00
florian
d0db391d7c * cleanup of unused units
git-svn-id: trunk@25059 -
2013-07-07 20:00:33 +00:00
florian
91138a535a * default value for max_linear_list on i386
git-svn-id: trunk@25058 -
2013-07-07 19:51:25 +00:00
florian
507edb16de * use add/sub instead of inc/dec on modern CPUs when optimizing for speed
git-svn-id: trunk@25057 -
2013-07-07 19:50:13 +00:00
michael
af1d33767d * Inherited must be called for Internal(Dis)Connect for housekeeping
git-svn-id: trunk@25056 -
2013-07-07 18:19:23 +00:00
michael
087b6b4a39 * Fixed Master/Detail relation in SQLDB and fixed memory leak
git-svn-id: trunk@25055 -
2013-07-07 18:14:11 +00:00
florian
2cdb4adf39 + tai_const.Create_type_name and tai_const.Create_pint_unaligned
* some locations fixed, where dwarf generated assembler for aligned data accidently

git-svn-id: trunk@25054 -
2013-07-07 15:09:36 +00:00
marco
609f6255d4 * added layout constants.
git-svn-id: trunk@25053 -
2013-07-06 20:46:30 +00:00
Jonas Maebe
a73897f835 - removed svn:mergeinfo properties (please only merge into the top level
directory)

git-svn-id: trunk@25050 -
2013-07-05 14:08:27 +00:00