Commit Graph

49318 Commits

Author SHA1 Message Date
Károly Balogh
175cc52e8d atari: added classes unit and a dummy threading implementation
git-svn-id: trunk@34589 -
2016-10-02 01:33:26 +00:00
Károly Balogh
39f0b9c888 m68k: added atari to the .section exception list in the GNU AS writer
git-svn-id: trunk@34588 -
2016-10-01 23:38:47 +00:00
marcus
2ec510e368 Morphunits: intuition unit rewritten, types fixed, missing varargs versions added
git-svn-id: trunk@34587 -
2016-10-01 21:08:18 +00:00
Károly Balogh
39f043c7fd atari: removed the ancient readme, stating there's no Makefile, as there's one now apparently
git-svn-id: trunk@34586 -
2016-10-01 16:39:48 +00:00
joost
cc70bbbd1f * Removed double directory-separator
git-svn-id: trunk@34585 -
2016-10-01 14:56:10 +00:00
Károly Balogh
def4df9791 m68k: fixed a bug, where during during unaligned stores, the base address was preinitalized to a temp address register from the wrong reference, causing havoc
git-svn-id: trunk@34584 -
2016-10-01 14:43:47 +00:00
marcus
c0fb39607f Morphunits: agraphics unit rewritten, types fixed, missing varargs versions added
git-svn-id: trunk@34583 -
2016-09-30 17:35:18 +00:00
svenbarth
246de84ef3 * ensure that a finalization section is parsed before the generation of specializations as otherwise specializations in such sections would result in unresolved forward declarations
git-svn-id: trunk@34582 -
2016-09-30 15:41:35 +00:00
svenbarth
da5bc92ae0 * pmodules.finish_unit: fix condition that would lead to no implicit initialization code being generated if no explicit one is available, but an implicit one would be required
git-svn-id: trunk@34581 -
2016-09-30 15:11:16 +00:00
svenbarth
74db27ca15 * due to the removal of addr_load_indirect also revert the changes to refaddr2str(_darwin)
git-svn-id: trunk@34580 -
2016-09-30 14:13:26 +00:00
svenbarth
c8202061dc * get rid of addr_load_indirect again by having tcgx86 provide an internal implementation of both make_simple_ref() and a_load_ref_reg() so that make_direct_ref() can call the latter (and the latter the former) without fear of inifinite recursive calls due to the symbol; a_load_ref_reg() is additionally declared as "final" as a_load_ref_reg_internal() needs to be overloaded instead (which is the case for tcg8086)
git-svn-id: trunk@34579 -
2016-09-30 14:01:02 +00:00
marcus
d4f0634908 Morphunits: exec unit updated functions, missing varargs versions
git-svn-id: trunk@34578 -
2016-09-30 13:21:45 +00:00
marcus
6b25911bcb Morphunits: exec unit updatd to current SDK, Type adjustments
git-svn-id: trunk@34577 -
2016-09-30 12:26:34 +00:00
pierre
1e9491550d nutils.pas: Add new procedure:
procedure node_change_local_switch(p : tnode;cs : tlocalswitch;enable : boolean);
    to add/remove cs local switch from all p tnode tree localsettings.

    modify second_prefetch implementation in arm, ppcgen and x86 subdirectories
    to use node_change_local_settings to temporarily disabled
    checkpointer local switch, as prefetch is allowed even on unaccessible addresses.
    (previous code was buggy because I frogot that each node has it own localswitches).

git-svn-id: trunk@34576 -
2016-09-29 21:34:34 +00:00
marcus
3ba12f2fd7 Morphunits: amigados unit, 64bit file access functions, V51 functions/consts
git-svn-id: trunk@34575 -
2016-09-29 17:01:06 +00:00
marcus
e42119e573 Morphunits: locale unit, fixed calling convention, missing functions
git-svn-id: trunk@34574 -
2016-09-29 14:10:46 +00:00
lacak
cc100208c9 fcl-db: sqldb: Test for assigned AParams in LogParams to avoid AV. Bug #30662
git-svn-id: trunk@34573 -
2016-09-29 05:29:02 +00:00
marco
fe99472d22 * fix missing 'kernel32' reported on forum by "DG"
git-svn-id: trunk@34571 -
2016-09-28 14:24:53 +00:00
pierre
3360410c35 Fix cycling with -dTest_Double_checksum option
git-svn-id: trunk@34570 -
2016-09-28 08:56:30 +00:00
michael
ea421c6874 * Patch from Mattias Gaertner, implementing
*  with..do
  * is and as operator for class
  * inherited call
  * basic type checks for binary operators
  * type checks for if..then, while..do, repeat..until, on..do, raise

git-svn-id: trunk@34569 -
2016-09-27 19:15:27 +00:00
nickysn
7f3ac8bf51 * increase the maximum stack trace depth, when the compiler is compiled with -dEXTDEBUG
git-svn-id: trunk@34568 -
2016-09-27 15:54:00 +00:00
pierre
4d09dfca95 Remember usage of checkpointer (-gc) option:
Use new cs_checkpointer_called moduleswitches set element.
     Use new uf_checkpointer_called PPU flag (reusing obsolete uf_local_browser flag value)
     Emit warning if compiled library/program has any code using checkpointer.
  
 * ppu.pas: New constant: uf_checkpointer_called
 * globtype.pas: New constant: cs_checkpointer_called
 * fppu.pas: Set uf_checkpointer_called flag if cs_checkpointer_called is set in current_settings.module_switches
 * i8086/n8086mem.pas: Include cs_checkpointer_called in current_settings.moduleswitches
 *  ncgmem.pas: Likewise.
 * msg/errore.msg: Add new message saying that -gc and -Ur options are incompatible
   Add description to -gc option, saying it is experimental.
   Add warning at link time for program/library if checkpointer is used in any unit or main code.
 * options.pas: if -gc and -Ur options are used, never enable checkpointer code,
   instead output a warning that release is incompatible with -gc option.
 * pmodules.pas: proc_program: Check all modules for uf_checkpointer_called flag,
   emit a warning if checkpointer is used.
 * utils/ppuutils/ppudump.pp: Add code for uf_codepointer_called option.

git-svn-id: trunk@34567 -
2016-09-27 14:46:09 +00:00
pierre
e6ee3f445e msg files regenerated after:
* msg/errore.msg: Add new message saying that -gc and -Ur options are incompatible
   Add description to -gc option, saying it is experimental.
   Add warning at link time for program/library if checkpointer is used in any unit or main code.

git-svn-id: trunk@34566 -
2016-09-27 14:45:44 +00:00
pierre
5ff557fd99 * msg/errore.msg: Add new message saying that -gc and -Ur options are incompatible
Add description to -gc option, saying it is experimental.
   Add warning at link time for program/library if checkpointer is used in any unit or main code.

git-svn-id: trunk@34565 -
2016-09-27 14:44:50 +00:00
lacak
482290e4bc fcl-db: base: Set Bound when loading param from stream. Bug #30651
(Delphi uses for TBlobData=TBytes , we use AnsiString)

git-svn-id: trunk@34564 -
2016-09-27 05:27:23 +00:00
michael
5a58faa3d5 * Several fixes from Graeme Geldenhuys:
fppdf: test project page number output is now more dynamic.
  pdf+ttf: replace string constants with resource strings.
  pdf: removes the unused color parameter from TPDFDocument.AddFont().
  pdf: update "testfppdf" application due to TPDFDocument.AddFont() changes.
  pdf tests: fix failing tests due to TPDFDocument.AddFont() changes.
------------------------------------------------------------------------

git-svn-id: trunk@34563 -
2016-09-26 21:47:03 +00:00
yury
db590da1e6 * Added a new debug option switch -godwarfcpp - Simulate C++ debug information in DWARF. It is more correct way to workaround LLDB issues than in r34558. This option can be used for debuggers, which does not support Pascal correctly.
git-svn-id: trunk@34562 -
2016-09-26 13:05:17 +00:00
nickysn
24ca717072 - temporarily disable compilation of the real48utils unit on i8086-msdos,
because bitpacked records, containing longints (which this unit uses) don't
  yet work on 16-bit and 8-bit targets. As soon as this is fixed, it'll be
  reenabled again.

git-svn-id: trunk@34561 -
2016-09-26 12:18:09 +00:00
Károly Balogh
ed13f4d0d1 m68k: add a function to optimize const MUL cases to sequences of shifts + ADD/SUB. mainly for '000 and other low end 68ks with slow/limited MUL capabilities. inactive for now, as it wasn't that extensively tested
git-svn-id: trunk@34560 -
2016-09-25 19:46:00 +00:00
pierre
fe4e2956c6 Disable checkpointer call when handling left of prefetch node
git-svn-id: trunk@34559 -
2016-09-24 07:34:10 +00:00
yury
c36faacd57 * dwarf: Internal option to generate a LLDB compatible debug info. It is enabled for the Android targets.
git-svn-id: trunk@34558 -
2016-09-23 15:51:55 +00:00
svenbarth
89f7da58ea * fix tcgx86.make_direct_ref: we need to use the register in which we loaded the symbol and combine that with the base register (if it is set) without using an ADD
git-svn-id: trunk@34557 -
2016-09-23 15:37:28 +00:00
michael
bc2f213bd3 * Patch from Laco to add additional function in interface
git-svn-id: trunk@34556 -
2016-09-23 10:29:38 +00:00
michael
c7523c6236 * Patch from Mattias Gaertner with support for
- class forward declaration
  - alias class, type alias class
  - ancestor, TObject as default
  - virtual, override, abstract
  - property read, write, stored
  - methods
  - self
  - overloaded procs with class as argument

git-svn-id: trunk@34555 -
2016-09-22 11:41:09 +00:00
Jonas Maebe
ec53fdf45a * don't try to write using standard I/O from a thread while the program is
shutting down, that can fail
   o the test will still fail because the tthread shutdown code itself in
     the classes unit cannot handle running while a program is quitting,
     and that should be fixed (exposed by r34456)

git-svn-id: trunk@34554 -
2016-09-22 07:50:08 +00:00
yury
c29c5571b8 * android: Fixed AV during linking when JNI_OnLoad is located in a non-main unit.
git-svn-id: trunk@34553 -
2016-09-22 07:40:51 +00:00
pierre
88f9d18a88 Enable checkpointer support for all linux systems
git-svn-id: trunk@34552 -
2016-09-21 13:20:13 +00:00
pierre
749dc00401 Fix CheckPointer code for pointer in stack area for linux
git-svn-id: trunk@34551 -
2016-09-21 13:19:27 +00:00
Jonas Maebe
999cb7de6d + LLVM 3.7 support in the LLVM IR writer
git-svn-id: trunk@34550 -
2016-09-20 21:44:06 +00:00
Jonas Maebe
eb9d4b71b3 * equivalent of r34246 for targets using the non-fragile Objective-C ABI
(fixes webtbs/tw30443 for iOS and 64 bit targets)

git-svn-id: trunk@34549 -
2016-09-20 21:43:59 +00:00
Jonas Maebe
27bb656cec * replaced "in_make_direct_ref" field with a trefaddr flag
git-svn-id: trunk@34548 -
2016-09-20 21:43:52 +00:00
Jonas Maebe
e8c9541c04 * don't use ADD in make_direct_ref(), as the flags may be live
git-svn-id: trunk@34547 -
2016-09-20 21:43:45 +00:00
Jonas Maebe
a9073cb50b * don't overwrite the flags in make_simple_ref() if the reference
has no scalefactor (fixup for r14871)

git-svn-id: trunk@34546 -
2016-09-20 21:43:39 +00:00
Jonas Maebe
db171702f3 * vecn: don't use left.location.reference.alignment if left is not in a
LOC_(C)REFERENCE

git-svn-id: trunk@34545 -
2016-09-20 21:43:32 +00:00
Jonas Maebe
0afbe85aab * various memory reference alignment fixes
git-svn-id: trunk@34544 -
2016-09-20 21:43:19 +00:00
michael
5d18c63b24 * Patch from Graeme Geldenhuys to disable embedding fonts.
git-svn-id: trunk@34543 -
2016-09-20 20:33:13 +00:00
sergei
67bd4775fd - Cleaned out thread manager semaphore support which was ever implemented only for Unix, and not used since r28965. This also reverts changes to System unit interface introduced in r27665.
git-svn-id: trunk@34542 -
2016-09-20 20:14:36 +00:00
lacak
507088d097 fcl-db: sqldb: Firebird
- [var]char columns with character set NONE or OCTETS does not follow connection charset, so we must handle them as special case and set appropriate CodePage
- updated helper method TFieldDefs.Add (original version was introduced only recently and exists only in trunk)
Bug #30613

git-svn-id: trunk@34541 -
2016-09-20 08:12:22 +00:00
florian
e5f63779bb * pass S_NO instead of S_XMM to *SQRTSS/SD as size as the memory location is 32/64 bit
git-svn-id: trunk@34540 -
2016-09-18 20:05:25 +00:00
marcus
f2b60d07d3 MorphOS: added locale library unit
git-svn-id: trunk@34539 -
2016-09-17 14:51:38 +00:00