florian
be560dadf8
* manual fixes to get .weak support in fixes
2022-04-18 23:00:40 +02:00
florian
0afa5dc4aa
+ support .weak in the internal assembler
...
(cherry picked from commit 191dd0c637
)
# Conflicts:
# compiler/assemble.pas
2022-04-18 22:50:53 +02:00
florian
3dc09bbedd
* provide __libc_csu_init and __libc_csu_fini as weak symbols
...
(cherry picked from commit 35a7490ae1
)
2022-04-18 22:45:08 +02:00
florian
9bd665d069
* pic'fied startup code
...
(cherry picked from commit baa28faa19
)
2022-04-18 22:44:57 +02:00
florian
6db696a782
* define __libc_csu_* symbols as weak symbols on aarch64-linux
...
(cherry picked from commit a20a7e3497
)
2022-04-11 20:46:02 +02:00
Sven/Sarah Barth
9b467007ea
* fix #32034 and fix #39656 : in a for-in-loop with an array constructor enforce the type of the loop variable for the elements
...
+ added tests
(cherry picked from commit 815734c47a
)
2022-04-09 15:05:54 +02:00
Sven/Sarah Barth
d8aa721f88
* free the placeholder for the count of the dynamic array in end_dynarray_const() and document it as such
...
(cherry picked from commit 1180589046
)
2022-04-09 15:05:32 +02:00
Pierre Muller
d9ac2f58ad
Revert "Add trunk only system_CPU_OS values to ensure that the same integervlaue is uused for system_aarch64_darwin"
...
This reverts commit 313643ea1c
.
2022-03-24 21:23:18 +00:00
Pierre Muller
f320acd7e3
Revert "build fix of ppudump after 313643ea1c4d"
...
This reverts commit 25166cf7ca
.
2022-03-24 21:23:02 +00:00
Karoly Balogh
25166cf7ca
build fix of ppudump after 313643ea1c
2022-03-24 09:56:43 +01:00
Pierre Muller
313643ea1c
Add trunk only system_CPU_OS values to ensure that the same integervlaue is uused for system_aarch64_darwin
2022-03-24 07:25:51 +00:00
Jonas Maebe
6827c4810d
PPC64: fix wrong ifdef for SYSV ABI
...
The TOC is used by PPC64, not by PPC32. Resolves #39571
(cherry picked from commit 14289173bb
)
2022-03-20 13:45:16 +01:00
Jonas Maebe
076c9b06c1
PPC64: don't save TOC in pure assembler routines
...
Fix by Pierre
(cherry picked from commit 0fcc57fb4b
)
2022-03-20 13:45:16 +01:00
Jonas Maebe
89bf3fe5ea
PowerPC32 SysV: fix abis_ppc_toc declaration
...
No TOC on those platforms (as mentioned in tcgppcgen.get_rtoc_offset), so also
exclude from this constant
(cherry picked from commit 2ee45c7ed8
)
2022-03-20 13:45:15 +01:00
Jonas Maebe
04717861ac
TOC handling: clean up
...
Also fix on 32 bits PowerPC
(cherry picked from commit 629c1de460
)
2022-03-20 13:45:15 +01:00
florian
c565900c41
* patch by J. Gareth Moreton: handle register allocations correctly in MovMov2Mov 3, resolves #38703
...
git-svn-id: trunk@49128 -
(cherry picked from commit 503fc85dff
)
2022-03-13 19:07:52 +01:00
florian
6d97cff2e3
* added eliglible and blocked information to the current repository
2022-03-12 19:39:10 +01:00
Pierre Muller
224e83f67a
Regenerated after fpcmake.inc change
2022-03-10 14:52:28 +01:00
Pierre Muller
52bda8fa7c
Add _IO_stdin_used global
...
(cherry picked from commit ae3c0a2151
)
2022-03-09 21:45:41 +01:00
Tomas Hajny
3c93c77902
* align shortname to previous releases
...
(cherry picked from commit 8602a29383
)
# Conflicts:
# utils/json2pas/fpmake.pp
2022-03-05 23:51:14 +01:00
Tomas Hajny
f9f6146ed3
* make shortname really short
...
git-svn-id: trunk@48838 -
(cherry picked from commit 0aae9dd375
)
2022-03-04 23:01:16 +01:00
Tomas Hajny
e31036b5d6
* include installer building in zipinstall make target when building for relevant OS targets
...
(cherry picked from commit d70bb6a8c2
)
2022-03-04 22:56:42 +01:00
florian
db49020205
* patch from Debian package by Abou Al Montacir: Change path of localization fies to fit Debian standard, http://bugs.debian.org/73368
...
(cherry picked from commit 5bdf60376a
)
2022-03-04 22:53:01 +01:00
florian
896f33681f
* patch from Debian packages by Paul Gevers, fixes spelling
...
(cherry picked from commit 19ff0fe9e5
)
2022-03-04 22:52:30 +01:00
Jonas Maebe
3ac4270c23
ppc platforms: fix missing TOC restoration room
...
PPC platforms that use a TOC can never use a tail call to call a different
routine that potentially accesses globals, as it may use a different TOC and
then the linker must be able to insert an instruction after the branch to
restore the original TOC register value on "return". Even if FPC code itself
does not use the TOC register, it's still required since
1) the linker does not know this, and
2) the FPC code might still be called from other code that does use it
(cherry picked from commit 68b5ca633c
)
2022-03-04 21:33:08 +01:00
Jonas Maebe
edbe69c3ef
ppc64: fix rtoc handling
...
Save on procedure entry if it performs a call, rather than (only) before every
indirect call
(cherry picked from commit 83c18df69a
)
2022-03-04 21:33:08 +01:00
florian
59b078fce3
* compilation hopefully fixed
...
(cherry picked from commit 9314bbbf08
)
2022-03-04 21:33:08 +01:00
Jonas Maebe
73e8d5b39e
Linux/PPC64: fix missing TOC loads
...
Routines loading a global symbol need the TOC register
(cherry picked from commit 2de72c8541
)
2022-03-04 21:33:08 +01:00
florian
084e3e7b9a
* use high level interface wrappers for powerpc64 if pic is generated as the abi does not support branches between functions located in different tocs which might happen for inter-module branches
...
(cherry picked from commit 12f48c230b
)
2022-03-04 21:33:08 +01:00
Jonas Maebe
65733801e5
.gitattributes: restore after accidental deletion
2022-02-13 14:56:05 +01:00
Jonas Maebe
1c3fc6e2df
* don't convert the fpu parameters size from tcgsize -> int -> float_tcgsize
...
if not required, to avoid translating OS_C64 into OS_F64 (fix for x86
test failures after r45205)
git-svn-id: trunk@45221 -
(cherry picked from commit 3f6ad30b69
)
2022-02-13 12:02:28 +01:00
Jonas Maebe
8a31764a7b
* support floating point parameters split over multiple locations, including
...
integer registers, for homogeneous records/arrays on ppc64le (related to
mantis #36934 )
git-svn-id: trunk@45205 -
(cherry picked from commit 722ad1ff7b
)
2022-02-13 12:01:36 +01:00
Jonas Maebe
28b2b299da
* ppc64le: fix storing homogeneous 64 bit float parameters in case they are
...
split over just FPU registers and memory (related to mantis #36934 )
git-svn-id: trunk@45204 -
(cherry picked from commit 05923af386
)
2022-02-13 12:01:14 +01:00
florian
3ef2ab1019
* cleaning up tcgsize: it makes no sense to declare every combination and type
...
the different vector types must be either handled in the high level cg or
by using the shuffle parameter
git-svn-id: trunk@43860 -
(cherry picked from commit b7c6e01b03
)
2022-02-13 12:00:45 +01:00
svenbarth
dba65567f1
* use the sizes of the floatx80 and float128 structs for arrays having their size to avoid problems with padding on different platforms
...
git-svn-id: trunk@47198 -
(cherry picked from commit 16eb670e67
)
2022-02-02 17:12:31 +01:00
Pierre Muller
700628d545
Add soft fpu units to buildrtl also for aros and morphos
2022-02-02 10:55:17 +01:00
Pierre Muller
33927a2deb
Add missing soft fpu units to buildrtl
2022-02-02 10:44:59 +01:00
Pierre Muller
4789afb4b0
Regenerated Makefile's after cherry-pick adding soft fpu related units
2022-02-01 14:02:07 -07:00
svenbarth
10838d8c19
+ add all softfpu units for various targets
...
git-svn-id: trunk@47187 -
(cherry picked from commit 707034b271
)
2022-02-01 13:55:16 -07:00
Florian Klämpfl
2ea6e0c82e
* test for fixed bug to play safe
...
(cherry picked from commit f36a665879
)
2022-01-30 22:42:28 +01:00
Sven Barth
6279283ce1
* fix for #39310 by fixing various small issues in tabstractrecordsymtable.has_single_field:
...
- initialize the returned def to a safe default
- correctly reset the found symbol for each loop
- reset the result when descending into a record
+ added test
(cherry picked from commit efd0c250df
)
2022-01-30 22:42:10 +01:00
Pierre Muller
90301426fc
Avoid use of fastmath optimization inside compiler
...
(cherry picked from commit 91f29419a5
)
2022-01-27 00:08:50 +01:00
Pierre Muller
48f68cbeed
Add FillWord procedures and implement unicode StringOfChar for JVM cpu
...
(cherry picked from commit 74c97e8928
)
2022-01-25 22:05:14 +00:00
Florian Klämpfl
8731c5f7fd
* message files regenerated
2022-01-23 17:58:24 +01:00
Florian Klämpfl
5cd1c4f5bc
* manually fix unwanted stripping of exception frame info based on a patch by Gareth J. Moreton
2022-01-23 17:32:40 +01:00
marcoonthegit
08bb8c8dfc
* fixed spelling error implicitEly in errore.msg, regenned msg.
...
(cherry picked from commit 45840da4dd
)
2022-01-22 18:09:05 +01:00
marcoonthegit
96c2f883d2
* spelling fix to make Debian Lintian happy.
...
(cherry picked from commit 7238985091
)
2022-01-22 17:42:50 +01:00
marcoonthegit
c31fa9b0ce
* set version of delchars, requested by Bart B issue #39473
...
(cherry picked from commit a89a3f1577
)
2022-01-21 18:29:03 +01:00
marcoonthegit
c214b949d4
* implemented stringofchar unicodestring, bug #39483
...
(cherry picked from commit 4568c77f57
)
2022-01-21 18:28:56 +01:00
marcoonthegit
bcdfa7c926
* 24-bit byteswap color constants. Due to Opengl vs GDI conventions confusion?
...
(cherry picked from commit 742ec5680f
)
2022-01-21 18:28:33 +01:00