Commit Graph

49302 Commits

Author SHA1 Message Date
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
michael
4e39c254d2 * Remove unused variables
git-svn-id: trunk@34538 -
2016-09-17 08:58:22 +00:00
michael
0af46b90aa * Add null in Array/Object if an element is Nil.
git-svn-id: trunk@34537 -
2016-09-17 08:55:55 +00:00
michael
5be2dfd9c8 * Fix bug ID #30606, identifier not allowed when parsing object
git-svn-id: trunk@34536 -
2016-09-17 08:18:53 +00:00
michael
a80e8f41c4 * Report correct position when encountering identifier
git-svn-id: trunk@34535 -
2016-09-17 08:18:10 +00:00
svenbarth
386b7ac154 * fix for Mantis #28753: don't return generic dummys from single_type(); ensures that parameters correctly evaluate to error defs should generic dummies be used
git-svn-id: trunk@34534 -
2016-09-16 20:40:19 +00:00
svenbarth
e4f1b15860 * fix declarations; these only worked by accident and will no longer work after the next commit of mine
git-svn-id: trunk@34533 -
2016-09-16 15:56:58 +00:00
svenbarth
ce18b10c81 * fix for Mantis #30530: when the global/static symtable is reached defowner is Nil, so respect that in the loop condition
+ added test

git-svn-id: trunk@34532 -
2016-09-16 15:39:03 +00:00
svenbarth
531829c072 * don't check for hints if we have a specialization with the same name as the to be used generic (though since the typedef would be errordef it wouldn't print anything anyway...)
git-svn-id: trunk@34531 -
2016-09-16 15:15:19 +00:00
svenbarth
50f2aab0ef * fix for Mantis #22192: handle the case that a specialization has the same name as the generic it's based on as in that case the typedef of the symbol is an errordef; therefor we need to use the symbol's real name
+ added test

git-svn-id: trunk@34530 -
2016-09-16 15:13:27 +00:00
svenbarth
fd7daf91df + new overload for generate_specialization_phase1() which allows to pass a specific symbol name without the need to specify a file position
git-svn-id: trunk@34529 -
2016-09-16 15:10:51 +00:00
svenbarth
76f55f2030 * set the realname of the reused generic dummy symbol to the parsed name as the casing might differ from the generic that triggered the creation of said dummy symbol
git-svn-id: trunk@34528 -
2016-09-16 15:09:22 +00:00
svenbarth
2ea587f746 * fix for Mantis #30537: also allow the parasymtable as a parent symtable when generating the mangled name as that is needed for generic functions
+ added test

git-svn-id: trunk@34527 -
2016-09-16 14:10:53 +00:00
svenbarth
0500c678e5 * fix for Mantis #30534: don't consider all types with generic constraints as equal, but at least ensure that they have the same basetype (Note: this still needs a bit more improvement)
+ added test

git-svn-id: trunk@34526 -
2016-09-16 13:24:28 +00:00
pierre
458aea707d Fix type on last commits
git-svn-id: trunk@34525 -
2016-09-13 10:08:57 +00:00
pierre
c7d79acd61 Allow compilation of compiler with -gc option
git-svn-id: trunk@34524 -
2016-09-13 08:47:53 +00:00
pierre
53af10dbed Makefile regenerated after:
Change conditions under which IDE executable is generated:

  Add GDBMI_IS_STATIC variable, set to true for systems
  which generate static FP IDE executable (without library dependencies)
  and can thus also be compiled in cross-compile conditions.

  Only add -sp fpmake option (which means skip executable generation)
  if GDBMI_IS_STATIC is not defined.

git-svn-id: trunk@34523 -
2016-09-13 08:46:43 +00:00