Commit Graph

66511 Commits

Author SHA1 Message Date
J. Gareth "Curious Kit" Moreton
5f3749dc49 * x86: Introduced TrySwapMovOp method, and redesigned TrySwapMovCmp
to use it while also trying to move one more instruction back
2023-01-10 22:23:58 +00:00
J. Gareth "Curious Kit" Moreton
6af886c2b9 * Removed foolish inline from StripLabelFast 2023-01-10 22:23:58 +00:00
J. Gareth "Curious Kit" Moreton
5cdef8050b * Fixed bug in register preservation tracking 2023-01-10 22:23:58 +00:00
wsherman
6453af40d8 *fix compile warnings and hints in googleapiconv and googlediscoverytopas
- Fix compiler warnings and hints and unused local variables
  - Change deprecated ClassHeader to ClassComment
  - Fix comment in helper script
2023-01-09 23:48:05 -08:00
wsherman
cf50f8ede0 * More fixes and cleanups in restbase.pp (googleapiconv)
- Move test functions out of class to local procedures and into
    {$IFDEF DUMPARRAY} and change the parameters to match the rtl versions:
      function GetDynArrayProp(P: PPropInfo) : Pointer; virtual;
      procedure SetDynArrayProp(P: PPropInfo; AValue : Pointer); virtual;
  - Add dyn arrays support to the ClearProperties method
  - In SetArrayProperty, fix previous commit (fba7595b) because the
      array properties were not being set and make the dyn array handling
      code more typesafe.
  - In SetObjectProperty use TObjectArray instead of Pointer to make the
      dyn array handling code more typesafe.
  - In ClearChildren use ClearProperty to do the work and simplify the code.
  - Fix some compiler warnings and hints.
2023-01-09 23:48:05 -08:00
florian
f4d9082028 * copyright for 2023 updated 2023-01-09 22:54:46 +01:00
Rika Ichinose
30e3d93d57 Make generic Index* faster and denser. 2023-01-09 21:26:00 +00:00
Karoly Balogh
3cea1706e9 m68k: more work on instruction validation for the internal assembler 2023-01-09 12:01:10 +01:00
Karoly Balogh
69761839c0 m68k: removed the unused S_IQ opsize 2023-01-09 12:01:10 +01:00
Pierre Muller
0641ea33d1 Both _STAT_VER_KERNEL and _STAT_VER_LINUX are equal to zero for aarch64-linux 2023-01-09 10:29:38 +01:00
Michaël Van Canneyt
00e3cdddce * Add NetAddrIsPrivate function from Ondrej Pokorny 2023-01-09 09:37:23 +01:00
Ondrej Pokorny
f43912a383 add SSL functions 2023-01-09 07:17:04 +00:00
wsherman
b56ebfa93d * Remove conditional code for compiling googleapiconv with v2.6.4 on i386
(restbase.pp)
  - Remove {$ifdef ver2_6} directives and associated code
  - Remove {$ifndef ver2_6} directives (but keep code)

(googleapiconv.pp)
  - Remove {$ifdef ver2_6} directives and associated code
  - Remove synapse defines and associated code line

(googlediscoverytopas.pp)
  - Remove {$ifdef ver2_6} directives and associated code
2023-01-08 21:38:38 -08:00
florian
0b45cd95f7 + introduce long forms for $E, $F and $S, resolves #39889 2023-01-08 21:29:31 +01:00
mattias
ea4768456f rtl: ObjectBinaryToText, ObjectTextToBinary: support unitname/classname 2023-01-08 20:30:52 +01:00
mattias
c1f3960388 rtl: added overload GetClass(UnitName,ClassName), implemented UnregisterClass, overload TStream.WriteComponent(Instance,WriteUnitName) 2023-01-08 15:46:49 +01:00
wsherman
ed894b40c9 * minor updates to googleapiconv helper scripts (ref #40094) 2023-01-08 00:33:07 -08:00
wsherman
3224f2c8b5 * more fixes to googleapiconv (ref #40094)
(googlediscoverytopas)
  -Fix unit clause and "uses" for generated units

(googleapiconv)
  -Add --version parameter
  -Fix logging messages
  -Set OutputUnitName so units have correct clause

(restbase)
  -Add #todo notes for follow up
  -Move function RFC3339ToDateTime next to related functions
2023-01-08 00:33:07 -08:00
wsherman
731fd94b8c * bash scripts for testing and running googleapiconv (ref #40094) 2023-01-08 00:33:07 -08:00
wsherman
ab3aae149b * googleapiconv fixes and cleanup (ref #40094)
- Add updated URL for google api discovery
  - Fix incorrect usage / help messages and put options in alpha order
  - Replace "with .. do" statement with a local variable for clarity
  - Add missing DiscoveryJSONToPas.Execute so output files are not empty
  - Add FreeAndNil(Application) to clear a memory leak
    (it now has a clean Heaptrc)
  - Minor fix to .lpi file which had incorrect dependency.
2023-01-08 00:33:07 -08:00
wsherman
fba7595bb1 * Fix dynamic array (managed types) handling in restbase.pp (Ref #40094)
Fixes code in method TBaseObject.SetArrayProperty
  and removes private method SetArrayElements

  This fixes AVs and memory leaks.
2023-01-08 00:30:51 -08:00
florian
4deb23ba58 * makefile regenerated with current fpcmake, resolves #40092 2023-01-07 22:52:01 +01:00
mattias
b0f5d5a4e1 rtl: TBinaryObjectWriter.Version 2023-01-07 10:19:29 +01:00
mattias
b641c564c6 rtl: TReader: FindComponentClass using field name and classname 2023-01-07 10:19:29 +01:00
florian
899bdc0016 * first approach to fix tfrldexp on i386-win32 2023-01-06 23:03:40 +01:00
Kevin Jesshope
05f5e9ad12 Update file fpwebfile.pp 2023-01-06 13:08:33 +00:00
Kevin Jesshope
cee45ea6fc The test for '' after getting the location into BaseDir should test BaseDir not BaseURL. 2023-01-06 13:08:33 +00:00
wsherman
ea91170a81 * Add opensslsockets to uses so googleapiconv works with HTTPS 2023-01-05 11:04:03 -08:00
Karoly Balogh
459dc68ab9 m68k: more boiler plate and refactor for a future internal assembler 2023-01-05 13:32:34 +01:00
Karoly Balogh
f2d6b4d530 m68k: added a helper function to check if a register is an FPU register 2023-01-05 13:32:33 +01:00
wsherman
17fab24221 * Reorganize packages/googleapi/ directory.
Separate hand coded files to a new directory "src/base"
     (googlebase.pp, googleservice.pp, googleclient.pp)
   Move generated api files to a new directory "src/bindings"
   Move the the bindings generator program out of /examples to /generator
   Move the unit googlediscoverytopas.pp to /generator
   Fix paths in /generator/googleapiconv.lpi
   Regenerate Makefile (using fpcmake -w -Tall)
   Edit fpmake.pp
     - remove src path
     - add src/base path
     - add src/bindings path
     - fix bad path for unit googleadexchangebuyer.pp
     - do not include unit googlediscoverytopas.pp (commented out)
       (add this later if the generator is setup to be
       included in the build)
2023-01-04 22:45:55 +00:00
florian
9889a81062 * patch by Rika: Improve SinH and TanH, resolves #40086 2023-01-04 19:04:40 +01:00
florian
96eb5da939 * patch by Bart B: Implement sinh(), cosh() and tanh() for single, double and extended parameters, resolves #40083 2023-01-04 17:04:10 +01:00
florian
a260f1987c * patch by Rika: Improve Math.CotH, resolves #40084 2023-01-03 23:13:33 +01:00
Jonas Maebe
a641860fa8 Implicit specialisation: use regular array parameters for array constructors
Fixes compilation of test/timpfuncspez5 with LLVM and debug info, as the LLVM
debug info writer internalerror's when you try to generate debug info for
an array constructor (since those types should never appear as parameter/
variable types).

Replace them with reusable regular array types, so that multiple invocations
of the same generic function with array constructors of the same type and
number of elements are collapsed into the same specialisation
2023-01-03 21:44:44 +01:00
marcoonthegit
84ea64e59c * timespan unit based on Delphi documentation declarations and an own implementation based on Microsoft documentation. 2023-01-03 19:37:52 +01:00
Marcus Sackrow
aced88e43c Amiga: 32 bit set color functions for OS 1.x 2023-01-02 19:51:20 +01:00
Pierre Muller
cd8aa3f0e0 Avoid generation of invalid 'cb(n)z sp,label' instruction 2023-01-02 18:22:49 +00:00
florian
cfbdf90ab0 * patch by Rika to optimize ArcCos, resolves #40078 2023-01-02 18:56:41 +01:00
Michaël Van Canneyt
9998104048 * Add PATCH method to router 2023-01-02 16:09:13 +01:00
florian
60c80a45a0 * patch by Bart B to complete missing functions in the math unit, resolves #40055 2023-01-01 22:52:57 +01:00
florian
6c5f9537b3 * avoid to generate bt [mem], reg, resolves #40039 2022-12-31 18:27:27 +01:00
Tomas Hajny
1bb4003984 * messages regenerated after fixing #40008 2022-12-31 17:31:31 +01:00
Tomas Hajny
baf950bf76 * improved consistency as suggested in bug #40008 2022-12-31 17:27:06 +01:00
Tomas Hajny
abbec0eb9b * fixed test program - bug #40072 2022-12-31 15:26:00 +01:00
Tomas Hajny
45b15c5750 * fixed test program - bug #40072 2022-12-31 15:17:58 +01:00
Tomas Hajny
092bc17cb2 * fixed test program - bug #40072 2022-12-31 15:10:44 +01:00
Tomas Hajny
c631d86122 * fixed test program - bug #40072 2022-12-31 15:06:44 +01:00
Tomas Hajny
e9ce3be110 * fix for bug #40071 (corrected integer size redefined due to use of objfpc) 2022-12-31 14:18:57 +01:00
Jonas Maebe
32f8dc7ef5 symcreat: add hidden high parameters in create_procdef_alias
No longer happens automatically for pc_bareproc procdef copies
2022-12-31 11:59:05 +01:00