florian
68f1a51164
* set PIC defines earlier, resolve #25788
...
git-svn-id: trunk@26924 -
2014-03-02 15:35:08 +00:00
Károly Balogh
1d5f74fae0
m68k implementation of g_save_registers and g_restore_registers using movem.l
...
git-svn-id: trunk@26923 -
2014-03-02 14:58:05 +00:00
nickysn
ae28ecd5f8
* changed the for loop counters in the resource string helper routines to be
...
nativeint instead of longint (generates more efficient code on i8086)
git-svn-id: trunk@26922 -
2014-03-02 13:42:30 +00:00
nickysn
5242ed7864
* changed TResStrInitTable.Count and TWStrInitTablesTable.Count to nativeint
...
git-svn-id: trunk@26921 -
2014-03-02 13:27:59 +00:00
nickysn
49b65fedd9
* TResourceStringTableList.Count type changed from ptrint to nativeint. Both
...
types are the same on almost all platforms. The only difference is on i8086,
where ptrint changes according to the memory model, while nativeint stays
16-bit. In the compiler, the count is emitted with Tai_const.Create_pint,
which also stays 16-bit in all memory models, so the correct corresponding
type in the rtl is nativeint.
git-svn-id: trunk@26920 -
2014-03-02 12:47:32 +00:00
nickysn
0d1342a791
* don't call FinalizeHeap from InternalExit if FPC_NO_DEFAULT_HEAP is defined.
...
This reduces i8086-msdos executable sizes by 1.5-1.7k depending on the memory
model.
git-svn-id: trunk@26919 -
2014-03-02 11:38:11 +00:00
Károly Balogh
8730b1bf45
cleaned up g_proc_exit, optimized generated code and also added some comments about possible ABI variations. the changes also fix two tests on my system related to cdecl procedures
...
git-svn-id: trunk@26918 -
2014-03-01 23:52:00 +00:00
nickysn
65fe978b71
* various shortstring index variables changed from longint to sizeint (generates
...
more efficient code on i8086)
git-svn-id: trunk@26917 -
2014-03-01 21:44:08 +00:00
marco
2d9aa35d22
* now also stdconv and convutils removed from Makefile.fpc
...
git-svn-id: trunk@26916 -
2014-03-01 21:07:36 +00:00
marco
48e4555c12
* Removed some redundant rules
...
git-svn-id: trunk@26915 -
2014-03-01 21:06:16 +00:00
Károly Balogh
bd4cc3b8f3
cleaned up, reindented, simplified and allowed some minor optimizations in tcg64f68k
...
git-svn-id: trunk@26914 -
2014-03-01 18:25:05 +00:00
nickysn
73e6ffe675
* the TableCount and InitCount fields in the INITFINAL table changed to
...
nativeint (generates smaller and more efficient code on i8086)
git-svn-id: trunk@26913 -
2014-03-01 14:33:10 +00:00
Jeppe Johansen
95589fb1e2
Apply DataMov2Data to MLA and MLS too. Those have over 4 operands.
...
git-svn-id: trunk@26912 -
2014-03-01 14:21:04 +00:00
nickysn
b3e6248547
* define PNativeInt and PNativeUint as ^NativeInt and ^NativeUint, instead of
...
PPtrInt/PPtrUint, because on i8086 in the far data memory models the pointer
size is different than the native int size.
git-svn-id: trunk@26911 -
2014-03-01 13:23:32 +00:00
nickysn
b672bc754a
- rm references to system_i386_darwin and system_i386_iphonesim from
...
tcg8086.init_register_allocators
git-svn-id: trunk@26910 -
2014-03-01 12:52:31 +00:00
nickysn
a31b7d485f
* tcg8086.init_register_allocator: instantiate trgintcpu instead of trgcpu for
...
the integer registers in all cases
git-svn-id: trunk@26909 -
2014-03-01 12:50:26 +00:00
nickysn
6e9083aa84
* fixed inc/dec with constant truncating the high parts of the constant on
...
16-bit and 8-bit CPUs
git-svn-id: trunk@26908 -
2014-03-01 10:33:14 +00:00
nickysn
fc29e10349
* allow the use of inc/dec when adding/subtracting 32 or 64-bit constants with
...
the highest word equal to one and the lower parts zero
git-svn-id: trunk@26907 -
2014-03-01 10:25:46 +00:00
marco
17330b94e3
* Patch from Ocean, Mantis #25798
...
git-svn-id: trunk@26906 -
2014-02-28 15:19:08 +00:00
marco
14590fb859
( Patch from Ocean, mantis #25799 . DISPID_AMBIENT_* consts and IPerPropertyBrowsing..
...
git-svn-id: trunk@26905 -
2014-02-28 15:18:22 +00:00
michael
68c1607ecc
* Use resourcestring
...
git-svn-id: trunk@26904 -
2014-02-28 15:02:21 +00:00
nickysn
30b1aa1d96
* document the known delphi xe3 64-bit test failures
...
git-svn-id: trunk@26903 -
2014-02-28 14:08:50 +00:00
reiniero
acd53636ed
fcl-db: dbtestframework, Oracle:
...
* Fix for Oracle not accepting string literals in INSERT INTO statement for BLOB fields.
Use hex encoding instead.
Note: probably will have to review BLOB .AsString code in Oracle connector as well
git-svn-id: trunk@26902 -
2014-02-28 10:04:51 +00:00
reiniero
f3b7a7ad2e
fcl-db: dbtestframework, Oracle:
...
* Fix for Oracle can't handle time hours > 23:
ORA-01850: hour must be between 0 and 23
git-svn-id: trunk@26901 -
2014-02-27 16:59:39 +00:00
reiniero
2d8ea638b3
fcl-db: dbtestframework, Oracle:
...
* ftLargeint requires NUMBER(19,0) instead of NUMBER(18,0)/NUMERIC(18,0) in order to cater for entire largeint range:
see
http://docs.oracle.com/cd/B19306_01/server.102/b14232/apb.htm
* Oracle ftdate/ftdatetime/ftTime require date/timestamp literals:
e.g.
DATE '2000-01-01',
TIMESTAMP '0001-01-01 10:45:12.000',
See
SQL Reference 10g Release 2
http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements003.htm#BABGIGCJ
git-svn-id: trunk@26900 -
2014-02-27 16:45:31 +00:00
lacak
54f0f58f63
fcl-db: bufdataset:
...
- Introduces RecNo property at TBufIndex level. It enables TBufIndex descendants implement efficient way of getting/setting RecNo.
It also moves "index dependant" code from TBufDataset to TBufIndex and let TBufDataset use methods of TBufDataset.
- Introduces also GetRecord method at TBufIndex level, which provides "index scaning/walking" for TBufDataset
git-svn-id: trunk@26899 -
2014-02-27 15:12:29 +00:00
sergei
f69e6ec389
* Some fixes to NASM writer:
...
* Correctly output names of sec_user sections and sec_threadvar on Windows targets
* Use ALIGNB directive to align without warnings in bss and alike sections.
* Do not output 'begin/end asmlist x' for empty asmlists.
git-svn-id: trunk@26898 -
2014-02-27 13:37:03 +00:00
reiniero
f77060135c
fcl-db: cosmetic
...
git-svn-id: trunk@26897 -
2014-02-27 13:27:43 +00:00
Jonas Maebe
9315c121d4
- removed cwstring again, it's not needed and breaks compilation of the test
...
on non-Unix platforms
git-svn-id: trunk@26896 -
2014-02-27 11:54:48 +00:00
marco
35909d1939
* patch from mantis #25790 SHGDN SHCONTF and SFGAO constants.
...
git-svn-id: trunk@26895 -
2014-02-27 09:55:08 +00:00
michael
7593696a03
* Fixed all tests to be D2009+ compatible
...
git-svn-id: trunk@26894 -
2014-02-27 09:07:56 +00:00
michael
6d00c13957
* Forgot to commit (bug id 0025793)
...
git-svn-id: trunk@26893 -
2014-02-27 08:32:34 +00:00
nickysn
640f6ea300
* return nil in SysTinyReallocMem, when the size parameter is 0
...
git-svn-id: trunk@26892 -
2014-02-26 23:31:50 +00:00
michael
03415e1cac
* Added class constructor/destructor, fixed set of subrange (bug ID 25793)
...
git-svn-id: trunk@26891 -
2014-02-26 22:48:14 +00:00
nickysn
858efec84e
* handle SysTinyFreeMem(nil) properly (i.e. succeed silently, without writing to
...
nil pointer memory)
git-svn-id: trunk@26890 -
2014-02-26 22:01:50 +00:00
nickysn
c00b56ae49
* added the -w-orphan-labels parameter to all tasminfo instances for nasm.
...
The -w-oprhan-labels option prevents the 'label alone on a line without a
colon might be in error' warning.
git-svn-id: trunk@26889 -
2014-02-26 20:54:38 +00:00
nickysn
90c04fef80
+ added nil pointer assignment test at the end of program for i8086-msdos
...
(works only for small and medium memory model)
git-svn-id: trunk@26888 -
2014-02-26 19:28:57 +00:00
svenbarth
47b4a52c8f
Also respect the supplied version suffix when printing the compiler path name using -PB. Fixes Mantis #25791
...
* compiler/utils/fpc.pp:
also apply the versionstr suffix to ppcbin if versionstr is set like is done when really executing the compiler
git-svn-id: trunk@26887 -
2014-02-26 19:13:06 +00:00
sergei
46f8e78d1f
+ Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386.
...
* Change MIPS jump tables in PIC mode to use gp-relative constants, making them ABI-compliant and not requiring dynamic relocations.
git-svn-id: trunk@26886 -
2014-02-26 14:54:47 +00:00
sergei
31d160aaf5
* x86: clean up and place jump tables into sec_rodata on all targets. Effectively it does not change anything, because sec_rodata with relocations still go into writable data at assembler level.
...
git-svn-id: trunk@26885 -
2014-02-26 11:06:22 +00:00
reiniero
1bd35f5655
fcl-db: dbtestframework:
...
* Fix Oracle tests erroring creating FPDEV_FIELD: no support for BIGINT datatype; substitute NUMERIC(18,0) as is done for Firebird.
git-svn-id: trunk@26884 -
2014-02-26 11:04:18 +00:00
nickysn
be879dde19
* added align=16 to the _NULL segment to ensure it's always located at DS:0000
...
git-svn-id: trunk@26883 -
2014-02-26 00:32:54 +00:00
nickysn
888ecdaee4
* fixed the type conversions of the 'and' operator to be Delphi compatible. Fixes Mantis #25179
...
git-svn-id: trunk@26882 -
2014-02-25 18:06:29 +00:00
michael
b32d5a49fa
* Patch from Ocean to fix range check, and map Ansistring functions to normal functions
...
git-svn-id: trunk@26879 -
2014-02-25 11:37:22 +00:00
michael
9faea4e757
* Fixed test so the same result as in Delphi
...
git-svn-id: trunk@26877 -
2014-02-25 10:35:39 +00:00
michael
e28824465f
* Fix bug #25720
...
git-svn-id: trunk@26876 -
2014-02-25 10:09:27 +00:00
michael
48eacbae41
* Fixed bug (actually feature) in 23645
...
git-svn-id: trunk@26875 -
2014-02-25 09:19:32 +00:00
michael
921c785cc7
* Fixed example so it actually runs (patch by Joao Paulo Schwarz Schuler, bug ID #25768 )
...
git-svn-id: trunk@26874 -
2014-02-25 09:09:43 +00:00
michael
aac74f4d0a
* Patch from Inoussa Ouedraogo to make assigning widechar to variant Delphi 2009+ compatible (Bug ID 25719)
...
git-svn-id: trunk@26873 -
2014-02-25 08:53:03 +00:00
marco
d9df0ff9a8
* fixed typo (no space between serial and \ ) and regenned with a fpcmake that is NOT 3 years old.
...
git-svn-id: trunk@26872 -
2014-02-25 08:21:19 +00:00