Pierre Muller
2e6a31df8b
Add linux dependency on syscall unit for libc on i386 and x86_64
2024-01-29 11:20:09 +00:00
Sven/Sarah Barth
4aeb1ee223
* fix implementation comment
2024-01-22 22:27:33 +01:00
Michaël Van Canneyt
e9c6f1c152
* Delphi-compatible overloads UTF8ToUnicodeString
2024-01-18 09:32:15 +01:00
marcoonthegit
231007ebda
* check length of optstring before dereferencing (optstring[1]) it. Fixes #40596
2024-01-17 11:41:16 +01:00
florian
b81f92536d
* avoid that fpc_fillmem does not inline due too much nested calls
2024-01-15 22:42:53 +01:00
Sven/Sarah Barth
dd4f7e9148
* fix #40592 : make the Delphi-compatible attributes usable, but in a way that makes it clear to the user that they won't work
...
+ added test
2024-01-15 22:29:47 +01:00
florian
9bb6a32c62
* avoid wrong warning about FillChar not initializing the output parameter in case count <= 0
2024-01-15 21:54:11 +01:00
Karoly Balogh
be4e5f240c
m68k-sinclairql: make heaptrc compile for the QL
2024-01-08 02:22:15 +01:00
Sven/Sarah Barth
170c05592b
* ensure that the legacy method table has the correct alignment on platforms that require it (e.g. SPARC64)
2024-01-07 18:09:51 +01:00
Michaël Van Canneyt
50d72bb559
* Define RTTI visibilities
2024-01-02 07:09:23 +01:00
Michaël Van Canneyt
c39e51485c
* Avoid range error in comparisons
2024-01-02 07:09:20 +01:00
Sven/Sarah Barth
30bf8047aa
* ensure that the field and method tables are always accessed with the default alignment
2024-01-02 07:09:20 +01:00
Rika Ichinose
fca0ace070
Improve shortstring Pos() and generic fpc_shortstr_compare().
2024-01-01 21:12:52 +00:00
Rika Ichinose
b7d32e4933
ERMSB-aware Fill* for i386.
2024-01-01 18:33:33 +00:00
Jonas Maebe
49cb7b2564
LLVM: use llvm.dbg.declare instead of llvm.dbg.addr for variable declarations
...
Even though it's supposedly deprecated, clang also still uses it and without
the declaration ranges of local variables are sometimes cut off
2023-12-06 22:57:16 +01:00
Michaël Van Canneyt
7e4aca384f
* Some delphi compatibility issues solved (PtrToNil and TGUID operator)
2023-11-29 14:34:27 +01:00
Michaël Van Canneyt
7bd8ac25d4
* Regen Makefiles with correct defines for some lineinfo units
2023-11-08 18:15:52 +01:00
Michaël Van Canneyt
ebed69e858
* Fix name of lineinfo
2023-11-08 17:12:37 +01:00
Michaël Van Canneyt
ab3b7f8f69
* Do not use namespace prefix for lnfodwarf
2023-11-08 17:08:03 +01:00
Michaël Van Canneyt
2f9c1e8be4
* line info may not use namespaces, referenced in compiler
2023-11-08 17:06:19 +01:00
Rika Ichinose
854d944cfa
Faster string concatenations.
2023-11-05 14:59:42 +00:00
Michaël Van Canneyt
2ad272f03f
* Correct dependency of (System.)Character, or resulting unit is unusable
2023-11-02 12:10:36 +01:00
Michaël Van Canneyt
038f054bdc
* Add varUInt32 alias for delphi compatibility
2023-11-01 21:38:55 +01:00
Michaël Van Canneyt
80d471a9f1
* Add HINST for Delphi compatibility
2023-11-01 21:38:55 +01:00
Rika Ichinose
0d3d4918b3
Don’t allow generic fpc_pchar_length to arbitrarily over-read.
2023-11-01 20:04:40 +00:00
Rika Ichinose
8d1d763a1a
Don’t use local shortstring in generic fpc_pchar_to_shortstr, move directly to the destination.
2023-11-01 20:04:40 +00:00
florian
b2a13077c0
* redefine also PPChar and PPPChar depending on the string type mode, resolves #40491
2023-10-31 23:13:22 +01:00
Michaël Van Canneyt
6045b3a6bd
* Add Delphi-compatible DisposeOf and friends.
2023-10-30 09:17:01 +01:00
Pierre Muller
b317f47029
Set SYSTEMUNIT variable globally inside inc/Makefile.rtl
2023-10-09 01:02:28 +02:00
Pierre Muller
b9544ad342
Add SYSTEMDIR variable (needed for BSD OSes)
2023-09-29 17:44:34 +02:00
Pierre Muller
a6353fecf0
Add tthread.inc dependency for classes unit using TTHREADINCDIR variable
2023-09-26 23:52:37 +02:00
Pierre Muller
4f055a9254
Add dependency of classes unit on sortbase
2023-09-26 23:23:21 +02:00
Pierre Muller
541ba50269
Revert wrong substitution of classes and sysutils subdirectories inside wildcard calls
2023-09-26 22:48:55 +02:00
Pierre Muller
bb20f8f318
Replace all objpas$(PPUEXT) by $(OBJPASUNIT)$(PPUEXT) in inc/Makefile.rtl
2023-09-26 14:21:36 +02:00
Pierre Muller
b12932c7f8
Handle specific main cwstring.pp source for android OS
2023-09-26 01:02:46 +02:00
Pierre Muller
48ea716826
Set special value for RTLDEFSINCDIR variable
...
for andrioid and targets using AMIINC variable.
Add rtldefs.inc dependency for cwstring unit,
with RTLDEFSINCDIR directory.
2023-09-26 01:02:46 +02:00
Pierre Muller
edc92f26ff
Handle win16 specific units: wintypes winprocs and win31 for DOTTED
2023-09-26 01:02:44 +02:00
Pierre Muller
c0d8241b5d
Handle unixtype unit and introduce PTYESINCDIR variable
2023-09-25 01:02:56 +02:00
Pierre Muller
8e98e35ac2
macosclassic OS does not have unixtype unit
2023-09-25 01:02:55 +02:00
Pierre Muller
b9af293d35
syscall unit is only used when -dFPC_USE_LIBC is not used
2023-09-25 01:02:54 +02:00
Pierre Muller
5001c72510
Add unixtype nit dependency for ctypes unit for Unix OSes
2023-09-25 01:02:54 +02:00
Pierre Muller
07d4779ee5
Add pthread.inc dependency for cthreads unit
2023-09-25 01:02:52 +02:00
Pierre Muller
1ea8e8bda2
Add rtlconst.inc dependency for rtlconsts unit
2023-09-25 01:02:49 +02:00
Pierre Muller
a160b2470b
Handle sysctl unit for DOTTED
2023-09-25 01:02:49 +02:00
Pierre Muller
bdfd7a66eb
* Adapt initc unit to DOTTED.
...
* Remove OS specific initc rules.
* Set default directory for initc main source to
UNIXINC variable value if is is set.
* Replace initc references by INITCUNIT variable.
* Add dpmiexcp dependency for initc on go32v2 system
by setting INITC_DEPS_OS.
* Add nwsys.inc dependency for initc on netware system.
2023-09-25 01:02:48 +02:00
Pierre Muller
5f14f4447b
Update console unit for DOTTED
2023-09-20 18:05:16 +02:00
Pierre Muller
9a9bbe5740
Handle DOTTED transition for termio unit
2023-09-20 18:05:16 +02:00
Pierre Muller
3c0e3b1a3f
Add -Fi option for dynlibs.inc directory to DYNLIBS_OPT in dynlibs unit rule
2023-09-20 13:16:27 +02:00
Pierre Muller
82dec844c3
* Update math unit rules for dotted version
...
+ Add PROCINC/mathu.inc dependency in generic rule for math unit
* Remove OS specific rules for math unit
* Use MATHUNIT variable everywhere
2023-09-20 08:26:06 +02:00
Pierre Muller
9fe073493a
* Use linux directory explicitly for fpcylix source location
...
* Remove android rule for fpcylix unit
* Replace fpcylix by FPCYLIXUNIT variable
2023-09-20 07:29:58 +02:00