Commit Graph

10628 Commits

Author SHA1 Message Date
michael
5d1c98237b * Fixed all known errors
git-svn-id: trunk@10857 -
2008-05-02 09:36:38 +00:00
Jonas Maebe
0fb87b67b6 * changed string argument of tppufile.putstring into a constant
git-svn-id: trunk@10852 -
2008-05-01 12:34:47 +00:00
Jonas Maebe
3d2630c661 * fixed wrong location.size (sign) for x86's in_abs_long + test
git-svn-id: trunk@10850 -
2008-05-01 11:47:32 +00:00
Jonas Maebe
2f25c4422b * export names aren't mangled under OS/2 either (follow-up
to r10836, see proc_get_importname in pdecsub.pas)

git-svn-id: trunk@10838 -
2008-04-29 19:08:02 +00:00
yury
c79fe114a3 * DLL export names are not mangled on Windows (bug #11228).
git-svn-id: trunk@10836 -
2008-04-28 20:08:19 +00:00
Jonas Maebe
3b72bf98b0 * fixed short/smallint add/sub peephole in case of operations with
only one operand + documented it by example (mantis #11223)
    

git-svn-id: trunk@10828 -
2008-04-27 21:01:52 +00:00
yury
60ecb64346 * Fixed loading of single floating point values from memory to register for ARM hardfloat.
git-svn-id: trunk@10826 -
2008-04-27 20:47:52 +00:00
Jonas Maebe
2413d4b43f * fixed constant evaluation check for negvalue+posvalue (mantis #11216)
git-svn-id: trunk@10808 -
2008-04-26 21:22:08 +00:00
Tomas Hajny
554b45d18e + probability of issues with long pathnames not fitting DOS command line length limits decreased by patch by Giulio Bernardi
git-svn-id: trunk@10799 -
2008-04-26 05:09:56 +00:00
Tomas Hajny
e64c9a152a * fix for doubled slashes in paths by Giulio Bernardi
git-svn-id: trunk@10796 -
2008-04-26 04:46:59 +00:00
yury
3e1e6d25f0 * Fixed overload choosing by arm native compiler.
git-svn-id: trunk@10793 -
2008-04-25 20:14:56 +00:00
yury
d26d792e7b * Do not align TTypeInfo.Name field in enumdef_rtti since TTypeInfo record is defined with {$PACKRECORDS 1}. It fixes tw8660 for ARM.
git-svn-id: trunk@10767 -
2008-04-23 12:07:20 +00:00
yury
b9431c876e * More complete fix for bug #10515. Thanks to Jonas for suggestion.
* Fixed warnings in tcnvint6.pp

git-svn-id: trunk@10765 -
2008-04-23 08:22:27 +00:00
yury
88597d23c5 * Fixed tcgarm.a_load_ref_reg to load word values from location with alignment 2 using unaligned load.
git-svn-id: trunk@10754 -
2008-04-22 08:46:19 +00:00
yury
adaeb0fc73 * Strip result if inc/dec is performed in register on value less than 32-bit on ARM. (bug #10515)
* Updated tcnvint6 to test this issue.

git-svn-id: trunk@10753 -
2008-04-22 08:45:50 +00:00
yury
ba081ab36f * Improved finding of resource compiler during cross-compilation.
git-svn-id: trunk@10745 -
2008-04-21 11:13:13 +00:00
tom_at_work
553b524c0a * also fix rtti for named enumerations
* updated test program to test both named and unnamed enumerations

git-svn-id: trunk@10741 -
2008-04-20 20:02:23 +00:00
florian
427d35e816 * updated also 2006 copyright strings
git-svn-id: trunk@10734 -
2008-04-20 08:35:06 +00:00
tom_at_work
30cb2b088b * also updated compiler copyright date to 2008 in the translations that translated the affected string
git-svn-id: trunk@10731 -
2008-04-19 23:16:56 +00:00
tom_at_work
50b98f1177 * updated compiler copyright date to 2008
git-svn-id: trunk@10730 -
2008-04-19 23:03:02 +00:00
tom_at_work
d84e8adc77 further fix for tw10233 on powerpc(64) platforms:
* do not overwrite left.location.register in second_int_to_bool() but use temp register when converting input value to C style truth values (i.e. 0,-1). With -Or enabled this register will be reused not containing the correct value anymore.

git-svn-id: trunk@10729 -
2008-04-19 22:47:41 +00:00
tom_at_work
20737f0ac1 fix webts/tw10033 on ppc64:
* correctly write rtti for enumerations (missing alignment instructions on CPUs requiring proper alignment, breaking on architectures with 64 bit pointers)
* fix hardcoded offsets in fpc_write_text_enum
* updated example program

git-svn-id: trunk@10728 -
2008-04-19 22:06:18 +00:00
tom_at_work
ee76679326 * cleaned up r10705 for ppc, improved comments
git-svn-id: trunk@10721 -
2008-04-19 19:54:09 +00:00
florian
9595256ff5 * cleaned up overleft of 10710
git-svn-id: trunk@10712 -
2008-04-19 11:38:54 +00:00
florian
4e7e0f620a * first try to fix #10863 (don't do SSL in case left is already handled in an assignment node)
git-svn-id: trunk@10710 -
2008-04-19 09:23:45 +00:00
Jonas Maebe
263984f874 * fixed a_load_ref_reg for OS_S8->OS_16 for ppc32, ppc64 and sparc
(and on ppc64 also for OS_S8->OS_32 and OS_S16->OS_32)
  * adapted tcnvint6 to check for ppc64 OS_S16->OS_32 conversion
    (the old comparison was performed using a 32 bit compare and
     therefore did not notice the wrong result)

git-svn-id: trunk@10705 -
2008-04-18 20:04:55 +00:00
yury
9222540e84 * Small optimization.
git-svn-id: trunk@10692 -
2008-04-18 11:46:39 +00:00
yury
95ea5d87dd * Fixed int to int conversion in ARM code generator.
+ Added new test to detect more bugs in int to int conversion.

git-svn-id: trunk@10691 -
2008-04-18 11:31:12 +00:00
yury
b70bf05ad5 * I hope it's proper fix for r10688.
git-svn-id: trunk@10690 -
2008-04-18 10:51:56 +00:00
yury
e71d631c24 * Fix for tw10233 for all CPUs.
git-svn-id: trunk@10688 -
2008-04-18 07:38:25 +00:00
yury
ec943198fd * Properly fill treference.alignment when variable is loaded by tcgloadnode. It allows code generator to insert unaligned handling if needed.
* Improved generic a_load_ref_reg_unaligned if ref alignment is 2.
* Improved unaligned load/store of register for ARM.
* It fixes passing records by value on ARM.
+ New test.

git-svn-id: trunk@10681 -
2008-04-16 23:01:20 +00:00
yury
24be2c31f7 * Fixed tw11027.
* Updated tcnvint2 to new rules.

git-svn-id: trunk@10677 -
2008-04-16 08:34:30 +00:00
yury
771479e65c * Improved fix for bug #10233 for better Delphi compatibility and efficiency:
- Explicit typecasts like LongBool(byte_value) do not change ordinal value.
  - Explicit typecasts like ByteBool(longint_value) do not change ordinal value and can lead to data loss if longint_value is outside of ByteBool range.
  - Explicit typecasts like ByteBool(LongBool) handle type ranges correctly.
  - Updated test tw10233.pp. It is passed by Delphi as well.

git-svn-id: trunk@10672 -
2008-04-15 22:19:29 +00:00
yury
cf235145cb * Fixed a_load_reg_reg for arm.
* Fixed sign/zero-extension in second_int_to_bool for all CPUs. x86 and pppc were not affected by this bug, but I fixed it for all CPUs for consistency.
* cg/tcnvint1 is passed on arm now.

git-svn-id: trunk@10669 -
2008-04-15 20:44:27 +00:00
Jonas Maebe
a3b877247c * don't perform call/jmp into push/jmp in case we're generating
pic, as that optimization is invalid in that case

git-svn-id: trunk@10655 -
2008-04-13 17:03:07 +00:00
yury
348e30958e * If object has VMT, properly align whole object instance if target CPU requires alignment. It fixes usage of static object instances created as var or const on CPUs which require alignment.
* Partially reverted Micha's fix in revs 10544,10546,10548, because it is not needed anymore.

git-svn-id: trunk@10648 -
2008-04-13 15:36:44 +00:00
Jonas Maebe
76e23fc54e * fixed internalerror when having to choose between different
overloads in case there is only one variant parameter and
    one of the candidates has more hidden parameters than the
    other at the start (e.g. function(para):char and
    function(para):shortstring, depending on in which order the
    hidden shortstring result and para are processed, mantis
    #11139)

git-svn-id: trunk@10643 -
2008-04-13 10:21:26 +00:00
Jonas Maebe
81ad9ea6e8 * fixed typo in r10602 causing the names of all record structures of
classes to be replaced with "sym_name" in the debuginfo

git-svn-id: trunk@10642 -
2008-04-13 09:36:31 +00:00
florian
951a202e5d * fix by Jan Bruns for #11042: improves reading of references on arm
git-svn-id: trunk@10625 -
2008-04-10 19:47:49 +00:00
Jonas Maebe
42a4684f60 * use global label to refer enum subrange type for setdefs
on systems without tf_dwarf_only_local_labels to avoid
    potential problems when using the set type in a separate
    unit

git-svn-id: trunk@10619 -
2008-04-09 08:03:55 +00:00
peter
95aaa7a74b * reorder code after r10602 so it is more clear
git-svn-id: trunk@10608 -
2008-04-06 12:47:05 +00:00
Jonas Maebe
07b3e11e2b * fixed "set of enumeration" for gdb 6.7/6.8
git-svn-id: trunk@10603 -
2008-04-05 17:05:34 +00:00
Jonas Maebe
39fa81d40e * fixed stabs debug info for webtbs/tw9766 again
git-svn-id: trunk@10602 -
2008-04-05 12:29:07 +00:00
Jonas Maebe
cd28ce9dfc * only write set elementdef information if there is an elementdef
(can be absent for empty sets)

git-svn-id: trunk@10600 -
2008-04-03 19:31:09 +00:00
peter
f7737bebda * fix parameter allocation for left to right calling conventions
git-svn-id: trunk@10597 -
2008-04-02 08:05:31 +00:00
Jonas Maebe
55bd5cedb4 - removed unused writing_def_dwarf field
git-svn-id: trunk@10585 -
2008-03-29 16:37:41 +00:00
Jonas Maebe
7e4750ac50 * workaround for default property constant value limitations
git-svn-id: trunk@10575 -
2008-03-28 10:15:33 +00:00
florian
c83af469d0 * new translations from Karl-Michael Schindler
git-svn-id: trunk@10567 -
2008-03-27 10:37:34 +00:00
peter
a9c9ca0115 * set elf flags for soft float on arm
git-svn-id: trunk@10560 -
2008-03-25 16:15:15 +00:00
Jonas Maebe
99e1e85447 * fixed execution of finalization section of smart linked shared
libraries on linux (mantis #6822)
  * fixed execution of library finalization sections on darwin
    (previously only the finalization section of the library
     compilation unit itself was executed, now those of the units
     used by the library are also executed)

git-svn-id: trunk@10554 -
2008-03-24 22:19:21 +00:00