Commit Graph

48452 Commits

Author SHA1 Message Date
marcus
1e53d7ad76 AmigaOS4: fcl-web reactivated
git-svn-id: trunk@33600 -
2016-05-01 15:43:41 +00:00
marcus
6df2120266 AmigaOS4: Added socket/networking support
git-svn-id: trunk@33599 -
2016-05-01 15:37:04 +00:00
marco
d4fd7520ef * wrap getfirst and getlast in fcount<>0 because otherwise it will dereference nil.
Mantis #30080

git-svn-id: trunk@33598 -
2016-05-01 14:43:12 +00:00
Jonas Maebe
2bbab60c92 * when simplifying a constant string concatenation that gets assigned to a
rawbytestring, ensure the resulting constant string does not get CP_NONE
    as codepage, but the default system code page (mantis #30082)

git-svn-id: trunk@33597 -
2016-05-01 13:16:02 +00:00
Károly Balogh
6d3b580f2f * enabled internal ELF resources for AmigaOS4
git-svn-id: trunk@33596 -
2016-05-01 12:59:54 +00:00
Jonas Maebe
130d9fee91 * don't take the address of element 0 of a dynamic array in
tcallparanode.copy_value_by_ref_para() if the array is empty
    (mantis #30007)

git-svn-id: trunk@33595 -
2016-05-01 12:35:09 +00:00
Jonas Maebe
1feb062f7d * similar change as in r33393 but now for a_load_reg_ref_unaligned(), although
it's unlikely it would ever cause a problem there

git-svn-id: trunk@33594 -
2016-05-01 12:35:06 +00:00
florian
0c13f3ce3e * fix modification information for vand*
git-svn-id: trunk@33593 -
2016-05-01 12:00:25 +00:00
Károly Balogh
56fea8d047 * have regvars in address registers for defs which are address types. improves code with reference bases in regvars on m68k. and also reduces data register pressure.
git-svn-id: trunk@33591 -
2016-05-01 11:33:37 +00:00
Károly Balogh
aa8b45904e m68k: use the existing g_call infrastructur to handle the register allocation in the helpers
git-svn-id: trunk@33589 -
2016-05-01 10:42:52 +00:00
Károly Balogh
0b7464e4cd m68k: fix large const loading to address registers
git-svn-id: trunk@33588 -
2016-05-01 10:41:40 +00:00
florian
bd54a11f1c + TX86AsmOptimizer.OptPass1VMOVAP for i386 and x86-64
+ new unit aoptutils which helpers for the assembler optimizer

git-svn-id: trunk@33587 -
2016-05-01 09:37:21 +00:00
marcus
d9139219a9 os4units: mui added, DoMethod, DoSuperMethod and so on added.
git-svn-id: trunk@33585 -
2016-04-30 21:40:04 +00:00
Károly Balogh
a806114af6 * since AMIGA is now defined by both AmigaOS4 and 68k Amiga, have an unique AMIGA68K define for classic Amiga
git-svn-id: trunk@33583 -
2016-04-30 19:51:30 +00:00
Károly Balogh
5a50fc4be3 * don't provide __amigaos4__ symbol in our VLink linker script by default. it's in prt0.as for now.
git-svn-id: trunk@33582 -
2016-04-30 19:48:54 +00:00
marcus
77e47d21bb os4units: added iffparse, keymap, clipboard, graphics, intuition, activated some packages
git-svn-id: trunk@33581 -
2016-04-30 13:39:08 +00:00
michael
87be61c807 * Added HPACK implementation by José Mejuto (bug ID 30058)
git-svn-id: trunk@33579 -
2016-04-30 08:29:26 +00:00
michael
ecde605017 * Moved expression parser test to proper location, patch by Graeme Geldenhuys (bug ID 30037)
git-svn-id: trunk@33578 -
2016-04-30 07:53:36 +00:00
michael
7e54688fd4 * Fix never-ending loop in splitline
git-svn-id: trunk@33577 -
2016-04-30 07:29:54 +00:00
michael
5c2f941c32 * Correct PATH_INFO for IIS, patch by Marcos Douglas (bug ID 30073)
git-svn-id: trunk@33576 -
2016-04-30 06:29:05 +00:00
Károly Balogh
f48747adf5 m68k: reworked cg.g_concatcopy. generates shorter and faster code in most cases now.
git-svn-id: trunk@33575 -
2016-04-30 00:15:34 +00:00
svenbarth
adbef4fc84 New export option that enforces the use of the provided export name instead of using the name of the provided symbol. This is necessary to correctly handle overloaded functions, especially if one of them is an internproc one.
export.pas:
  + texportoption: new option eo_no_sym_name
pkgutil.pas:
  * exportprocsym: set eo_no_sym_name when exporting procdefs from a package
systems/t_win.pas, TExportLibWin:
  * generatelib: respect eo_no_sym_name

git-svn-id: trunk@33574 -
2016-04-29 15:03:18 +00:00
michael
8416517b14 * More fixes from Graeme Geldenhuys:
pdf tests: extended Page.DrawImage (pixels) test with different UnitOfMeasure values.
   pdf tests: Implements Page.DrawImage (UnitsOfMeasure) unit tests.
   pdf: Fixed DrawImage() bug detected by unit tests.
   pdf: fixed failing test due to varying string types.

git-svn-id: trunk@33573 -
2016-04-29 14:12:22 +00:00
svenbarth
cf9f07798c Consider r28857 as merged
git-svn-id: trunk@33572 -
2016-04-29 13:15:27 +00:00
svenbarth
788393c298 Change WideString initialization to work correctly with indirect main information as well
rtl/inc/systemh.inc & rtl/java/jsystemh_types.inc:
  - TEntryInformation: remove WideInitTables
rtl/win/sysosh.inc:
  + TEntyrInformationOS: add WideInitTables
rtl/win/syswin.inc:
  * adjust WStrInitTablesTable, so that it is now a pointer and can be used both with direct and indirect main entry
  * InitWin32Widestrings: WStrInitTablesTable is now a pointer
rtl/win32/sysinit.inc:
  * WideInitTables has moved to the OS specific part of the entry information
rtl/win32/system.pp:
  * OsSetupEntryinformation: setup WStrInitTablesTable

git-svn-id: trunk@33571 -
2016-04-29 13:13:14 +00:00
lacak
26ef7b27e0 fcl-db: sqldb: Publish Before/AfterRefresh properties (Delphi compatible) Bug #30075
git-svn-id: trunk@33570 -
2016-04-29 10:20:58 +00:00
Jonas Maebe
44682f9f4d * ensure that if we create a temp for the funcretnode in a call node,
the funcretnode field keeps a reference to this temp even after we
    assign it to the call-by-reference return parameter if it is deleted
    by changing it into a normal temp (after which it will be freed when
    the result of the call node is used), because in that case getcopy
    for the callnode must copy this reference after copying the
    tempdeletenode in order to reset tempinfo^.hookoncopy (mantis #29891)

git-svn-id: trunk@33569 -
2016-04-28 20:33:12 +00:00
Jonas Maebe
6e2523b199 * fixed version of fpc_pchar_length() for JVM (the generic one passes
p^ to indexbyte, and since indexbyte takes an open array parameter
    on the JVM platform rather than an untyped var, this was converted
    to a single element array rather than passing in p unmodified)

git-svn-id: trunk@33568 -
2016-04-28 20:33:09 +00:00
Jonas Maebe
162c4ef6f3 * fixed potential range errors in indexbyte/indexword
git-svn-id: trunk@33567 -
2016-04-28 20:33:06 +00:00
michael
141a24e29c * Some improvements and reworkings by Graeme Geldenhuys
pdf: Renamed DrawImage() parameters to more clearly state the values are in pixels.
   pdf: convenience function to return a TPDFCoord data type.
   pdf: method implementation signature now matches interface section.
   pdf: Implements new overload DrawImage that takes UnitOfMeasure Width & Height parameters.
   pdf: sample: Modified the Image page to some usage of new overloaded DrawImage()
   ttf: TextWidth() parameters are now const parameters.
   ttf: Implemented a new TextHeight() method for the FontCacheItem class.

git-svn-id: trunk@33566 -
2016-04-28 16:54:25 +00:00
marcus
79508d4653 Amiga, AROS, MorphOS: AsTag helper with LongInt instead Integer
git-svn-id: trunk@33565 -
2016-04-27 18:14:40 +00:00
michael
60382b990e * Patch from Ondrej to fix sharing mode when loading fonts (bug ID 30070)
git-svn-id: trunk@33564 -
2016-04-27 16:02:12 +00:00
michael
5ac352bc3c * Some reworking by Graeme Geldenhuys:
ttf: renamed SearchForFont() to SearchForFonts(). Plural makes more sense.
  ttf: extra sanity check before calling SearchForFont()
  ttf: new AssignFontList() method introduced.
       This populates AStrings with a list of found PostScript names. 
       Useful for fpReport and probably a visual report designer too.
  ttf: new overloaded Find() method, and Find-by-PostScript name.
       FamilyName is normally the base font name only. 
       PostScriptName is the base name plus an attribute suffix. 
       eg: Calibri vs Calibri-Bold

git-svn-id: trunk@33563 -
2016-04-27 15:34:00 +00:00
pierre
c365576841 Regenerate with uptodate fpcmake to add missing aarch64-linux target
git-svn-id: trunk@33562 -
2016-04-27 14:04:40 +00:00
pierre
57f2df1f62 * Remove sysutils in _USES clause, to avoid exception handling importation,
especially when exeinfo unit is implicitly loaded when -gl compilation option
  is used.
  + LocalError, new ExitProc procedure, used to catch any error that could happen
  inside GetExeInMemoryBaseAddr procedure.
  * Use SetJmp/LongJmp instead of Try/except in GetExeInMemoryBaseAddr function,
  together with local change and restoration of ExitProc.

git-svn-id: trunk@33561 -
2016-04-27 13:13:31 +00:00
marcus
6e9e508091 os4units: inputevents and library unit for layer.library
git-svn-id: trunk@33560 -
2016-04-26 17:46:22 +00:00
Károly Balogh
2f23b5f0fd m68k: output some GAS specific pseudo instructions in the GNU as writer, so the assembler can do branch size optimization for us
git-svn-id: trunk@33559 -
2016-04-26 01:34:26 +00:00
Károly Balogh
4287f81b92 m68k: support and use float TResFlags in the rest of the CG. ColdFire FPU now works, and FSxx is no longer generated which is software supported on '060, and doesn't exist on CF. if we still want to support it later, we can add it to cg.g_flags2reg
git-svn-id: trunk@33558 -
2016-04-25 23:40:44 +00:00
Károly Balogh
23106882ac m68k: extended TResFlags with float resflags
git-svn-id: trunk@33557 -
2016-04-25 23:30:56 +00:00
Károly Balogh
9d2dad2463 m68k: added cpu type cfv4e, which is the only ColdFire with FPU, and GNU AS needs this to actually allow CF FPU code
git-svn-id: trunk@33556 -
2016-04-25 22:04:05 +00:00
marcus
d23ee52001 os4units: library unit for graphics.library
git-svn-id: trunk@33555 -
2016-04-25 21:27:30 +00:00
florian
d2b74be153 * always use vmov variants of instructions if avx is enabled
git-svn-id: trunk@33554 -
2016-04-24 20:03:15 +00:00
florian
ec92bc3390 * case of identifiers fixed
* x86-64 uses also the mov $0,... -> xor optimization

git-svn-id: trunk@33553 -
2016-04-24 20:01:43 +00:00
marcus
44a544d0f5 AmigaOS4: library units for utility.library, timer.device and dos.library
git-svn-id: trunk@33552 -
2016-04-24 16:30:36 +00:00
florian
f0e75de730 * properly update allocation info of the involved register when carrying out an MovMovCmp2MovCmp optimization, resolves issue #30052
* few changed to make code more readable

git-svn-id: trunk@33551 -
2016-04-24 15:57:06 +00:00
Károly Balogh
9d2258e4d9 * increase length of asmbin string from 8 chars to 16. this is needed to support standard vasm binary names on PPC and (soon) m68k
git-svn-id: trunk@33550 -
2016-04-23 15:51:26 +00:00
marcus
31b6e2df9b AmigaOS4: initial package checkin with exec.library unit
git-svn-id: trunk@33549 -
2016-04-23 14:55:20 +00:00
michael
e78e4d0e72 * Publish UseDollarString and DollarStrings properties
git-svn-id: trunk@33548 -
2016-04-23 06:55:33 +00:00
Károly Balogh
e04bddc143 fixed build for MorphOS, which uses a heavily patched old GNU AS, and it doesn't know the -a32 argument
git-svn-id: trunk@33547 -
2016-04-22 23:52:28 +00:00
florian
8d9f6bbe0b * disable some debugging code which does not work anymore due to the unification of the peephole optimizer
git-svn-id: trunk@33546 -
2016-04-22 20:31:25 +00:00