mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:30:18 +02:00
* fix length calculation of winlike widestrings in Dwarf 3 (patch by
Martin Friebe, mantis #35566) git-svn-id: trunk@43182 -
This commit is contained in:
parent
bdcda8660e
commit
3e11f1b2fe
@ -4337,6 +4337,10 @@ implementation
|
|||||||
{ yes -> length = 0 }
|
{ yes -> length = 0 }
|
||||||
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_8bit(ord(DW_OP_lit0)));
|
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_8bit(ord(DW_OP_lit0)));
|
||||||
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_8bit(ord(DW_OP_skip)));
|
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_8bit(ord(DW_OP_skip)));
|
||||||
|
if upperopcodes=16 then
|
||||||
|
{ skip the extra deref_size argument and the division by two of the length }
|
||||||
|
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_16bit_unaligned(6))
|
||||||
|
else
|
||||||
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_16bit_unaligned(3));
|
current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_16bit_unaligned(3));
|
||||||
{ no -> load length }
|
{ no -> load length }
|
||||||
if upperopcodes=16 then
|
if upperopcodes=16 then
|
||||||
|
Loading…
Reference in New Issue
Block a user