Commit Graph

42064 Commits

Author SHA1 Message Date
reiniero
f27d3baccc * fcl-db: test filter using double delimiters inside string to test syntax as presented in issue #25432
allow escaping delimiters by doubling them e.g.
  Filter:='(NAME=''O''''Malley''''s "Magic" Hammer'')';
  which gives
  (NAME='O''Malley''s "Magic" Hammer')
  which will match
  O'Malley's "Magic" Hammer

git-svn-id: trunk@26249 -
2013-12-17 15:08:12 +00:00
reiniero
8c6fb52940 * fcl-db: cosmetic
git-svn-id: trunk@26248 -
2013-12-17 15:05:59 +00:00
reiniero
e2d37b5561 * fcl-db: examples: dbftool: insert field data with ' useful for testing filters etc
git-svn-id: trunk@26247 -
2013-12-17 09:19:41 +00:00
reiniero
50a349eb1c * fcl-db: examples: slight fixes dbftool
git-svn-id: trunk@26246 -
2013-12-17 09:14:44 +00:00
nickysn
be5f49b3e5 * tx86addnode.second_cmpfloat: on i8086 only load the high byte of the FPU
status word after fstsw (and before sahf), because 8-bit memory transfers are
  faster on the i8088, due to the 8-bit data bus

git-svn-id: trunk@26245 -
2013-12-16 23:52:28 +00:00
nickysn
ada9ccf6a6 * tx86addnode.second_cmpfloat: do not emit a fwait after fstsw as my own testing
on a true i8087 showed that the fwait isn't necessary

git-svn-id: trunk@26244 -
2013-12-16 23:17:44 +00:00
nickysn
f23c521c50 - disabled the i8086 math.arctan2 asm code, because it doesn't work on the 8087/80287
git-svn-id: trunk@26243 -
2013-12-16 23:05:16 +00:00
nickysn
2a0a8cfc00 * fixed CGA 320x200 hline bug when CurrentColor=1
git-svn-id: trunk@26242 -
2013-12-16 22:35:32 +00:00
sergei
b82b6da493 + Win32 SEH: to avoid memory leaks, it is necessary to free exception object for non-FPC exceptions on re-raise (it will be re-created by next exception handler).
git-svn-id: trunk@26241 -
2013-12-16 14:47:26 +00:00
reiniero
ee152cde6a * fcl-db TMemDataSet show Filter property is unimplemented; mantis issue #22051
git-svn-id: trunk@26240 -
2013-12-16 13:26:47 +00:00
sergei
695f271b8c + Win32 SEH: actually install the exception handler around main procedure (write to fs:(0) was missing).
git-svn-id: trunk@26239 -
2013-12-16 13:25:44 +00:00
sergei
74f9d719f1 * i386-win32 setjmp and longjmp: if SEH support is enabled, save/restore head of exception registration chain. Without this, a longjmp out of a function with exception frame(s) will leave these exception frames below ESP, which will fail integrity checks in OS and cause process termination if an exception occurs later on (or they may be overwritten by subsequent operations on stack and, again, cause undesired results).
* Additionally, use a branchless sequence to fix up result of longjmp.

git-svn-id: trunk@26238 -
2013-12-16 10:12:36 +00:00
nickysn
779b92459e * fixed ldexp() on 16/8-bit CPUs. Among other things, this fixes sin() and cos()
on the i8086.

git-svn-id: trunk@26237 -
2013-12-15 23:08:23 +00:00
reiniero
a3dab9b686 * fcl-db: cosmetic
git-svn-id: trunk@26236 -
2013-12-15 12:22:03 +00:00
reiniero
586bca0c7d * fcl-db TMemDataset.CopyFromDataset: return to original record position. Fixes issue #25426
git-svn-id: trunk@26235 -
2013-12-15 04:07:55 +00:00
reiniero
fe8a6f7399 * fcl-db tests: TMemDataset.CopyFromDataset: test record position has not moved for bug #25426
git-svn-id: trunk@26234 -
2013-12-15 04:06:55 +00:00
reiniero
9f5d46a008 * fcl-db memds: CopyFromDataset from first record regardless of current position. Fixes issue #25426
git-svn-id: trunk@26233 -
2013-12-15 03:47:55 +00:00
reiniero
ec5d09b16d * fcl-db tests: memds.CopyFromDataset test when record is not the first record
git-svn-id: trunk@26232 -
2013-12-15 03:28:37 +00:00
florian
2a992bf53c * patch by Sandro Cumerlato to install auxiliary ide files properly
git-svn-id: trunk@26231 -
2013-12-14 21:21:05 +00:00
marco
10ff8bf74e * cleaned out some ver2_2_0 defines.
git-svn-id: trunk@26230 -
2013-12-14 09:18:38 +00:00
sergei
6ea9ce1077 * Force managed types to be always returned in parameters, independent of target (primitive types were already handled that way; the patch affects small records with fields of managed types).
* Generating code to finalize result on exception at callee side is no longer necessary.

git-svn-id: trunk@26228 -
2013-12-13 19:54:46 +00:00
nickysn
c88be4550d * optimization in the 8087/80287 version of fpc_arctan_real(): when calculating
arctan([-]1/d), use fxch to swap the two arguments, instead of using fdivr,
  since fpatan can do the division for free

git-svn-id: trunk@26227 -
2013-12-13 01:24:01 +00:00
nickysn
a7b4953795 + proper (i.e. not broken) implementation of arctan() for the 8087 and 80287
git-svn-id: trunk@26226 -
2013-12-12 23:46:51 +00:00
sergei
179586f589 + SEH support for Win32. Enable by cycling with OPT=-dTEST_WIN32_SEH.
Although basic things work (no regressions in test suite, also with TEST_OPT=-O2), there are some secondary issues/TODOs:
- Exception frame around PASCALMAIN is not properly removed in DLLs
- No stack traces yet
- Stack overallocated in finalizer procedures, their entry/exit code needs cleanup
- Signals unit is probably completely broken.

git-svn-id: trunk@26225 -
2013-12-12 12:43:46 +00:00
marco
b2e85d2c56 * pthread_attr_destroy fixes for the rest of *nix.
git-svn-id: trunk@26224 -
2013-12-12 11:38:39 +00:00
marco
018be5c22c * add pthread_attr_destroy, due to Vincent's follow up to mantis #25416
git-svn-id: trunk@26223 -
2013-12-12 10:13:41 +00:00
sergei
1ee9373fa6 * Changed function create_pd into method of ttryfinallynode, so it can be reused for Win32 SEH and, in the future, for DWARF-based exception handling on other targets.
* Additional two minor changes: reset po_delphi_nested_cc on result, so it is independent of current {$modeswitch nestedprocvar} state, and removed call to alloc_proc_symbol (which belongs to pass 2).

git-svn-id: trunk@26222 -
2013-12-12 08:38:06 +00:00
lacak
9b4735032b fcl-db: mysql: remove obsolete mysql4conn unit replaced by mysql40conn and mysql41conn
git-svn-id: trunk@26221 -
2013-12-12 06:41:58 +00:00
marco
996e802606 * fix memleak pthread_attr, Mantis #25416 by Henry Vermaak.
git-svn-id: trunk@26220 -
2013-12-11 21:47:02 +00:00
marco
7fc33865be * build mysql 5.6, after Reinier said it wasn't built.
git-svn-id: trunk@26219 -
2013-12-11 21:23:15 +00:00
pierre
a0747f4d5d Also update TESTCONFIG and TESTRUNHISTORY tables
git-svn-id: trunk@26218 -
2013-12-11 12:33:45 +00:00
pierre
218adfe6c3 * Allow compilation for windows OS.
* soHost -> coHost to be consistent with other TConfigOpt values.
  * ConfigOpts rewritten to have corresponding coXXX constants in comments
  + Add support for long options
  * Go past first >>>> line in longlog file to avoid warning

git-svn-id: trunk@26217 -
2013-12-11 12:27:17 +00:00
pierre
360f53b742 Add -ll option to use longlog file
git-svn-id: trunk@26216 -
2013-12-11 12:21:10 +00:00
sergei
ffba5aee60 * MIPS: emit PIC-friendly instruction sequences instead of "J" when fixing up branches outside of 128K range. Resolves #25399.
git-svn-id: trunk@26215 -
2013-12-11 10:56:07 +00:00
nickysn
a68b9fd01f * use byte sized instead of word sized memory operations on the fpu control
word in fpc_frac_real, fpc_int_real and fpc_trunc_real, because the byte sized
  ones are faster on the i8088, due to the 8-bit bus

git-svn-id: trunk@26214 -
2013-12-10 21:16:35 +00:00
marco
4871a7b1c9 * fix for mantis #25191, extract gobject routines to separate unit.
git-svn-id: trunk@26213 -
2013-12-10 17:38:32 +00:00
reiniero
5ae858fbf5 * fcl-db oracleconnection.pp: cosmetic: replace Dutch tel variable with counter; translate Dutch comment
git-svn-id: trunk@26212 -
2013-12-10 13:58:59 +00:00
pierre
80c67337ed Move GetTestRunHistoryID and AddTestHistoryEntry to dbtests unit
git-svn-id: trunk@26211 -
2013-12-10 13:22:20 +00:00
sergei
0e0273d53f * Partially reverted r26192, preserving registers in presence of exceptions needs a different solution.
git-svn-id: trunk@26210 -
2013-12-10 12:43:24 +00:00
pierre
a5ea0d2b4c Add dbconfig program to handle TESTCONFIG table
git-svn-id: trunk@26209 -
2013-12-10 08:48:08 +00:00
pierre
bd91a8da7e Force SrcExeExt for prog parameter in ExecuteRemote function
git-svn-id: trunk@26208 -
2013-12-10 08:41:30 +00:00
pierre
85f138b409 + Add StringQuery and InsertQuery functions.
* Call FreeQueryResults if TQueryResult is discarded.

git-svn-id: trunk@26207 -
2013-12-10 08:37:39 +00:00
pierre
0987129993 Add 2.6.0 to 2.6.3 versions
git-svn-id: trunk@26206 -
2013-12-10 08:31:58 +00:00
pierre
cf175b28d1 Add TU_COMPILERDATE to ShowRunData
git-svn-id: trunk@26205 -
2013-12-10 08:27:13 +00:00
nickysn
9c86da1911 - rm the fwait after fstsw in fpc_exp_real. My own testing on a true i8087 shows
that fwait after fstsw appears to be unnecessary. On the other hand, using
  fnstsw, followed by fwait produces wrong results.

git-svn-id: trunk@26204 -
2013-12-10 00:38:28 +00:00
nickysn
775619ef8b * 8087/80287 fixes in fpc_exp_real
git-svn-id: trunk@26203 -
2013-12-10 00:02:20 +00:00
marco
67c21b3a5e * fix for #25402 One argument of GetICMProfileW missed an indirection
git-svn-id: trunk@26202 -
2013-12-09 18:19:31 +00:00
nickysn
d0a7522e1f + also init Default8087CW in DetectFPU
git-svn-id: trunk@26201 -
2013-12-08 22:39:48 +00:00
nickysn
180ddf2ddd + i8086 FPU detection code updated to also identify the FPU type (8087/287/387+)
and initialize the Test8087 global variable.

git-svn-id: trunk@26200 -
2013-12-08 20:50:52 +00:00
marco
a8671e550e * fix FPC_USE_LIBC for inotify and clock* functions, and always link librt when this unit is used under FPC_USE_LIBC.
make all building failed otherwise because fppkg seems to import unit linux somewhere. 

git-svn-id: trunk@26199 -
2013-12-08 20:23:09 +00:00