Commit Graph

42256 Commits

Author SHA1 Message Date
florian
caba4a2050 + test for #24410 so it does not popup again
git-svn-id: trunk@26811 -
2014-02-18 19:30:42 +00:00
sergei
489b23cecd * Made TStartupInfo type common for win32 and win64 and updated as suggested by Mantis #23074.
* Deprecated StartupInfo variable because it is not there for Delphi compatibility (Delphi apparently does not have such variable in interface of its System unit), and we don't have other reasons to export non-portable stuff.

git-svn-id: trunk@26810 -
2014-02-18 16:49:08 +00:00
Jonas Maebe
5729c9c8ef * fixed shl/shr with constant value>=32 on 64 bit platforms
git-svn-id: trunk@26809 -
2014-02-18 16:46:36 +00:00
Jonas Maebe
7033ddf679 * converted tshshrnode to thlcgobj
o make sure that the return register has the correct size

git-svn-id: trunk@26808 -
2014-02-18 16:46:29 +00:00
sergei
5e762cc6ea * Second part of 64-bit Windows fixes and updates from Mantis #23074.
git-svn-id: trunk@26807 -
2014-02-18 09:26:47 +00:00
sergei
83deae45b8 * First part of 64-bit Windows fixes from Mantis #23074.
git-svn-id: trunk@26806 -
2014-02-18 02:10:35 +00:00
sergei
53f3bc052d - Do not compile non-SEH parts of exception handling if SEH is used.
git-svn-id: trunk@26805 -
2014-02-18 01:54:15 +00:00
svenbarth
1e48c7c930 Now that spilling correctly works on m68k we definitely need to store/restore the registers inside the FpSyscall functions. Fixes quite some tests.
* rtl/linux/m68k/syscall.inc:
    Remove "assembler" modifier and instead use an inline asm block with an accurate list of modified registers so that the compiler correctly stores/restores them

git-svn-id: trunk@26804 -
2014-02-16 21:21:40 +00:00
florian
6e1bf4d040 * properly simplify not(<const. cbool>), resolves #25255
git-svn-id: trunk@26803 -
2014-02-16 20:20:58 +00:00
florian
d185122799 * optimize type conversions away if bits has been masked by a previous and operation
git-svn-id: trunk@26802 -
2014-02-16 18:40:35 +00:00
florian
ac85d44899 * do OpCmp2OpS optimization also if after cmp follows an appropriate mov
git-svn-id: trunk@26801 -
2014-02-16 18:39:55 +00:00
michael
c3a0d0ece3 * Applied patch from Luiz Americo with some optimizations. (Bug ID 25745)
git-svn-id: trunk@26800 -
2014-02-16 18:14:00 +00:00
florian
150363c09e * thlcgobj.a_load_regconst_subsetreg_intern takes care if the whole register is modified
git-svn-id: trunk@26799 -
2014-02-16 15:13:43 +00:00
florian
07579cf0b7 * cleanup
git-svn-id: trunk@26798 -
2014-02-16 13:15:16 +00:00
florian
3dddd01309 * do not location_force_reg in tcgshlshrnode.second_integer if left is already in a register
git-svn-id: trunk@26797 -
2014-02-16 13:15:13 +00:00
svenbarth
ddb78fefdc Add a modeswitch for type helpers as discussed in core on 24th October 2013. It is disabled by default in all modes (afterall type helper support in Delphi started only beginning with XE3)
+ globtype.pas: add new modeswitch to modeswitch enum and name array
* ptype.pas & pdecobj.pas: check for new modeswitch instead of modeswitch class
* ppu.pas: increase ppu version as we've added a new modeswitch which requires correctly compiled units

* adjusted tests to enabled the modeswitch when necessary
+ added three new tests that check for correct functionality of modeswitch typehelpers

git-svn-id: trunk@26796 -
2014-02-16 12:58:24 +00:00
sergei
da910d654c + SPARC: two more peephole optimizations
git-svn-id: trunk@26795 -
2014-02-16 12:29:31 +00:00
florian
cbefdcf887 * patch by Martin Friebe to avoid wrong debugger output, resolves #25584
git-svn-id: trunk@26794 -
2014-02-16 10:11:20 +00:00
nickysn
f04acb2db7 * parse the memory model command line options and define the FPC_MM_* macro
in the first pass of reading parameters, so that #ifdefs based on the memory
  models can be used in fpc.cfg

git-svn-id: trunk@26793 -
2014-02-16 09:59:21 +00:00
florian
6e32f8ee8f * patch by Bernd which fixes InterLockedxxx functions on ARMv4T, resolves #25518
git-svn-id: trunk@26792 -
2014-02-16 09:10:00 +00:00
florian
1882ab8d5a * i8086 has no cpu_capabilites
git-svn-id: trunk@26791 -
2014-02-16 08:27:29 +00:00
florian
0d6cc46a5e + CPU type corei
git-svn-id: trunk@26790 -
2014-02-16 08:27:27 +00:00
florian
84f7f5f934 * popcnt has a separate cpuid flag so we should separate it from sse
git-svn-id: trunk@26789 -
2014-02-16 08:27:24 +00:00
florian
711c533573 * moved test because it tests a certain functionalty and was made solely to test strutils.IsWild
git-svn-id: trunk@26788 -
2014-02-15 15:32:50 +00:00
michael
4378063247 * Use factory for fielddefs
git-svn-id: trunk@26787 -
2014-02-15 10:48:58 +00:00
michael
196d8cee3d * Use factory for fielddefs
git-svn-id: trunk@26786 -
2014-02-15 10:48:52 +00:00
michael
56280f3be9 * Use factory for fielddefs
git-svn-id: trunk@26785 -
2014-02-15 10:48:45 +00:00
michael
d7d4035252 * Use factory for fielddefs
git-svn-id: trunk@26784 -
2014-02-15 10:48:35 +00:00
michael
60056b260d * Use factory for fielddefs
git-svn-id: trunk@26783 -
2014-02-15 10:48:28 +00:00
michael
7b460e0e5e * Use factory for fielddefs
git-svn-id: trunk@26782 -
2014-02-15 10:48:22 +00:00
michael
b1fc595d17 * Use TFieldDef descendent to implement updateable enums
git-svn-id: trunk@26781 -
2014-02-15 10:42:08 +00:00
michael
948f40f24b * Use TFieldDef descendent
git-svn-id: trunk@26780 -
2014-02-15 10:41:45 +00:00
michael
1db294bc19 * Add convenience method for adding fielddefs
git-svn-id: trunk@26779 -
2014-02-15 10:37:57 +00:00
michael
feed8adfa6 * Correct use of FieldDefs factory
git-svn-id: trunk@26778 -
2014-02-15 10:27:17 +00:00
michael
53ba347851 * Correct use of FieldDefs factory
git-svn-id: trunk@26777 -
2014-02-15 10:26:33 +00:00
michael
882eca6b09 * Correct use of FieldDefs factory. Bind FieldDefs to fields.
git-svn-id: trunk@26776 -
2014-02-15 10:23:35 +00:00
florian
ad7a3b2dbf * explicitly type cast constants so the compiler does not use smaller types if an fpu instruction set is selected which does not support the highest precision type
git-svn-id: trunk@26775 -
2014-02-14 21:26:54 +00:00
florian
75a13f7e47 * do not allow VCOMISD/VCOMISS to use a memory location as target
git-svn-id: trunk@26774 -
2014-02-14 21:26:51 +00:00
michael
ed25721ff0 * Use TSQLDBParams instead of TParams
git-svn-id: trunk@26773 -
2014-02-14 15:39:41 +00:00
michael
79b23f8c6b * Moved (Commit,RollBack)[Retaining] up one level, avoids typecasts
git-svn-id: trunk@26772 -
2014-02-14 15:19:09 +00:00
michael
a9f1a8ae0b * Introduced factory possibility for TParams, TFieldDefs
git-svn-id: trunk@26771 -
2014-02-14 15:00:51 +00:00
michael
8c5e1550a5 * Re-applied patch from Laco./src/sqldb/sqldb.pp
git-svn-id: trunk@26770 -
2014-02-14 13:37:32 +00:00
michael
a0f9e3fefd * Update using TCustomSQLStatement instead of TSQLQuery
git-svn-id: trunk@26769 -
2014-02-14 13:32:06 +00:00
michael
44c7b8fd16 * Published TIndexDef properties
git-svn-id: trunk@26768 -
2014-02-14 13:19:40 +00:00
michael
b9eb560dde * Some cosmetic changes, added SQLConnection/SQLTransaction to avoid typecasts everywhere
git-svn-id: trunk@26767 -
2014-02-14 12:58:00 +00:00
michael
f3ca850469 * Started support of extended PQ types, starting with enum
git-svn-id: trunk@26766 -
2014-02-14 12:08:48 +00:00
lacak
9c2ffc30ee fcl-db:
- introduce ESQLDatabaseError (with fields: ErrorCode and SQLState) as direct descendant of EDatabaseError and an ancestor for all SQLConnection specific exceptions (like EPQDatabaseError, EIBDatabaseError, EODBCException, etc.)
- add overriden method PSGetUpdateException to create EUpdateException with ErrorCode taken from this new ESQLDatabaseException
- adapted some connections to use this new TSQLDatabaseError
Bug #23798

git-svn-id: trunk@26765 -
2014-02-14 11:43:54 +00:00
michael
4154f531ff * Fixed bug ID #22611
git-svn-id: trunk@26764 -
2014-02-13 16:31:19 +00:00
sergei
da019b889c * i386-freebsd shared library startup:
* Don't mess with FPU control word, libraries should leave it alone.
  * Don't call FPC_LIB_EXIT from haltproc, unit finalization is performed before haltproc.
  + non-executable stack marker.

git-svn-id: trunk@26763 -
2014-02-13 14:45:21 +00:00
michael
e65fd31b0b * Create key when writing (fix bug ID #25483)
git-svn-id: trunk@26762 -
2014-02-13 14:22:48 +00:00