Commit Graph

57543 Commits

Author SHA1 Message Date
florian
af107ca8fe o patch by J. Gareth Moreton, resolves #36355
+ This patch serves to extend the JMP -> RET optimisation in OptPass2JMP by also doing the same
      for JMP -> MOV/RET, since there are often cases where the result (e.g. EAX) is set just
      prior to the function exiting.
    * RemoveDeadCodeAfterJump will now drop out if it detects SEH information -
      this stops exception information from being stripped if it is called on the final RET instruction.

git-svn-id: trunk@43592 -
2019-11-25 21:15:41 +00:00
svenbarth
d98e551882 + add a generic variant of TValue.IsType
* extended test

git-svn-id: trunk@43591 -
2019-11-25 21:13:37 +00:00
florian
fb4b1cbf35 * warn only in delphi mode if an explicit enumeration value exceeds the range, relaxes r43191
git-svn-id: trunk@43590 -
2019-11-25 20:58:20 +00:00
florian
3edc0560b0 * patch by Benjamin Rosseaux: TEvent.WaitFor on *nix uses Monotonic Clock now
git-svn-id: trunk@43589 -
2019-11-25 20:58:18 +00:00
svenbarth
97eefb6ac3 - the error recovery handling is no longer required
git-svn-id: trunk@43588 -
2019-11-25 20:28:29 +00:00
svenbarth
5b71ba2a9b * treat a missing genericdef with no symname set as an internal error
git-svn-id: trunk@43587 -
2019-11-25 20:28:26 +00:00
svenbarth
ef6c9e930b * correctly handle the genericdef being a procdef, otherwise no code will be generated (and no error either :/ )
+ added test

git-svn-id: trunk@43586 -
2019-11-25 20:28:23 +00:00
michael
6a36bec296 * Better explanation of connection
git-svn-id: trunk@43585 -
2019-11-25 14:24:38 +00:00
michael
bcee247240 * Simple, read-only example, no authentication
git-svn-id: trunk@43584 -
2019-11-25 14:14:19 +00:00
Jonas Maebe
0802edb710 * fix Linux/i386 and Win32 after r43578
git-svn-id: trunk@43583 -
2019-11-25 07:55:57 +00:00
svenbarth
be99031570 * rework checking for compiler files in .gitignore: ignore all ppc* files in the compiler directories except those with known extensions (*.lpi and *.pas, though for the later there currently is none)
git-svn-id: trunk@43582 -
2019-11-24 21:52:22 +00:00
svenbarth
abc3fd6f8d + add some more extensions to .gitignore
git-svn-id: trunk@43581 -
2019-11-24 21:52:19 +00:00
Jonas Maebe
ec227bb759 * fixed safecall for non-LLVM after r43578
git-svn-id: trunk@43580 -
2019-11-24 21:26:22 +00:00
florian
c6116258fd o patch by J. Gareth Moreton:
* adds an extra optimisation to "PostPeepholeOptMov" in compiler/x86/aoptx86.pas:
      If the instruction "MOV REG, -1" (Intel notation) is found, where REG is either
      a 32- or 64-bit register, it is changed to "OR REG, -1" instead.
      The effect is the same and takes exactly the same speed to execute, but the encoding is much smaller.
      As it cause false data dependencies, it is only applied in -Os mode

      For 16-bit registers, only AX is optimised this way because it has its own encoding for OR that takes fewer bytes.

git-svn-id: trunk@43579 -
2019-11-24 20:26:02 +00:00
Jonas Maebe
e775ecdc43 * cleaned up safecall support: use a hidden localvarsym instead of result
register hacking
   o this also allowed fixing/adding safecall support for LLVM

git-svn-id: trunk@43578 -
2019-11-24 20:23:22 +00:00
florian
acdff47554 + optimize integer expressions like 2*x*4; which were not found by the node simplifier yet
git-svn-id: trunk@43577 -
2019-11-24 20:21:33 +00:00
florian
94b728005d * more RemoveCurrentP usage
git-svn-id: trunk@43576 -
2019-11-24 19:51:04 +00:00
florian
9e307f5c3a - removed code not used for years
git-svn-id: trunk@43575 -
2019-11-24 19:50:27 +00:00
florian
d444f750f9 * factored out TX86AsmOptimizer.OptPass1Cmp
* fixed it
  * activated it for x86-64

git-svn-id: trunk@43574 -
2019-11-24 16:33:50 +00:00
florian
dea1855126 o patch by J. Gareth Moreton, resolves #36352:
* The supplied patch cleans up some vestigial code from the i386 peephole
      optimizer that has since been superseded by the jump optimisations over
      at #36271.
    * The PrePeepholeOptsCPU method has had a minor restructuring to better
      handle the rare case where InsContainsSegRef() returns True and
      p becomes something that is no longer an instruction (it ultimately
      removes a conditonal check and some overhead from repeated function calls).

git-svn-id: trunk@43573 -
2019-11-24 16:12:02 +00:00
florian
030d376bac + .gitignore (for git mirrors), based on proposal by Kevin Lyda, resolves #35597
git-svn-id: trunk@43572 -
2019-11-24 16:05:23 +00:00
florian
bdd36d20ac * patch by Alfred: remove superfluous linker script entry, resolves #36345
git-svn-id: trunk@43570 -
2019-11-24 12:16:29 +00:00
svenbarth
39f4b97ea5 + add test for a problem reported by Michael van Canneyt which is fixed by the previous revision
git-svn-id: trunk@43569 -
2019-11-24 00:04:35 +00:00
svenbarth
1abc9c1fe7 * when specializing a routine all nested specializations must go to the para- or localsymtable as otherwise the symbol can't be found to be registered
git-svn-id: trunk@43568 -
2019-11-24 00:04:31 +00:00
svenbarth
6edf6cad2c * also check for Nil symtables in tsymtable.includeoption
git-svn-id: trunk@43567 -
2019-11-24 00:04:27 +00:00
svenbarth
d79e2ee9da * also store, reset and restore the current module's procinfo
git-svn-id: trunk@43566 -
2019-11-24 00:04:23 +00:00
pierre
c882828fd0 Minimalist change to avoid Invalid Typecast error on class when compiled with '-CriotR -O2' for i386-go32v2 target
git-svn-id: trunk@43565 -
2019-11-23 22:44:30 +00:00
michael
f7d6192905 * Show --stop-on-parser-error in help
git-svn-id: trunk@43564 -
2019-11-23 13:40:49 +00:00
michael
77103fe7f2 * Report error with correct exit code
git-svn-id: trunk@43563 -
2019-11-23 13:34:45 +00:00
michael
a23ed797e6 * Fix bug ID #0036335: console pops up when getting compiler info
git-svn-id: trunk@43562 -
2019-11-23 08:03:12 +00:00
pierre
8ea92a8280 Use correct macro to for 64-bit riscv CPU
git-svn-id: trunk@43561 -
2019-11-22 21:29:19 +00:00
Jonas Maebe
ff919184d8 * restored original behaviour of shl/shr constant evaluation outside
inline statements
   o fixes compilation of pasjpeg with -Cr

git-svn-id: trunk@43560 -
2019-11-22 21:12:00 +00:00
Jonas Maebe
0f46207776 * fixed (harmless) range error when expanding ~
git-svn-id: trunk@43559 -
2019-11-22 21:11:56 +00:00
michael
cf203a6590 * Add column separator
git-svn-id: trunk@43558 -
2019-11-22 15:15:15 +00:00
michael
0c25ada935 * Add header row
git-svn-id: trunk@43557 -
2019-11-22 14:44:14 +00:00
michael
94e0b499df * Add boolean field length correction
git-svn-id: trunk@43556 -
2019-11-22 14:25:35 +00:00
michael
d3733c4718 * Add boolean field length correction
git-svn-id: trunk@43555 -
2019-11-22 14:25:15 +00:00
pierre
17c422c3f2 Patch by Gareth Moreton.
* TAOptObj.CollapseZeroDistJump: Change hp1 to local variable,
     initialized as p.next, to avoid problems of dangling pointers
     revealed by use of "-CriotR -O2" compilation arguments.

git-svn-id: trunk@43554 -
2019-11-22 09:10:32 +00:00
florian
98226d33b7 * do not optimize inline nodes which are part of call node which has an init and/or cleanup block, resolves #36323
git-svn-id: trunk@43553 -
2019-11-21 22:15:06 +00:00
svenbarth
3e9bfedbc4 * ensure that the required functions are referenced for Win32 SEH for packages as well
git-svn-id: trunk@43552 -
2019-11-21 21:45:21 +00:00
svenbarth
40c11baaac * use a different name for the packages' entry point and use _DLLMainCRTStartup as an alias to avoid problems with the C-prefix
git-svn-id: trunk@43551 -
2019-11-21 21:45:18 +00:00
svenbarth
bb3b1b06a7 * fix condition for including a unit's object files or not when compiling with packages
git-svn-id: trunk@43550 -
2019-11-21 21:45:15 +00:00
svenbarth
2a1d26cc90 * use translateable error messages for undefined symbols and also report in which object file the symbol was first found
git-svn-id: trunk@43549 -
2019-11-21 21:45:11 +00:00
svenbarth
1e66b2464a * regenerate msg*.inc files after adding new error messages for undefined symbols
git-svn-id: trunk@43548 -
2019-11-21 21:45:08 +00:00
svenbarth
f28ac2bfc6 + add error messages for undefined symbols (both with a known object file and without)
git-svn-id: trunk@43547 -
2019-11-21 21:45:04 +00:00
svenbarth
cd7e3f354b + add a description for the link_e_comdat_selection_differs message
git-svn-id: trunk@43546 -
2019-11-21 21:45:01 +00:00
svenbarth
4b3ce0c023 * the symbol of the interface wrapper function needs to be considered as referenced as well
git-svn-id: trunk@43545 -
2019-11-21 21:44:57 +00:00
svenbarth
0a915e883e * keep track of static symbols that a global function references, as those must now be exported from a dynamic package as well if the function can potentially be inlined
git-svn-id: trunk@43544 -
2019-11-21 21:44:53 +00:00
svenbarth
2e259ee3cc * the VMT of the exception class needs to be referenced indirectly
git-svn-id: trunk@43543 -
2019-11-21 21:44:48 +00:00
svenbarth
a041f899d3 * when creating the static field of a generic, insert it into the generic instead of the global symtable as it isn't really used anyway
git-svn-id: trunk@43542 -
2019-11-21 21:44:43 +00:00