nickysn
58d6d64fba
+ Z80 internal asm: support OT_REF_ADDR16 in taicpu.gencode.WrinteNN
...
git-svn-id: trunk@45273 -
2020-05-05 22:30:49 +00:00
nickysn
4fed57adc1
+ lots of fixes to the Z80 internal asm writer
...
git-svn-id: trunk@45272 -
2020-05-05 22:18:44 +00:00
yury
7dc6049de9
* Release registers which have been used for a function call before adjusting the stack pointer. On i386 this allows to use eax,ecx,edx in POP instructions for stack adjustment.
...
git-svn-id: trunk@45271 -
2020-05-05 21:56:34 +00:00
florian
a4695a7015
* xtensa-embedded: fix setting of the fpu and abi
...
git-svn-id: trunk@45270 -
2020-05-05 20:41:36 +00:00
nickysn
3ab5acccb1
* the parameter of WriteWord should be word, not byte :)
...
git-svn-id: trunk@45269 -
2020-05-05 20:35:08 +00:00
nickysn
5193e8332c
+ also write the relocations in the .rel internal obj writer
...
git-svn-id: trunk@45268 -
2020-05-05 19:51:44 +00:00
pierre
f2b924573a
Do not use inherited first_int_to_real when arm FPU_HAS_FPA is in fpu_capabilities
...
git-svn-id: trunk@45267 -
2020-05-05 12:25:18 +00:00
pierre
df275152c2
Add -Wp option description for riscv32 and xtensa compiler
...
git-svn-id: trunk@45266 -
2020-05-05 12:21:21 +00:00
pierre
1b5ee0d063
* Put all code adding cs_fp_emulation by default inside one big
...
{$ifdef cpufpemu}
* Add system_arm_freertos and system_xtena_linux to the list
of systems that automatically add cs_fp_emulation to
init_settings.moduleswitches.
+ Do not use controller specfic default fputype for xtensa-linux
target that does not support use of -Wp option to set controller type.
git-svn-id: trunk@45265 -
2020-05-05 12:20:21 +00:00
michael
a03ea37cfc
* CeateArray uses 0-based loop
...
git-svn-id: trunk@45264 -
2020-05-05 09:52:02 +00:00
nickysn
0d11b5bf29
+ added method TRelRelocation.EncodeFlags that encodes the flags to string that can be included in the .rel file
...
git-svn-id: trunk@45263 -
2020-05-05 03:23:51 +00:00
nickysn
03acadaf1e
+ initialize size and relflags in TRelRelocation
...
git-svn-id: trunk@45262 -
2020-05-05 03:03:02 +00:00
nickysn
732f1d9df6
+ added TRelRelocationFlags
...
git-svn-id: trunk@45261 -
2020-05-05 01:13:58 +00:00
nickysn
569c406116
+ introduced the TRelRelocation class
...
git-svn-id: trunk@45260 -
2020-05-05 00:59:27 +00:00
nickysn
f1f819516e
+ write the section data in the .rel internal object writer (relocations aren't written, yet)
...
git-svn-id: trunk@45259 -
2020-05-05 00:06:11 +00:00
florian
724676db43
* Xtensa: patch by Christo Crause: fix addmi/addi handling, resolves #37015
...
git-svn-id: trunk@45258 -
2020-05-04 19:58:45 +00:00
Jonas Maebe
0fbb1b259e
* re-added "protected" accidentally removed in r45236, fixes JVM compilation
...
(mantis #37016 )
git-svn-id: trunk@45257 -
2020-05-04 17:08:00 +00:00
michael
2073e518cc
* Better uses clause for Delphi, less warnings
...
git-svn-id: trunk@45252 -
2020-05-04 09:54:39 +00:00
nickysn
ab878adfff
+ actually produce relocations in TRelObjData.writeReloc
...
git-svn-id: trunk@45251 -
2020-05-04 02:31:19 +00:00
nickysn
256597be58
+ Z80 internal asm: produce correct opcodes for register operands
...
git-svn-id: trunk@45250 -
2020-05-04 02:17:30 +00:00
nickysn
90ee079cd1
+ partial implementation of pass2 asm opcode generation for the Z80 internal asm writer
...
git-svn-id: trunk@45249 -
2020-05-04 01:27:44 +00:00
nickysn
5d2be4da1c
* Z80: match both signed and unsigned 16-bit constants as OT_IMM16 in the asm instab lookup
...
git-svn-id: trunk@45248 -
2020-05-04 00:20:50 +00:00
nickysn
27e9dde81a
+ implemented pass1 (calcsize) of the instruction encoding for the Z80 internal asm
...
git-svn-id: trunk@45247 -
2020-05-04 00:14:28 +00:00
nickysn
23fa725b01
+ added the global symbols to the .rel output file
...
git-svn-id: trunk@45246 -
2020-05-03 23:23:24 +00:00
nickysn
bba56d627f
+ write the areas (sections) in the .rel output
...
git-svn-id: trunk@45245 -
2020-05-03 23:16:23 +00:00
nickysn
92e86e7673
* the areas global symbols count must be in hex in the .rel format
...
git-svn-id: trunk@45244 -
2020-05-03 23:10:14 +00:00
nickysn
8e23dc99a1
+ write the .rel file header and the list of external symbols
...
git-svn-id: trunk@45243 -
2020-05-03 23:00:52 +00:00
nickysn
763e0a14fe
+ override the abstract methods from TObjData.sectionname() and .writereloc(). Only sectionname() is implemented for now.
...
git-svn-id: trunk@45242 -
2020-05-03 22:22:26 +00:00
nickysn
244f1dd83c
+ added class TRelObjData
...
git-svn-id: trunk@45241 -
2020-05-03 22:16:21 +00:00
nickysn
66a72cfb72
+ added build mode that enables the Z80 internal assembler
...
git-svn-id: trunk@45239 -
2020-05-03 21:49:03 +00:00
Tomas Hajny
ed6928f257
* remove shortcut conflict between ~G~eneral and ~G~o32v2
...
git-svn-id: trunk@45238 -
2020-05-03 21:42:20 +00:00
svenbarth
73026618c8
* protect against empty strings inside the SetThreadDebugNameA and -U functions
...
git-svn-id: trunk@45237 -
2020-05-03 21:11:36 +00:00
florian
b80d051249
* make fparainit and fparacopyback public
...
+ process fparainit and fparacopyback in foreachnode
+ print fparainit and fparacopyback
+ do not break if tcallparanode.copy_value_by_ref_para is called multiple times
git-svn-id: trunk@45236 -
2020-05-03 20:37:07 +00:00
florian
8d1660893b
* compilation with -Oodfa fixed
...
git-svn-id: trunk@45234 -
2020-05-03 15:18:08 +00:00
svenbarth
0906714aa4
* fix for Mantis #36950 : apply (slightly adjusted) patch by Bi0T1N to implement SetThreadDebugNameA and -U for Linux and Android targets
...
git-svn-id: trunk@45233 -
2020-05-03 15:08:35 +00:00
svenbarth
3d2945726a
* handle generic parameters in Ord()
...
+ added test
git-svn-id: trunk@45232 -
2020-05-03 15:08:31 +00:00
florian
b6097a0300
* correctly handle result type of string constant nodes for internally created
...
nodes
git-svn-id: trunk@45231 -
2020-05-03 12:41:17 +00:00
michael
4e92f2651e
* Zero out at premature exit
...
git-svn-id: trunk@45230 -
2020-05-03 07:55:32 +00:00
marco
4a51d0600d
* add podetached. Follow up to mantis @32055 due to regression, see
...
https://forum.lazarus.freepascal.org/index.php/topic,49631.0
git-svn-id: trunk@45228 -
2020-05-02 20:06:32 +00:00
yury
187cc46b32
* Windows: Do not use CommandLineToArgvW for parsing command line parameters, because it treats \" as an escape sequence for the double quote.
...
- Implemented parsing of the command line which is backward compatible.
- Do not use GetCommandLineA.
git-svn-id: trunk@45227 -
2020-05-02 18:19:26 +00:00
michael
112b48a5e0
* Use read buffer to speed up things
...
git-svn-id: trunk@45226 -
2020-05-02 16:15:28 +00:00
michael
8182669e79
* Explicitly raise EDivError (bug ID 36839)
...
git-svn-id: trunk@45223 -
2020-05-02 15:56:30 +00:00
michael
e53c2572ce
* Allow property list to be sorted (patch from Denis Grynuk, bug ID #36803 )
...
git-svn-id: trunk@45222 -
2020-05-02 15:49:58 +00:00
Jonas Maebe
3f6ad30b69
* 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 -
2020-05-02 13:17:21 +00:00
florian
de805fddcd
* properly force the result type after r45217
...
git-svn-id: trunk@45220 -
2020-05-02 12:33:46 +00:00
marcus
4d71051859
ppudump: catch exception on illegal datetime (mainly cross compiled units)
...
git-svn-id: trunk@45219 -
2020-05-02 09:32:11 +00:00
florian
a61e18091a
* compilation with -Oodfa fixed
...
git-svn-id: trunk@45218 -
2020-05-02 09:29:36 +00:00
florian
e3870079b2
* remove tempref mess for simple inlined functions
...
git-svn-id: trunk@45217 -
2020-05-02 09:01:35 +00:00
nickysn
aa6209ab51
+ added an override of the abstract method TRelObjOutput.writeData (not implemented, yet)
...
git-svn-id: trunk@45216 -
2020-05-02 02:35:31 +00:00
nickysn
950c1d1693
+ enable the Z80 internal asm (which doesn't work, yet) if the compiler is compiled with -dZ80_INTERNAL_ASM
...
git-svn-id: trunk@45215 -
2020-05-02 02:35:03 +00:00