Commit Graph

60966 Commits

Author SHA1 Message Date
pierre
1fa5edd34e Try to avoid use of native libgcc directory when cross-compiling.
Add FSourceCPU, FSourceOS, FCompilerDate FFullCompilerVersion fields to TCustomDefaults class.
  Set these new fields by also parsing FPC -iDWSPSO output.
  Use these fields to try to correctly guess if native gcc should be used to
  try to find libgcc directory, or only $BINUTILSPREFIX prepended gcc.

git-svn-id: trunk@48152 -
2021-01-13 10:07:37 +00:00
florian
344aadebb9 * avoid widening of shl operations, this is not necessary for them either
git-svn-id: trunk@48150 -
2021-01-12 21:45:38 +00:00
pierre
4fd1c9ec42 Correct check of stringtype inside use_tag_prefix function
git-svn-id: trunk@48140 -
2021-01-11 22:17:09 +00:00
Mattias Gaertner
000de377b9 fcl-passrc: fixed compile with pas2js
git-svn-id: trunk@48139 -
2021-01-11 22:05:20 +00:00
Mattias Gaertner
2833bf6710 fcl-passrc: fixed mem leak
git-svn-id: trunk@48138 -
2021-01-11 22:04:22 +00:00
Mattias Gaertner
05d916a652 pastojs: clean up
git-svn-id: trunk@48137 -
2021-01-11 22:03:40 +00:00
florian
a286ad9d77 * do not extend 8 bit return values to 32 bit when loading them into eax,
this is not required by the api, neither does e.g. clang it

git-svn-id: trunk@48136 -
2021-01-11 21:47:32 +00:00
Mattias Gaertner
22864b47e4 pastojs: record complex only for records with class vars
git-svn-id: trunk@48131 -
2021-01-10 22:56:39 +00:00
Jonas Maebe
5c2303a76b * add parameter cleanup nodes to the call cleanup block (mantis #38316)
git-svn-id: trunk@48130 -
2021-01-10 15:47:27 +00:00
pierre
b7c519de81 Add check for bug fix in bug report 38339
git-svn-id: trunk@48129 -
2021-01-10 14:43:22 +00:00
Jonas Maebe
b1a1e6c510 + test for mantis #38337, already fixed
git-svn-id: trunk@48127 -
2021-01-10 14:09:22 +00:00
svenbarth
217e9ac5a5 * regenerate msg*.inc files
git-svn-id: trunk@48126 -
2021-01-10 10:55:26 +00:00
svenbarth
469959d9b5 * clear up message that a global generic references a static symbol a bit
git-svn-id: trunk@48125 -
2021-01-10 10:55:18 +00:00
florian
eb81b981cd * patch by J. Gareth Moreton to fix MovzxCmp2CmpMovzx, resolves #38339
git-svn-id: trunk@48124 -
2021-01-10 10:23:40 +00:00
florian
227bd3e904 * simplified code for JccAdd2SetccAdd optimization
git-svn-id: trunk@48122 -
2021-01-09 18:21:49 +00:00
svenbarth
efe6b32638 + add declaration of FpSchedGetAffinity when the Linux target is compiled with FPC_USE_LIBC
git-svn-id: trunk@48121 -
2021-01-09 15:58:18 +00:00
svenbarth
359bb64aed * if the Linux target is compiled with FPC_USE_LIBC the initialization of TLS is not required (according to one comment by Florian), so disable all related code in that case (as for example the syscall numbers are not available then)
git-svn-id: trunk@48120 -
2021-01-09 15:58:13 +00:00
Mattias Gaertner
c99a97cc55 pastojs: started library
git-svn-id: trunk@48119 -
2021-01-09 13:57:13 +00:00
Mattias Gaertner
3b0df17bd1 fcl-passrc: resolver: check library export function overload
git-svn-id: trunk@48118 -
2021-01-09 13:56:28 +00:00
florian
f42f62565b * patch by J. Gareth Moreton to resolve bug introduced in the first patch, resolves #38294
git-svn-id: trunk@48117 -
2021-01-08 22:29:24 +00:00
florian
4e9b42344e + AddLea2Lea optimization
* improved LeaLea2Lea

git-svn-id: trunk@48116 -
2021-01-08 22:22:56 +00:00
florian
964dc6f6f1 * avoid div by zero in TView.CalcBounds.GrowI, resolves #30922
git-svn-id: trunk@48115 -
2021-01-08 16:33:05 +00:00
florian
7f775abb6d * throw a proper error if a contructur has a type parameter in delphi mode, resolves #37217
git-svn-id: trunk@48113 -
2021-01-08 14:19:19 +00:00
pierre
0061301dbb Fix compilation with -dALLOCREGDEBUG
git-svn-id: trunk@48112 -
2021-01-08 11:13:43 +00:00
pierre
a78332ae7f Add setting of all optimization debug macros with single DEBUG_ALL_OPT macro
git-svn-id: trunk@48111 -
2021-01-08 11:05:29 +00:00
pierre
37201319bf Add two new button to simplify inspecting evolutiontestsuite difference in time
git-svn-id: trunk@48110 -
2021-01-08 09:57:31 +00:00
florian
d2b0bcdf1f + linux implementation of System.GetCPUCount
git-svn-id: trunk@48106 -
2021-01-07 22:44:49 +00:00
florian
63c603cf32 * include also regexpr test in normal regression tests
git-svn-id: trunk@48105 -
2021-01-07 22:05:22 +00:00
michael
de28024427 * Patch from Andrey Sobol to improve names, improve XML structure
git-svn-id: trunk@48103 -
2021-01-07 13:24:12 +00:00
Jonas Maebe
80282d6eff * llvm: only set custom parameter alignments for byval parameters, the rest
is handled automatically by llvm (and since llvm 11.0 you get an error if
    you specify an alignment for them anyway)

git-svn-id: trunk@48100 -
2021-01-06 22:35:40 +00:00
Jonas Maebe
090d9abafe * cocoaint: fix NSActivityUserInitiatedAllowingIdleSystemSleep definition
(as noted by olly, mantis #38317)

git-svn-id: trunk@48098 -
2021-01-06 20:26:13 +00:00
svenbarth
38cde38177 * make TProxyStream.Check an abstract method; as it is right now one had to override it anyway because it always raised an exception
git-svn-id: trunk@48097 -
2021-01-06 20:25:12 +00:00
svenbarth
6160abe37e * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations)
git-svn-id: trunk@48096 -
2021-01-06 12:57:59 +00:00
florian
6d75992674 * fix proposed by Christo Crause: properly handle pointer constant nodes on avr, resolves #38321
git-svn-id: trunk@48095 -
2021-01-06 12:52:36 +00:00
michael
26a446308b * Fix compilation with CheckPasTreeRefCount define
git-svn-id: trunk@48094 -
2021-01-06 12:25:17 +00:00
michael
498805c1ca * Patch from Andrey Sobol to control XML file layout
git-svn-id: trunk@48093 -
2021-01-06 12:24:09 +00:00
michael
e2ffecb4c8 * Fix GetFileBaseDir
git-svn-id: trunk@48092 -
2021-01-06 10:07:05 +00:00
michael
cccff5826e * Fix memleak, additional list/indent, patch from Andrey Sobol
git-svn-id: trunk@48091 -
2021-01-06 09:13:33 +00:00
florian
aec18c2426 * weight currency->float conversions the same regardless if
the currency type is handled by the integer unit or the x87 fpu,
    resolves #38309

git-svn-id: trunk@48089 -
2021-01-05 22:39:16 +00:00
svenbarth
57d9884d96 * fix for Mantis #38310: ignore procsyms that have no procdefs for checking overloads, or more precisely to stop checking for overloads; these are generic dummy symbols
+ added (simplified) tests

git-svn-id: trunk@48088 -
2021-01-05 20:58:46 +00:00
michael
87f2c282d1 * Patch from Andrey Sobol to reduce indentation
git-svn-id: trunk@48087 -
2021-01-05 17:00:32 +00:00
florian
28efcfba65 + patch by J. Gareth Moreton: Advanced MOVZX optimisations, resolves #38294
git-svn-id: trunk@48086 -
2021-01-05 15:15:41 +00:00
michael
b31305810c * print context in Release in debug mode
git-svn-id: trunk@48083 -
2021-01-05 09:21:25 +00:00
michael
7adcd2a8a2 * Fix memleak when using packages
git-svn-id: trunk@48082 -
2021-01-05 09:20:45 +00:00
florian
de36d6c049 + added newly used opcodes to avx_opcode_only_op0_may_be_memref
git-svn-id: trunk@48070 -
2021-01-04 21:54:36 +00:00
michael
d42c334de9 * Fix memory leak, patch from Andrey Sobol
git-svn-id: trunk@48025 -
2021-01-04 09:13:08 +00:00
pierre
38ddf2e8c5 Fix spelling error of revision 48023
git-svn-id: trunk@48024 -
2021-01-04 08:35:36 +00:00
florian
7d5b0d2382 * handle rawbytestrings in Win32Ansi2UnicodeMove properly, resolves #38299
git-svn-id: trunk@48021 -
2021-01-03 22:55:37 +00:00
pierre
f2568e37e4 Add testing for single float type in trndmode.pp
git-svn-id: trunk@48020 -
2021-01-03 22:03:27 +00:00
pierre
57861c934d Check also that SetRoundMode returns correctly previous rounding mode
git-svn-id: trunk@48019 -
2021-01-03 21:55:35 +00:00