Commit Graph

48677 Commits

Author SHA1 Message Date
svenbarth
a67fe62caa fmodule.pas, tmodule:
* reset: also free and reinstantiate unitimportsyms

git-svn-id: trunk@33685 -
2016-05-13 14:51:02 +00:00
pierre
94d8d9927d Only add indirect symbol for constants if tf_supports_packages flag is set in target_info.flags
git-svn-id: trunk@33684 -
2016-05-12 07:05:58 +00:00
michael
ac1b59ef03 * Small fix from Laco to fix missinu ULONG type
git-svn-id: trunk@33683 -
2016-05-11 14:51:12 +00:00
pierre
fe6feb741b Use macros for msdos OS to translate SysGetMem into SysTinyGetMem and similar, fixes several RTE 203 isssues for msdos target OS
git-svn-id: trunk@33682 -
2016-05-11 14:38:46 +00:00
pierre
91595447c6 Add SysTinyGetHeapStatus and SysTinyGetFPCHeapStatus functions
git-svn-id: trunk@33681 -
2016-05-11 14:37:38 +00:00
pierre
4af209ac50 Add SysTinyGetMem and similar to interface to allow use in heaptrc unit
git-svn-id: trunk@33680 -
2016-05-11 14:36:19 +00:00
pierre
cbb29a7e5d Use FPC_NO_DEFAULT_HEAP to turn out RelocateHeap or MemoryManager.InitThread functions, used for msdos OS
git-svn-id: trunk@33679 -
2016-05-11 14:34:55 +00:00
pierre
effa0154c5 Use FPC_NO_DEFAULT_MEMORYMANAGER define to guard SysGetmem/SysFreemem functions, also used for msdos OS
git-svn-id: trunk@33678 -
2016-05-11 14:33:00 +00:00
pierre
c8ad916710 Use FPC_NO_DEFAULT_MEMORYMANAGER define to guard SysGetmem/SysFreemem function definitions, also used for msdos OS
git-svn-id: trunk@33677 -
2016-05-11 14:32:02 +00:00
pierre
01ea38a627 Implement basic SysOSAlloc using MSDOS Interrrupt 0x21, AH=0x48 function
git-svn-id: trunk@33676 -
2016-05-11 14:29:11 +00:00
pierre
2a3b5bec86 Add new FPC_NO_DEFAULT_MEMORYMANAGER define for msdos OS
git-svn-id: trunk@33675 -
2016-05-11 14:27:26 +00:00
Károly Balogh
23cf551bf3 m68k-amiga: fixed wrong define to test against softfpu (oops...)
git-svn-id: trunk@33672 -
2016-05-11 07:09:53 +00:00
Károly Balogh
424f329173 m68k: use inlined realconsts also during normal float calculations on '881/040/060. also optimize them where possible
git-svn-id: trunk@33671 -
2016-05-10 18:19:41 +00:00
Károly Balogh
7fff76d936 m68k-amiga: only compile softfpu code into system unit, when FPU_SOFT is defined
git-svn-id: trunk@33670 -
2016-05-10 16:08:17 +00:00
Károly Balogh
2dbfca4e8e m68k: optimize a few cases of comparisons against inlined realconsts
git-svn-id: trunk@33669 -
2016-05-10 15:39:08 +00:00
Károly Balogh
7710300c22 m68k: utilize FTST for comparing against float zero. also utilize FCMP realconst,fpreg on '881 for other realconst values
git-svn-id: trunk@33668 -
2016-05-10 15:38:13 +00:00
Károly Balogh
e7838dad39 m68k: initial asm-level infrastructure to let the codegenerator output float consts as operands, which is supported on 88x/040/060
git-svn-id: trunk@33667 -
2016-05-10 13:47:46 +00:00
lacak
8e2ac164f8 fcl-db: tests: preparation for BOOLEAN data type tests for Firebird 3
git-svn-id: trunk@33666 -
2016-05-10 13:37:23 +00:00
Károly Balogh
3e2319ff3a m68k: do not allocate/free the regset dynamically having it as a normal field is perfectly fine
git-svn-id: trunk@33665 -
2016-05-10 13:03:17 +00:00
florian
e4baf67722 * do not write any size suffix for cvt*ss2si, doing so makes no sense as the size of the single and the integer might be different on x86-64, resolves issue #30101
git-svn-id: trunk@33661 -
2016-05-08 18:50:53 +00:00
Jonas Maebe
a31530e532 * fixed some copy/paste errors in r16205 (MACOS instead of MORPHOS,
based on patch by Lychee, mantis #30102)

git-svn-id: trunk@33660 -
2016-05-08 08:54:06 +00:00
marcus
a414a8bded os4units: support for Cybergraphics gfx
git-svn-id: trunk@33659 -
2016-05-06 19:07:14 +00:00
marcus
b6f73bf1cf os4units: support for Picasso96 gfx
git-svn-id: trunk@33658 -
2016-05-06 16:33:56 +00:00
Károly Balogh
3b4822d320 m68k: utilize MVS and MVZ instructions to load values from references with zero/sign extend when they're available
git-svn-id: trunk@33656 -
2016-05-05 23:55:50 +00:00
Károly Balogh
bd17976cf1 m68k: added Coldfire CPU capability MVS/MVZ instructions. also fixed CFv4e capabilities
git-svn-id: trunk@33655 -
2016-05-05 23:54:37 +00:00
florian
cfd49ec708 + TAOptBase.SuperRegistersEqual
+ properly implemented TAOptObj.PrePeepHoleOpts
+ properly implemented TAOptObj.PeepHoleOptPass2

git-svn-id: trunk@33654 -
2016-05-05 12:38:19 +00:00
Károly Balogh
2e9ed396b4 m68k: convert non-int paraloc sizes to int in a_load_ref_cgpara, fixes build breaks with softfpu since r33651
git-svn-id: trunk@33653 -
2016-05-05 02:33:54 +00:00
Károly Balogh
1e6e5a1874 m68k: implemented a_load64_reg_ref and a_load64_ref_reg. avoids duplicated reference simplifications in the generated code during 64bit load/store
git-svn-id: trunk@33652 -
2016-05-05 00:58:21 +00:00
Károly Balogh
2b250a1b0a m68k: use a_load_ref_ref in a_load_ref_cgpara instead of a custom loading code which does the same. causes no changes in generated code
git-svn-id: trunk@33651 -
2016-05-05 00:55:52 +00:00
Károly Balogh
778a0b737e * removed ancient (since r5554) special handling code for m68k from tcgvecnode, which is no longer necessary
git-svn-id: trunk@33650 -
2016-05-04 21:39:37 +00:00
florian
0232a0d979 * several inlined math function do not need a non-constant register for the argument
git-svn-id: trunk@33649 -
2016-05-04 18:15:33 +00:00
Károly Balogh
88e14dc456 m68k: only extend the dest reg to tosize during reg-reg moves. this removes a large amount of unnecessary sign and zero extensions from the generated code. this was attempted before, but thanks to other fixes it no longer causes testsuite regressions
git-svn-id: trunk@33648 -
2016-05-04 09:52:27 +00:00
Károly Balogh
524659b341 m68k: if we have a symbol in the location reference, that will be base, so try to insert an index register instead, reduces the amount of data->address register shuffling in the generated code
git-svn-id: trunk@33647 -
2016-05-03 23:55:27 +00:00
nickysn
671eed3070 + added the GenericEvent type constant to unit X
git-svn-id: trunk@33646 -
2016-05-03 23:08:09 +00:00
nickysn
94e890a2cd + added data structures and functions for the X11 generic events extension
git-svn-id: trunk@33645 -
2016-05-03 22:29:57 +00:00
marcus
acd7b1f128 AmigaOS4: Library unit for icon.library part 2
git-svn-id: trunk@33644 -
2016-05-03 20:17:50 +00:00
marcus
0438643e53 AmigaOS4: Library unit for icon.library
git-svn-id: trunk@33642 -
2016-05-03 17:43:27 +00:00
marcus
b1a8dec99b AmigaOS4: extend all parameter to 4 Byte types
git-svn-id: trunk@33640 -
2016-05-03 16:15:17 +00:00
michael
43e9c741aa * Patch from Ondrej Pokorny to implement ImageSize (Bug ID 30095)
git-svn-id: trunk@33639 -
2016-05-03 15:16:52 +00:00
michael
f65fa34df0 * Patch from Ondrej Pokorny to change ImageSize to class function (Bug ID 30094)
git-svn-id: trunk@33638 -
2016-05-03 15:15:50 +00:00
nickysn
ce66597df8 * handle classrefdefs properly, according to the memory model in i8086's
thlcgobj.getaddressregister. This should fix several regressions in the
  compact, large and huge memory models after r33591

git-svn-id: trunk@33637 -
2016-05-03 15:11:32 +00:00
nickysn
18538494b9 * use the high level code generator's getaddressregister method in thlcgobj.maybe_change_load_node_reg
git-svn-id: trunk@33636 -
2016-05-03 14:24:10 +00:00
michael
698d92dca1 * Make TIHData fields public, patch from Ondrej Pokorny, bug ID #30093
git-svn-id: trunk@33635 -
2016-05-03 14:22:30 +00:00
michael
3d479ed732 * Applied patch from Ondrej Pokorny, bug ID #30090
git-svn-id: trunk@33632 -
2016-05-03 09:11:02 +00:00
Jonas Maebe
51209eac9c * fixed bootstrap for Darwin/ppc with FPC 3.0 (workaround for
mantis #29906)

git-svn-id: trunk@33631 -
2016-05-03 09:01:55 +00:00
Jonas Maebe
14bab6c85d * fixed ppc jump table generation in case a jump table has cases for the
lowest and highest element of the type of the case expression, and the
    lowest element <> 0 (mantis #29906)

git-svn-id: trunk@33630 -
2016-05-03 09:00:52 +00:00
michael
51cdce510c * Renamed pixel size DrawImage to DrawImageRawSize
git-svn-id: trunk@33629 -
2016-05-03 07:08:47 +00:00
nickysn
6f18b7cc60 + added boolean overloads for the TBool parametered functions in the xinput unit
as well

git-svn-id: trunk@33628 -
2016-05-03 00:29:35 +00:00
nickysn
fd2da2f9b6 * pass the function results correctly after r33626
git-svn-id: trunk@33627 -
2016-05-03 00:14:16 +00:00
nickysn
2cc4e17743 + added boolean overloads for the functions in the xinput2 unit, that receive a
TBool parameter

git-svn-id: trunk@33626 -
2016-05-03 00:03:27 +00:00