Commit Graph

10833 Commits

Author SHA1 Message Date
yury
6daceb38f6 * Fixed unreachable code warnings.
git-svn-id: trunk@11440 -
2008-07-23 09:55:44 +00:00
yury
cf7390ea81 * Fixed 'mixed signed/unsigned' and pointer conversion warnings.
git-svn-id: trunk@11439 -
2008-07-23 09:36:07 +00:00
yury
5548824859 * Removed/ifdefed/commented unused local variables.
git-svn-id: trunk@11438 -
2008-07-23 09:22:47 +00:00
yury
e25713515b * Fixed memory leak.
git-svn-id: trunk@11437 -
2008-07-23 08:59:25 +00:00
yury
d5a3a28379 * Set PE_FILE_LARGE_ADDRESS_AWARE flag for win64 executables to allow access more than 2GB of memory.
* Fixed $setpeflags directive. Flags should be set in main PE header. LoaderFlags in optional header are obsolete.

git-svn-id: trunk@11433 -
2008-07-22 11:53:55 +00:00
yury
fcceb9cfa1 * Removed/ifdefed/commented unused local variables.
git-svn-id: trunk@11430 -
2008-07-20 23:00:31 +00:00
yury
efb280e0e9 * Use system_wince in all places.
git-svn-id: trunk@11429 -
2008-07-20 22:39:19 +00:00
yury
0e17d9e4d9 * Use system_wince instead of [system_arm_wince,system_i386_wince].
git-svn-id: trunk@11426 -
2008-07-20 22:22:57 +00:00
yury
22df9855d9 * For some unknown reason WM 6.1 requires .idata section to be read only. Otherwise it refuses to load DLLs greater than 64KB. Earlier versions of WinCE load DLLs regardless of .idata flags.
git-svn-id: trunk@11421 -
2008-07-20 20:28:37 +00:00
marco
97cf173578 * Removed the bootstrapping related charset.pas, and merged one minor fix from it to the rtl one.
git-svn-id: trunk@11416 -
2008-07-20 12:10:31 +00:00
florian
19e723c869 * germanism fixed (aktexceptblock -> current_exceptblock)
git-svn-id: trunk@11410 -
2008-07-19 17:06:16 +00:00
florian
7a34d3ccca * removed comments to defines not used anymore
git-svn-id: trunk@11409 -
2008-07-19 17:01:47 +00:00
peter
c2e5f885c6 * handle (build)derefimpl also for objectdef so it also works for methods
git-svn-id: trunk@11406 -
2008-07-19 00:02:36 +00:00
peter
6c586e4eca * store specializations in globalsymtable for units, use localsymtable
for programs. this allows speciailizations to be done in the interface
    part of the unit
  * support tobject.typemember.typemember nesting for generics
  * fix generic parameter checking when a typemember was created with the
    type of a parameter
  * known issue is nested specializations don't work yet because the token
    replay can't handled nested replays yet

git-svn-id: trunk@11404 -
2008-07-18 23:30:44 +00:00
tom_at_work
cc911887a8 * undo accidently committed changes from r11398
git-svn-id: trunk@11399 -
2008-07-18 15:33:48 +00:00
tom_at_work
6958bbfdda * allow explicit conversion of enumeration values (in addition to integers) to object references in Delphi mode
git-svn-id: trunk@11398 -
2008-07-18 15:30:20 +00:00
florian
050627ea1d * allow goto inside finally blocks
git-svn-id: trunk@11392 -
2008-07-17 19:49:38 +00:00
florian
4dc547e01c * fixes loop unrolling
git-svn-id: trunk@11391 -
2008-07-17 19:49:03 +00:00
florian
f443132f3c * fixed compilation
git-svn-id: trunk@11381 -
2008-07-13 18:16:53 +00:00
florian
37372fb7ce * fixed copy&paste errors in cpunodefaultint
git-svn-id: trunk@11379 -
2008-07-13 18:15:17 +00:00
florian
2fd1196118 + cpu32bitaddr,cpu32bitalu,cpu16bitaddr,cpu16bitalu
git-svn-id: trunk@11378 -
2008-07-13 18:13:46 +00:00
florian
a15d8778d6 + create jump tables for case statements on x86-64
git-svn-id: trunk@11377 -
2008-07-13 10:26:25 +00:00
florian
9e88af9a78 * support ABSOLUTE32 in the COFF writer on x86-64, resolves #10641
git-svn-id: trunk@11376 -
2008-07-13 09:10:50 +00:00
florian
5d87a1c6e7 * typos fixed
git-svn-id: trunk@11367 -
2008-07-11 19:03:16 +00:00
florian
fffc05731c * don't crash when ranges are passed erroneously to an array of const, resolves #11632
git-svn-id: trunk@11353 -
2008-07-09 21:06:24 +00:00
florian
ed9c7ceaea * support deprecated for types
git-svn-id: trunk@11341 -
2008-07-07 17:59:48 +00:00
Jonas Maebe
c00108009d * insert vmt as hidden field in objectdefs
* don't output hidden fields in the debug info

git-svn-id: trunk@11334 -
2008-07-06 09:41:56 +00:00
Jonas Maebe
98e843c092 * support overriding debuginfo for classrefdefs
git-svn-id: trunk@11327 -
2008-07-05 14:25:23 +00:00
Jonas Maebe
2348c7ea00 * allow ssa to happen for outer for-loop control variables
git-svn-id: trunk@11320 -
2008-07-03 19:39:23 +00:00
Jonas Maebe
4d4b7ddbf6 * renamed for consistency
git-svn-id: trunk@11289 -
2008-06-27 14:30:02 +00:00
florian
fca8883f27 * moved oo_copied into defoptions
* record symtables are now handled properly as well if a record is copied, resolves #9144
* fixed a memory leak when copying classes
* increased PPU version to 91

git-svn-id: trunk@11273 -
2008-06-24 20:23:45 +00:00
giulio
5998ab33f2 Fix handling of ctrl-c/ctrl-break on go32v2:
* the default handler now silently quits if CtrlBreakHandler returns false or
   it hasn't been installed, instead of generating an unknown RTE 0.
Compiler: signal handlers are declared cdecl on go32v2 too.
This fixes bug #11494.

git-svn-id: trunk@11272 -
2008-06-24 17:02:17 +00:00
florian
467aeb3446 * avoid ie 99080501 when overloading procedures with open arrays of widechar, resolves #11543
git-svn-id: trunk@11266 -
2008-06-23 18:50:51 +00:00
florian
396b1c7c1e * do not write a "copied" symtable to a ppu when holding only a reference to it,
write the owner instead and get a reference to the symtable again when loading
  a ppu, might resolve #8180

git-svn-id: trunk@11262 -
2008-06-22 21:12:22 +00:00
giulio
95ce7840bc Added comment for 11257
git-svn-id: trunk@11259 -
2008-06-21 14:32:37 +00:00
giulio
272673bfe1 .rodata* sections must end up in .data section on go32v2, since the go32v2 stub
only handles .text, .data and .bss sections.
Solves bug #11509.

git-svn-id: trunk@11257 -
2008-06-21 14:06:12 +00:00
giulio
f8790b4e14 Re-enabled smartlinking on go32v2 after r8715 (solves bug #11501)
git-svn-id: trunk@11248 -
2008-06-20 11:20:37 +00:00
tom_at_work
c6fba4f390 * sample configuration script generates powerpc* multiarch library load path configuration
git-svn-id: trunk@11247 -
2008-06-19 19:29:52 +00:00
Jonas Maebe
1150f7e9dc * reduced complexity of in_abs_long, old value was left over from testing
git-svn-id: trunk@11243 -
2008-06-18 18:02:33 +00:00
Jonas Maebe
a60a957420 * fixed setting bitpacked record fields straddling their natural boundaries
to 0 or field_type(-1) (bug noted by Russell Davies on fpc-devel + his
    test programs)
  * fixed bit offset calculations for nested bitpacked record regvars

git-svn-id: trunk@11242 -
2008-06-18 16:31:39 +00:00
Jonas Maebe
9c77c7743d + support for inline nodes in node_complexity()
git-svn-id: trunk@11241 -
2008-06-18 16:28:51 +00:00
Almindor
62205d0346 * fix memory leaks in create_dwarf and types_dec procedures thanks to Giulio Bernardi's detailed report
git-svn-id: trunk@11236 -
2008-06-16 18:30:38 +00:00
Jonas Maebe
9d8bee1887 * regenerated with changes in r11233
git-svn-id: trunk@11234 -
2008-06-15 15:52:25 +00:00
florian
fbece263a3 + define CPUARMEL on armel-linux
git-svn-id: trunk@11212 -
2008-06-08 07:42:34 +00:00
florian
58757d0630 * support of dq in Intel assembler on 64 bit CPUs, resolves #11425
git-svn-id: trunk@11211 -
2008-06-07 15:08:48 +00:00
yury
01e31e2215 * Fixed r10992. Really warn if someone still uses ppc386.cfg
git-svn-id: trunk@11202 -
2008-06-05 08:24:58 +00:00
michael
da923586c6 * Fixed error in line 56, preventing backup
git-svn-id: trunk@11194 -
2008-06-04 18:04:54 +00:00
giulio
14d4f02fa0 * fixed fpc_zipinstall for go32v2 and the like
* makefiles regenerated

git-svn-id: trunk@11180 -
2008-06-03 14:01:09 +00:00
florian
d034dc2512 o patch by Olivier Coursiere:
+ add missing targets to ppudump

git-svn-id: trunk@11177 -
2008-06-02 21:44:48 +00:00
florian
0f6bcd613f * fixed spelling
git-svn-id: trunk@11171 -
2008-06-02 09:12:59 +00:00
giulio
13f39b9e21 Updated go32v2 linker script:
* dwarf debug sections must be placed at address 0
* added names of sections that are commonly found in gcc-compiled libraries (fixes linking to certain libraries)

git-svn-id: trunk@11168 -
2008-06-02 07:29:14 +00:00
florian
86a352ad1f * patch by Sergej Gorelkin to improve speed of UpdateStatus on large projects
git-svn-id: trunk@11151 -
2008-06-01 10:37:16 +00:00
florian
fe92758e53 * use ld-linux.so.3 in armel mode
git-svn-id: trunk@11150 -
2008-06-01 10:25:04 +00:00
Jonas Maebe
dcbd0a3ea2 * changed ppureal from extended into bestreal -> units cross-compiled
from architectures with a larger maximum floating point precision
    for an architecture with a smaller maximum fp precision can also be
    used by native compilers on the target architectures (final fix for
    mantis #9165)

git-svn-id: trunk@11076 -
2008-05-24 12:11:06 +00:00
Jonas Maebe
b6c43bad7d * regenerated for i386-Haiku and darwin cross compilation changes
git-svn-id: trunk@11073 -
2008-05-24 09:29:08 +00:00
florian
67ef9f20ae * test for previous commit
* fixed wrapper generation for bigger offsets as well

git-svn-id: trunk@11059 -
2008-05-23 16:16:34 +00:00
florian
ea46cb4218 * take care of the maximum constant size when creating interface wrappers, resolves #10831
git-svn-id: trunk@11058 -
2008-05-23 16:02:17 +00:00
Jonas Maebe
73a3507bac * reverted r11039, it's no good
git-svn-id: trunk@11048 -
2008-05-23 07:55:16 +00:00
Jonas Maebe
55d621fea3 * skip mark_InlineStart, mark_InlineEnd and mark_Position markers
in getnext/lastinstruction

git-svn-id: trunk@11039 -
2008-05-22 17:29:30 +00:00
tom_at_work
b01454d2a3 * removed code for splitting a 64 bit store into 32 bit ones on 64 bit ppc. For more information see comments of r9721
git-svn-id: trunk@11038 -
2008-05-22 16:20:32 +00:00
tom_at_work
4aced9802c * fix tw8191 for all architectures: skip code generation for range checking also when the range checking has to be done dynamically for pointers accessed as arrays which were typecasted from an array
git-svn-id: trunk@11037 -
2008-05-22 12:52:26 +00:00
florian
d79851dc1b * patch by Sergei Gorelkin to improve class creation speed and make objpas.inc more readable
git-svn-id: trunk@11036 -
2008-05-22 11:49:40 +00:00
florian
085d5423ac * transform tryfinally nodes with an empty try parts into the finally block
git-svn-id: trunk@11035 -
2008-05-22 11:30:46 +00:00
Jonas Maebe
53d11b9a06 * fixed para locations at the calleeside for nostackframe assembler
routines

git-svn-id: trunk@11023 -
2008-05-21 15:11:37 +00:00
Jonas Maebe
942c91afad * also consider jump tables embedded in the code when calculating the
distance between a jump and its target

git-svn-id: trunk@11022 -
2008-05-21 15:03:31 +00:00
florian
bcbc221191 * more reasonable defaults when no dyn. linker is found, resolves #10431
git-svn-id: trunk@11020 -
2008-05-20 21:06:12 +00:00
florian
35c0f78642 + Haiku support by Olivier Coursière based on old BeOS support
git-svn-id: trunk@11014 -
2008-05-19 17:33:35 +00:00
florian
d7673694f1 * enable parsing of default properties when used with objects, resolves #10795
git-svn-id: trunk@11003 -
2008-05-18 13:27:59 +00:00
florian
4ad8ccf05c * experimentally enabled smartlink sections on sparc linux
git-svn-id: trunk@11002 -
2008-05-18 12:49:00 +00:00
florian
96ce01b998 * fix building on all platforms after r10995
git-svn-id: trunk@11001 -
2008-05-18 12:41:00 +00:00
florian
5c18145632 * fix interface wrappers on sparc
git-svn-id: trunk@10999 -
2008-05-18 11:11:30 +00:00
florian
b5fdda5dff + add -Ci and -XS in normal and debug mode
git-svn-id: trunk@10998 -
2008-05-18 10:43:58 +00:00
Jonas Maebe
7d1a8f3de2 * always pass (g)crt1.o/bundle1.o as first argument to the linker
for darwin (see #11270)

git-svn-id: trunk@10996 -
2008-05-18 09:49:44 +00:00
florian
e9543b90d0 + introduced default_settings record to enable compiler unit users to turn off default switches
git-svn-id: trunk@10995 -
2008-05-18 09:39:17 +00:00
florian
c3605645ff + warn if someone still uses ppc386.cfg
git-svn-id: trunk@10992 -
2008-05-18 07:57:54 +00:00
florian
77e5e0525c * experimental sparc interface wrapper patch
git-svn-id: trunk@10991 -
2008-05-17 20:10:35 +00:00
mazen
dec0ba97b0 * Applied patch to fix issue with far call for sparc (bug #11312).
git-svn-id: trunk@10988 -
2008-05-17 19:31:08 +00:00
Legolas
3a21b6e5a6 * Fixed nds rtl
* Changes for gba:
  * Random number generator is now embedded in the rtl
  * Improved heap 
  * Updated the linker script
  - Removed the outdated gbaunits library and
  + replaced by libgbafpc package

git-svn-id: trunk@10986 -
2008-05-17 18:57:14 +00:00
florian
e265393d7a * make stringconstn => open array of char a l1 conversion as it was earlier, resolves #10727
git-svn-id: trunk@10984 -
2008-05-17 18:18:51 +00:00
Jonas Maebe
52f81c97cf * call gstrip (GNU) instead of strip (Sun)
git-svn-id: trunk@10981 -
2008-05-17 10:57:44 +00:00
florian
eca558b33b * don't crash on empty ProcDefs when handling interfaces, resolves #11295
git-svn-id: trunk@10978 -
2008-05-15 18:38:24 +00:00
yury
403ce8c2c1 * Fixed removing stabs for unused functions. It fixes debugging problems.
git-svn-id: trunk@10963 -
2008-05-13 13:12:07 +00:00
Jonas Maebe
6ac63bcafe * also process tcallnode.funcretnode in nutils.foreachnode*(),needed
for properly synchronizing regvars after loops. The absense of this
    causes the crash in the test program of mantis #11290 under 2.2.1,
    and while it doesn't crash under 2.3.1 due to differences in the
    code generation, the bug could cause errors in other situations
    here as well)

git-svn-id: trunk@10959 -
2008-05-12 20:50:43 +00:00
florian
8306eb4753 * compare constant sets correctly while choosing an overloaded procedure, resolves #11288
git-svn-id: trunk@10957 -
2008-05-12 12:45:55 +00:00
giulio
c6d4f1a9e5 Go32v2 is not an embedded target, don't disable features
git-svn-id: trunk@10943 -
2008-05-11 10:11:29 +00:00
florian
0a4314206f * range check error checking for floats refactored
* never throw range/overflow check errors for floats in delphi mode, resolves #7584

git-svn-id: trunk@10940 -
2008-05-11 09:09:21 +00:00
florian
46a381645f * regenerated
git-svn-id: trunk@10938 -
2008-05-11 07:36:50 +00:00
florian
1f32ed79c1 + create svn add menu entry in tools menu
git-svn-id: trunk@10937 -
2008-05-11 07:36:30 +00:00
florian
4a243d451f + support of -Mxxx or $modeswitch to enable single mode specific features
git-svn-id: trunk@10936 -
2008-05-10 22:04:53 +00:00
giulio
9203f46e1a * Handling of -Sf parameter fixed
* Fixed definition of FPC_HAS_FEATURE_xxx macros for targets not supporting the full range of features
 * Added DYNLIBS feature

git-svn-id: trunk@10932 -
2008-05-10 17:00:04 +00:00
Jonas Maebe
b3d731f9a8 * fixed cutils local copy of swapendian
git-svn-id: trunk@10929 -
2008-05-10 10:45:25 +00:00
florian
ae836f878f + handle also widestring constants in constant string expressions
git-svn-id: trunk@10927 -
2008-05-10 08:58:35 +00:00
Jonas Maebe
7657cd7b6c * result of prefetch is voidtype, not voidpointertype (fixes mantis #11275)
git-svn-id: trunk@10913 -
2008-05-09 14:13:59 +00:00
Jonas Maebe
0645313da5 * fixed wrong internal error in case a swapped set <op> setelement
addnode was processed after r10432/10433 (mantis #11255)

git-svn-id: trunk@10904 -
2008-05-07 18:11:18 +00:00
Jonas Maebe
2df5878ee4 * deref childs of loopnodes (needed to fix mantis #11182 on 2.2.1;
that one doesn't crash 2.3.1, but this bug could still crash 2.3.1
    in other cases)

git-svn-id: trunk@10893 -
2008-05-06 13:36:18 +00:00
micha
0b2f80a38b * regenerate Makefiles to get armeb-linux support globally (also arm-darwin, so it seems)
git-svn-id: trunk@10888 -
2008-05-05 18:46:55 +00:00
Legolas
f2437bb479 * Updated nds linker script for new binutils
* Quick'n'dirt random number generator for nds

git-svn-id: trunk@10887 -
2008-05-05 17:50:13 +00:00
Jonas Maebe
85b9c65f51 * fixed support in macpas mode for anonymous procedure/function types
in parameter lists after r9484 (mantis #11254)

git-svn-id: trunk@10885 -
2008-05-05 11:59:35 +00:00
florian
95c69a64ad * don't generate a hidden parameter for static class methods, resolves #10998
git-svn-id: trunk@10876 -
2008-05-04 07:43:24 +00:00
florian
19c7d1d14c * reset aktobjectdef before compilation, resolves #10971
git-svn-id: trunk@10874 -
2008-05-03 14:36:47 +00:00
florian
8fe43377e1 + convert case <boolean> of into if statement, resolves #10517
git-svn-id: trunk@10873 -
2008-05-03 10:27:55 +00:00
Jonas Maebe
a324744cbe * fixed checking for defined/undefined macro's in the configuration file
(#undef'ed macro's still caused #ifdef/#ifndef to return resp.
     true/false)

git-svn-id: trunk@10872 -
2008-05-03 09:55:41 +00:00
florian
c56c6e976c + allow dyn. arrays to be published, resolves #10493
git-svn-id: trunk@10870 -
2008-05-02 21:15:10 +00:00
michael
0167a576f0 * Fixed some typos
git-svn-id: trunk@10861 -
2008-05-02 16:00:48 +00:00
Jonas Maebe
a87de2ca9b * regenerated messages
git-svn-id: trunk@10859 -
2008-05-02 14:04:02 +00:00
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