daniel
52458b965f
* ... and when writing too.
...
git-svn-id: trunk@7875 -
2007-06-30 20:43:15 +00:00
daniel
a90fe1dc41
* Add endian swapping for deflistsize and symlistsize.
...
git-svn-id: trunk@7874 -
2007-06-30 20:38:59 +00:00
daniel
935902de35
* Reals can need endian conversions too.
...
git-svn-id: trunk@7873 -
2007-06-30 19:48:27 +00:00
daniel
9b50dc572b
* Change rest of compiler to system unit swapendian routines.
...
- Remove endian swapping routines from cutils.
git-svn-id: trunk@7859 -
2007-06-30 08:13:46 +00:00
daniel
b7b45919d0
* Convert to system unit endian swap routines.
...
* Endian conversion should be done while reading only, not while writing.
git-svn-id: trunk@7858 -
2007-06-30 07:54:50 +00:00
daniel
e002e6b9f4
* Also execute setfirsttemp on non-Windows platforms. Fixes -O2 cycle on Linux.
...
git-svn-id: trunk@7848 -
2007-06-29 17:46:27 +00:00
Jonas Maebe
b99c1e9fed
* fixed calculation of offset of constant indexing of bitpacked arrays of
...
non-ordinal types (mantis #9174 )
git-svn-id: trunk@7847 -
2007-06-29 15:34:11 +00:00
daniel
75af9f2a4d
* Fixed another placed where chained paralocs where not being processed.
...
git-svn-id: trunk@7845 -
2007-06-29 06:33:12 +00:00
yury
f0e554caef
* Collect resource files only when program or library is compiled.
...
git-svn-id: trunk@7841 -
2007-06-28 11:16:51 +00:00
yury
4cc9bcd526
* Always strip DLLs when external linker (LD) is used.
...
git-svn-id: trunk@7840 -
2007-06-28 10:26:05 +00:00
daniel
62b6fcead8
* Fix operator count.
...
git-svn-id: trunk@7835 -
2007-06-27 20:31:58 +00:00
daniel
56880a75f9
* When adding the start offset of the parameters, process chained
...
paralocs too.
git-svn-id: trunk@7834 -
2007-06-27 20:28:45 +00:00
Jonas Maebe
26a4f693da
* more packed set operand size problems fixed (include/exclude, mantis
...
#9167 )
git-svn-id: trunk@7833 -
2007-06-27 19:50:09 +00:00
Jonas Maebe
b6ccf54ae9
* fixed error in register renaming in case the first changed instruction
...
is an "addl %reg2,%reg1" (was changed into "leal (%reg2,%reg1),%reg2",
now into "leal (%reg1,%reg1),%reg2")
git-svn-id: trunk@7832 -
2007-06-27 18:30:10 +00:00
Jonas Maebe
8caad93eaf
* fixed several problems with packed set operand sizes
...
* added LOC_CONSTANT to the list of allowed locations for the left
hand side of an in-node, so it doesn't get forced into a register
anymore in that case
git-svn-id: trunk@7831 -
2007-06-27 17:26:18 +00:00
yury
04147151e4
* Fixed stabs generation for DLLs by internal assembler (use RELOC_ABSOLUTE in all cases).
...
* Do not generate relocs by internal linker for sections which are not loaded in memory.
git-svn-id: trunk@7829 -
2007-06-26 22:51:21 +00:00
yury
11b56e2cc8
* Fixed previous commit: loop through all resources in .res file.
...
git-svn-id: trunk@7827 -
2007-06-26 18:08:06 +00:00
yury
ca81009e5e
* Properly handle .res files, which are not fully correct.
...
* Better error handling while working with resource files.
* Compile .rc files included in the main module before collecting all resources.
git-svn-id: trunk@7825 -
2007-06-26 17:41:24 +00:00
daniel
45832d4314
+ New hint; for exmaple int64:=longint+longint says "Converting the operands to
...
int64 before addition could prevent an overflow error."
git-svn-id: trunk@7817 -
2007-06-26 07:52:04 +00:00
daniel
504d845e86
* Consider conversion from integer to integer te_equal, if the base types
...
are equal and the range of the from type fits in the to type. I.e.
conversion from -10..10 to shortint is considered equal. This is correct
because in this case, the from type can be used wherever the to type is
used, i.e. the compiler never needs to do conversion at compile or run
time.
git-svn-id: trunk@7814 -
2007-06-25 20:57:21 +00:00
florian
70284da435
* allow <any ordinal>(class/interface) type casts likewise it is allowed for class references and pointers
...
git-svn-id: trunk@7811 -
2007-06-25 20:08:34 +00:00
florian
03951d793a
* don't try to range check ordconst nodes being actually classes
...
git-svn-id: trunk@7797 -
2007-06-24 19:27:22 +00:00
daniel
e542a502c6
* Prevent some operations between qwords and signed types.
...
git-svn-id: trunk@7796 -
2007-06-24 18:40:07 +00:00
florian
d50f869bbd
+ allow local const symbols to override class members in delphi mode
...
git-svn-id: trunk@7793 -
2007-06-24 15:14:47 +00:00
Jonas Maebe
62b9198b55
* fixed loading the address of class methods (mantis #9139 )
...
git-svn-id: trunk@7789 -
2007-06-24 12:11:08 +00:00
daniel
cd2880cbbd
- Because int_to_type handles qwords now, the trial and error to parse a constant
...
can be simplified.
git-svn-id: trunk@7787 -
2007-06-24 11:59:55 +00:00
florian
463fc20ecc
* return proper vardef value for wordbool, resolves #9125
...
git-svn-id: trunk@7778 -
2007-06-22 18:51:58 +00:00
Jonas Maebe
20a35f9701
* fixed public/export support for initialised variables/typed
...
constants (mantis #9113 )
git-svn-id: trunk@7772 -
2007-06-22 17:10:15 +00:00
yury
84306f80e9
* fixed tw8391.pp for i386.
...
git-svn-id: trunk@7768 -
2007-06-21 23:22:48 +00:00
yury
86d49c2a0c
* Activated safecall support for ARM CPU.
...
git-svn-id: trunk@7762 -
2007-06-21 17:32:35 +00:00
yury
d1c2f41c66
* Fixed passing variant parameters by value for ARM. It fixes tw7806.pp.
...
git-svn-id: trunk@7758 -
2007-06-21 15:06:43 +00:00
yury
5b5050a09c
* Fixed integer to single conversion for arm-wince. It fixes tw8055.pp test.
...
git-svn-id: trunk@7757 -
2007-06-21 14:08:58 +00:00
yury
206d027e9e
* for ARM CPU records must be aligned in stack depending of record size to prevent misaligned error when the record is passed as parameter in registers. It fixes tcalext* tests for ARM.
...
git-svn-id: trunk@7749 -
2007-06-20 20:31:06 +00:00
yury
38b8731ba0
* Restored relocs generation for dlls by internal linker. It fixes bug #9048 .
...
* It is possible to generate relocs for exe with internal linker using -WB switch.
git-svn-id: trunk@7743 -
2007-06-20 15:47:10 +00:00
yury
93e72c2079
* Fixed bug introduced by r7667. Do not release pushed return value be callee for cdecl on win32. It fixes error3 of bug #9098 .
...
git-svn-id: trunk@7734 -
2007-06-19 21:06:44 +00:00
yury
a4dfa3b4fd
* fixed bug #9107 : procedure which have pushed parameters in its body fails if only -OoSTACKFRAME switch is used.
...
+ test.
git-svn-id: trunk@7731 -
2007-06-19 12:09:11 +00:00
yury
ff3bd9fa6f
* fixed compilation for arm targets.
...
git-svn-id: trunk@7729 -
2007-06-18 23:38:54 +00:00
yury
3b7e458f02
* Properly set location of float return value if it is passed as var parameter (it is always happens for safecall functions). It fixes bugs #8523 and #8977 .
...
+ test.
git-svn-id: trunk@7728 -
2007-06-18 23:23:46 +00:00
yury
9bbff8042f
* Set return value of safecall procedure if implicit try/finally blocks are disabled.
...
git-svn-id: trunk@7727 -
2007-06-18 21:40:33 +00:00
yury
9844174e5e
* It is needed to destroy exception object in safecall procedure as well.
...
git-svn-id: trunk@7722 -
2007-06-18 17:26:15 +00:00
yury
78fe68859b
* Pop the last exception object in safecall procedure.
...
git-svn-id: trunk@7721 -
2007-06-18 16:12:49 +00:00
yury
a7d1508959
* Fixed safecall procedures by generating implicit try/finally and setting correct return value if exception was occurred or not. Now safecall is fully Delphi compatible.
...
git-svn-id: trunk@7720 -
2007-06-18 14:26:08 +00:00
marco
569d7e1138
* fixed deprecated
...
git-svn-id: trunk@7719 -
2007-06-17 20:40:47 +00:00
marco
4200ae288d
* fixed deprecated
...
git-svn-id: trunk@7716 -
2007-06-17 20:28:06 +00:00
florian
c1640b078b
* create init rtti for fpc_copy instead of full rtti
...
git-svn-id: trunk@7714 -
2007-06-17 15:31:06 +00:00
florian
72d49f3033
* reverted r7675
...
git-svn-id: trunk@7702 -
2007-06-17 13:17:44 +00:00
tom_at_work
3e7a771b69
* fix compilation
...
git-svn-id: trunk@7692 -
2007-06-16 19:44:02 +00:00
florian
37bd49692e
* proper fix for 8481 et. al.
...
git-svn-id: trunk@7691 -
2007-06-16 19:03:53 +00:00
daniel
92975a7c99
* Remove accidentally enabled winlikewidestring.
...
git-svn-id: trunk@7690 -
2007-06-16 18:27:00 +00:00
florian
01a4737b10
+ local symbols can hide class members in delphi mode
...
git-svn-id: trunk@7675 -
2007-06-15 21:41:55 +00:00